C# Class Sep.Git.Tfs.Core.GitTfsRemote

Inheritance: IGitTfsRemote
Exibir arquivo Open project: git-tfs/git-tfs Class Usage Examples

Private Properties

Property Type Description
Apply Sep.Git.Tfs.Core.LogEntry
Apply Sep.Git.Tfs.Core.LogEntry
Apply Sep.Git.Tfs.Core.LogEntry
BuildCommitMessage string
BuildEntryDictionary GitObject>.Dictionary
CheckSubtree bool
Checkin int
CheckinTool int
Commit string
CopyTree Sep.Git.Tfs.Core.LogEntry
DoGcIfNeeded void
ExtractGitBranchNameFromTfsRepositoryPath string
FetchChangesets IEnumerable
FindMergedRemoteAndFetch string
FindOrInitTfsRemoteOfChangeset IGitTfsRemote
FindRemoteAndFetch string
FindRootRemoteAndFetch string
GetLatestChangeset ITfsChangeset
GetLatestChangesetId int
GetTfsChangesetById TfsChangesetInfo
InitHistory void
InitTfsBranch IGitTfsRemote
InitTfsRemoteOfChangeset IGitTfsRemote
IsIgnored bool
IsInDotGit bool
LogCurrentMapping void
MatchesTfsUrl bool
PendChangesToWorkspace void
ProcessChangeset string
ProcessMergeChangeset bool
Shelve void
TranslateWorkItems IEnumerable
WithWorkspace void
quickFetch void

Public Methods

Method Description
Checkin ( string head, TfsChangesetInfo parentChangeset, CheckinOptions options, string sourceTfsPath = null ) : int
Checkin ( string head, string parent, TfsChangesetInfo parentChangeset, CheckinOptions options, string sourceTfsPath = null ) : int
CheckinTool ( string head, TfsChangesetInfo parentChangeset ) : int
CleanupWorkspace ( ) : void
CleanupWorkspaceDirectory ( ) : void
DeleteShelveset ( string shelvesetName ) : void
EnsureTfsAuthenticated ( ) : void
Fetch ( bool stopOnFailMergeCommit = false, int lastChangesetIdToFetch = -1, IRenameResult renameResult = null ) : IFetchResult
FetchWithMerge ( int mergeChangesetId, bool stopOnFailMergeCommit = false, IRenameResult renameResult = null ) : IFetchResult
FetchWithMerge ( int mergeChangesetId, bool stopOnFailMergeCommit = false, int lastChangesetIdToFetch = -1, IRenameResult renameResult = null ) : IFetchResult
GetChangeset ( int changesetId ) : ITfsChangeset
GetInitialChangeset ( ) : int?
GetPathInGitRepo ( string tfsPath ) : string
GitTfsRemote ( Sep.Git.Tfs.Core.RemoteInfo info, IGitRepository repository, RemoteOptions remoteOptions, Globals globals, ITfsHelper tfsHelper, ConfigProperties properties ) : System
HasShelveset ( string shelvesetName ) : bool
InitBranch ( RemoteOptions remoteOptions, string tfsRepositoryPath, int rootChangesetId, bool fetchParentBranch, string gitBranchNameExpected = null, IRenameResult renameResult = null ) : IGitTfsRemote
IsIgnoringBranches ( ) : bool
MatchesUrlAndRepositoryPath ( string tfsUrl, string tfsRepositoryPath ) : bool
QuickFetch ( ) : void
QuickFetch ( int changesetId ) : void
SetInitialChangeset ( int changesetId ) : void
Shelve ( string shelvesetName, string head, TfsChangesetInfo parentChangeset, CheckinOptions options, bool evaluateCheckinPolicies ) : void
ShouldSkip ( string path ) : bool
Unshelve ( string shelvesetOwner, string shelvesetName, string destinationBranch, Action ignorableErrorHandler, bool force ) : void
UpdateTfsHead ( string commitHash, int changesetId ) : void

Private Methods

