You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#9156: Update PlasticSCM Plugin from 1.4.6 to 1.5.0 for UE5 (Contributed by SRombauts) #jira UE-151199 - GitHub 9156 : Update PlasticSCM Plugin from 1.4.6 to 1.5.0 for UE5 #rb patrick.laflamme #preflight 6282956c162e4a77e535b24b [CL 20228732 by SRombauts in ue5-main branch]
79 lines
2.5 KiB
C++
79 lines
2.5 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "ISourceControlRevision.h"
|
|
|
|
class FPlasticSourceControlState;
|
|
|
|
/** Revision of a file, linked to a specific commit */
|
|
class FPlasticSourceControlRevision : public ISourceControlRevision, public TSharedFromThis<FPlasticSourceControlRevision, ESPMode::ThreadSafe>
|
|
{
|
|
public:
|
|
FPlasticSourceControlRevision()
|
|
: ChangesetNumber(0)
|
|
, RevisionId(0)
|
|
, Date(0)
|
|
, FileSize(0)
|
|
{
|
|
}
|
|
|
|
/** ISourceControlRevision interface */
|
|
virtual bool Get(FString& InOutFilename, EConcurrency::Type InConcurrency = EConcurrency::Synchronous) const override;
|
|
virtual bool GetAnnotated( TArray<FAnnotationLine>& OutLines ) const override;
|
|
virtual bool GetAnnotated( FString& InOutFilename ) const override;
|
|
virtual const FString& GetFilename() const override;
|
|
virtual int32 GetRevisionNumber() const override;
|
|
virtual const FString& GetRevision() const override;
|
|
virtual const FString& GetDescription() const override;
|
|
virtual const FString& GetUserName() const override;
|
|
virtual const FString& GetClientSpec() const override;
|
|
virtual const FString& GetAction() const override;
|
|
virtual TSharedPtr<class ISourceControlRevision, ESPMode::ThreadSafe> GetBranchSource() const override;
|
|
virtual const FDateTime& GetDate() const override;
|
|
virtual int32 GetCheckInIdentifier() const override;
|
|
virtual int32 GetFileSize() const override;
|
|
|
|
public:
|
|
|
|
/** Point back to State this Revision is from */
|
|
FPlasticSourceControlState* State = nullptr;
|
|
|
|
/** The filename this revision refers to */
|
|
FString Filename;
|
|
|
|
/** The changeset number of this revision */
|
|
int32 ChangesetNumber;
|
|
|
|
/** The internal revision ID of this file */
|
|
int32 RevisionId;
|
|
|
|
/** The revision to display to the user: use the changeset number */
|
|
FString Revision;
|
|
|
|
/** The description of this revision */
|
|
FString Description;
|
|
|
|
/** The user that made the change */
|
|
FString UserName;
|
|
|
|
/** Branch where the change was made */
|
|
FString Branch;
|
|
|
|
/** The action (add, edit, branch etc.) performed at this revision */
|
|
FString Action;
|
|
|
|
/** Source of move ("branch" in Perforce term) if any */
|
|
TSharedPtr<FPlasticSourceControlRevision, ESPMode::ThreadSafe> BranchSource;
|
|
|
|
/** The date this revision was made */
|
|
FDateTime Date;
|
|
|
|
/** The size of the file at this revision */
|
|
int32 FileSize;
|
|
};
|
|
|
|
/** History composed of the last 100 revisions of the file */
|
|
typedef TArray<TSharedRef<FPlasticSourceControlRevision, ESPMode::ThreadSafe>> TPlasticSourceControlHistory;
|