You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
API break: added new pure virtual ISourceControlProvider::UsesChangelists() API break: added new pure virtual ISourceControlState::FindHistoryRevision(const FString&) API break: added new pure virtual ISourceControlRevision::GetRevision() Implementing a Git provider requires us to be able to display revisions that are not indices as Git revisions are hashes. This updates the relvant code to allow us to display these revisions correctly. [CL 2411986 by Thomas Sarkanen in Main branch]
109 lines
3.0 KiB
C++
109 lines
3.0 KiB
C++
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "SourceControlPrivatePCH.h"
|
|
#include "DefaultSourceControlProvider.h"
|
|
#include "ISourceControlState.h"
|
|
#include "ISourceControlModule.h"
|
|
#include "ISourceControlLabel.h"
|
|
#include "MessageLog.h"
|
|
|
|
#define LOCTEXT_NAMESPACE "DefaultSourceControlProvider"
|
|
|
|
void FDefaultSourceControlProvider::Init(bool bForceConnection)
|
|
{
|
|
FMessageLog("SourceControl").Info(LOCTEXT("SourceControlDisabled", "Source control is disabled"));
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::Close()
|
|
{
|
|
|
|
}
|
|
|
|
FText FDefaultSourceControlProvider::GetStatusText() const
|
|
{
|
|
return LOCTEXT("SourceControlDisabled", "Source control is disabled");
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::IsAvailable() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::IsEnabled() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
const FName& FDefaultSourceControlProvider::GetName(void) const
|
|
{
|
|
static FName ProviderName("None");
|
|
return ProviderName;
|
|
}
|
|
|
|
ECommandResult::Type FDefaultSourceControlProvider::GetState( const TArray<FString>& InFiles, TArray< TSharedRef<ISourceControlState, ESPMode::ThreadSafe> >& OutState, EStateCacheUsage::Type InStateCacheUsage )
|
|
{
|
|
return ECommandResult::Failed;
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::RegisterSourceControlStateChanged( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged )
|
|
{
|
|
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::UnregisterSourceControlStateChanged( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged )
|
|
{
|
|
|
|
}
|
|
|
|
FDelegateHandle FDefaultSourceControlProvider::RegisterSourceControlStateChanged_Handle( const FSourceControlStateChanged::FDelegate& SourceControlStateChanged )
|
|
{
|
|
return FDelegateHandle();
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::UnregisterSourceControlStateChanged_Handle( FDelegateHandle Handle )
|
|
{
|
|
|
|
}
|
|
|
|
ECommandResult::Type FDefaultSourceControlProvider::Execute( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation, const TArray<FString>& InFiles, EConcurrency::Type InConcurrency, const FSourceControlOperationComplete& InOperationCompleteDelegate )
|
|
{
|
|
return ECommandResult::Failed;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::CanCancelOperation( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation ) const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::CancelOperation( const TSharedRef<ISourceControlOperation, ESPMode::ThreadSafe>& InOperation )
|
|
{
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::UsesLocalReadOnlyState() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool FDefaultSourceControlProvider::UsesChangelists() const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void FDefaultSourceControlProvider::Tick()
|
|
{
|
|
|
|
}
|
|
|
|
TArray< TSharedRef<ISourceControlLabel> > FDefaultSourceControlProvider::GetLabels( const FString& InMatchingSpec ) const
|
|
{
|
|
return TArray< TSharedRef<ISourceControlLabel> >();
|
|
}
|
|
|
|
#if SOURCE_CONTROL_WITH_SLATE
|
|
TSharedRef<class SWidget> FDefaultSourceControlProvider::MakeSettingsWidget() const
|
|
{
|
|
return SNullWidget::NullWidget;
|
|
}
|
|
#endif // SOURCE_CONTROL_WITH_SLATE
|
|
|
|
#undef LOCTEXT_NAMESPACE |