Method Description
Apply ( string parent, ITfsChangeset changeset, Action ignorableErrorHandler ) : Sep.Git.Tfs.Core.LogEntry
Apply ( string parent, ITfsChangeset changeset, GitObject>.IDictionary entries ) : Sep.Git.Tfs.Core.LogEntry
Apply ( string parent, ITfsChangeset changeset, GitObject>.IDictionary entries, Action ignorableErrorHandler ) : Sep.Git.Tfs.Core.LogEntry
BuildCommitMessage ( string tfsCheckinComment, int changesetId ) : string
BuildEntryDictionary ( ) : GitObject>.Dictionary
CheckSubtree ( ) : bool
Checkin ( string head, string parent, ITfsWorkspace workspace, CheckinOptions options, string sourceTfsPath ) : int
CheckinTool ( string head, TfsChangesetInfo parentChangeset, ITfsWorkspace workspace ) : int
Commit ( Sep.Git.Tfs.Core.LogEntry logEntry ) : string
CopyTree ( string lastCommit, ITfsChangeset changeset ) : Sep.Git.Tfs.Core.LogEntry
DoGcIfNeeded ( ) : void
ExtractGitBranchNameFromTfsRepositoryPath ( string tfsRepositoryPath ) : string
FetchChangesets ( bool byLots, int lastVersion = -1 ) : IEnumerable
FindMergedRemoteAndFetch ( int parentChangesetId, bool stopOnFailMergeCommit, string &omittedParentBranch ) : string
FindOrInitTfsRemoteOfChangeset ( int parentChangesetId, bool mergeChangeset, IRenameResult renameResult, string &omittedParentBranch ) : IGitTfsRemote
FindRemoteAndFetch ( int parentChangesetId, bool stopOnFailMergeCommit, bool mergeChangeset, IRenameResult renameResult, string &omittedParentBranch ) : string
FindRootRemoteAndFetch ( int parentChangesetId, IRenameResult renameResult = null ) : string
GetLatestChangeset ( ) : ITfsChangeset
GetLatestChangesetId ( ) : int
GetTfsChangesetById ( int id ) : TfsChangesetInfo
InitHistory ( ) : void
InitTfsBranch ( RemoteOptions remoteOptions, string tfsRepositoryPath, int rootChangesetId = -1, bool fetchParentBranch = false, string gitBranchNameExpected = null, IRenameResult renameResult = null ) : IGitTfsRemote
InitTfsRemoteOfChangeset ( IBranchObject tfsBranch, int parentChangesetId, IRenameResult renameResult = null ) : IGitTfsRemote
IsIgnored ( string path ) : bool
IsInDotGit ( string path ) : bool
LogCurrentMapping ( ) : void
MatchesTfsUrl ( string tfsUrl ) : bool
PendChangesToWorkspace ( string head, string parent, ITfsWorkspaceModifier workspace ) : void
ProcessChangeset ( ITfsChangeset changeset, Sep.Git.Tfs.Core.LogEntry log ) : string
ProcessMergeChangeset ( ITfsChangeset changeset, bool stopOnFailMergeCommit, string &parentCommit ) : bool
Shelve ( string shelvesetName, string head, TfsChangesetInfo parentChangeset, CheckinOptions options, bool evaluateCheckinPolicies, ITfsWorkspace workspace ) : void
TranslateWorkItems ( IEnumerable workItemsOriginal ) : IEnumerable
WithWorkspace ( TfsChangesetInfo parentChangeset, Action action ) : void
quickFetch ( ITfsChangeset changeset ) : void

Method Details

Checkin() public method

public Checkin ( string head, TfsChangesetInfo parentChangeset, CheckinOptions options, string sourceTfsPath = null ) : int
head string
parentChangeset TfsChangesetInfo
options Sep.Git.Tfs.Commands.CheckinOptions
sourceTfsPath string
return int

Checkin() public method

public Checkin ( string head, string parent, TfsChangesetInfo parentChangeset, CheckinOptions options, string sourceTfsPath = null ) : int
head string
parent string
parentChangeset TfsChangesetInfo
options Sep.Git.Tfs.Commands.CheckinOptions
sourceTfsPath string
return int

CheckinTool() public method

public CheckinTool ( string head, TfsChangesetInfo parentChangeset ) : int
head string
parentChangeset TfsChangesetInfo
return int

CleanupWorkspace() public method

public CleanupWorkspace ( ) : void
return void

CleanupWorkspaceDirectory() public method

public CleanupWorkspaceDirectory ( ) : void
return void

DeleteShelveset() public method

public DeleteShelveset ( string shelvesetName ) : void
shelvesetName string
return void

EnsureTfsAuthenticated() public method

public EnsureTfsAuthenticated ( ) : void
return void

Fetch() public method

public Fetch ( bool stopOnFailMergeCommit = false, int lastChangesetIdToFetch = -1, IRenameResult renameResult = null ) : IFetchResult
stopOnFailMergeCommit bool
lastChangesetIdToFetch int
renameResult IRenameResult
return IFetchResult

FetchWithMerge() public method

public FetchWithMerge ( int mergeChangesetId, bool stopOnFailMergeCommit = false, IRenameResult renameResult = null ) : IFetchResult
mergeChangesetId int
stopOnFailMergeCommit bool
renameResult IRenameResult
return IFetchResult

FetchWithMerge() public method

public FetchWithMerge ( int mergeChangesetId, bool stopOnFailMergeCommit = false, int lastChangesetIdToFetch = -1, IRenameResult renameResult = null ) : IFetchResult
mergeChangesetId int
stopOnFailMergeCommit bool
lastChangesetIdToFetch int
renameResult IRenameResult
return IFetchResult

GetChangeset() public method

public GetChangeset ( int changesetId ) : ITfsChangeset
changesetId int
return ITfsChangeset

GetInitialChangeset() public method

public GetInitialChangeset ( ) : int?
return int?

GetPathInGitRepo() public method

public GetPathInGitRepo ( string tfsPath ) : string
tfsPath string
return string

GitTfsRemote() public method

public GitTfsRemote ( Sep.Git.Tfs.Core.RemoteInfo info, IGitRepository repository, RemoteOptions remoteOptions, Globals globals, ITfsHelper tfsHelper, ConfigProperties properties ) : System
info Sep.Git.Tfs.Core.RemoteInfo
repository IGitRepository
remoteOptions Sep.Git.Tfs.Commands.RemoteOptions
globals Globals
tfsHelper ITfsHelper
properties ConfigProperties
return System

HasShelveset() public method

public HasShelveset ( string shelvesetName ) : bool
shelvesetName string
return bool

InitBranch() public method

public InitBranch ( RemoteOptions remoteOptions, string tfsRepositoryPath, int rootChangesetId, bool fetchParentBranch, string gitBranchNameExpected = null, IRenameResult renameResult = null ) : IGitTfsRemote
remoteOptions Sep.Git.Tfs.Commands.RemoteOptions
tfsRepositoryPath string
rootChangesetId int
fetchParentBranch bool
gitBranchNameExpected string
renameResult IRenameResult
return IGitTfsRemote

IsIgnoringBranches() public method

public IsIgnoringBranches ( ) : bool
return bool

MatchesUrlAndRepositoryPath() public method

public MatchesUrlAndRepositoryPath ( string tfsUrl, string tfsRepositoryPath ) : bool
tfsUrl string
tfsRepositoryPath string
return bool

QuickFetch() public method

public QuickFetch ( ) : void
return void

QuickFetch() public method

public QuickFetch ( int changesetId ) : void
changesetId int
return void

SetInitialChangeset() public method

public SetInitialChangeset ( int changesetId ) : void
changesetId int
return void

Shelve() public method

public Shelve ( string shelvesetName, string head, TfsChangesetInfo parentChangeset, CheckinOptions options, bool evaluateCheckinPolicies ) : void
shelvesetName string
head string
parentChangeset TfsChangesetInfo
options Sep.Git.Tfs.Commands.CheckinOptions
evaluateCheckinPolicies bool
return void

ShouldSkip() public method

public ShouldSkip ( string path ) : bool
path string
return bool

Unshelve() public method

public Unshelve ( string shelvesetOwner, string shelvesetName, string destinationBranch, Action ignorableErrorHandler, bool force ) : void
shelvesetOwner string
shelvesetName string
destinationBranch string
ignorableErrorHandler Action
force bool
return void

UpdateTfsHead() public method

public UpdateTfsHead ( string commitHash, int changesetId ) : void
commitHash string
changesetId int
return void