C# Class Sep.Git.Tfs.VsFake.TfsHelper

Inheritance: ITfsHelper
显示文件 Open project: git-tfs/git-tfs

Private Properties

Property Type Description
BuildTfsChangeset ITfsChangeset
GetRealRootBranch string

Public Methods

Method Description
CleanupWorkspaces ( string workingDirectory ) : void
CreateBranch ( string sourcePath, string targetPath, int changesetId, string comment = null ) : void
CreateCheckinNote ( string>.Dictionary checkinNotes ) : ICheckinNote
CreateShelveset ( IWorkspace workspace, string shelvesetName ) : IShelveset
CreateTfsRootBranch ( string projectName, string mainBranch, string gitRepositoryPath, bool createTeamProjectFolder ) : void
DeleteShelveset ( IWorkspace workspace, string shelvesetName ) : void
EnsureAuthenticated ( ) : void
FindMergeChangesetParent ( string path, int firstChangeset, GitTfsRemote remote ) : int
GetAllTfsRootBranchesOrderedByCreation ( ) : IEnumerable
GetBranches ( bool getDeletedBranches = false ) : IEnumerable
GetChangeset ( int changesetId ) : IChangeset
GetChangeset ( int changesetId, IGitTfsRemote remote ) : ITfsChangeset
GetChangesets ( string path, int startVersion, IGitTfsRemote remote, int lastVersion = -1, bool byLots = false ) : IEnumerable
GetIdentity ( string username ) : IIdentity
GetLabels ( string tfsPathBranch, string nameFilter = null ) : IEnumerable
GetLatestChangeset ( IGitTfsRemote remote ) : ITfsChangeset
GetLatestChangesetId ( IGitTfsRemote remote ) : int
GetRootChangesetForBranch ( string tfsPathBranchToCreate, int lastChangesetIdToCheck = -1, string tfsPathParentBranch = null ) : IList
GetShelvesetData ( IGitTfsRemote remote, string shelvesetOwner, string shelvesetName ) : ITfsChangeset
GetWorkItemCheckedInfos ( IEnumerable workItems, TfsWorkItemCheckinAction checkinAction ) : IEnumerable
GetWorkItemInfos ( IEnumerable workItems, TfsWorkItemCheckinAction checkinAction ) : IEnumerable
HasShelveset ( string shelvesetName ) : bool
IsExistingInTfs ( string path ) : bool
ListShelvesets ( ShelveList shelveList, IGitTfsRemote remote ) : int
QueueGatedCheckinBuild ( Uri value, string buildDefinitionName, string shelvesetName, string checkInTicket ) : int
SetPathResolver ( ) : void
ShowCheckinDialog ( IWorkspace workspace, IPendingChange pendingChanges, IEnumerable checkedInfos, string checkinComment ) : int
TfsHelper ( IContainer container, Script script ) : System
WithWorkspace ( string localDirectory, IGitTfsRemote remote, string>.IEnumerable mappings, TfsChangesetInfo versionToFetch, Action action ) : void
WithWorkspace ( string directory, IGitTfsRemote remote, TfsChangesetInfo versionToFetch, Action action ) : void

Private Methods

Method Description
BuildTfsChangeset ( ScriptedChangeset changeset, IGitTfsRemote remote ) : ITfsChangeset
GetRealRootBranch ( List deletedBranches, string branchPath ) : string

Method Details

CleanupWorkspaces() public method

public CleanupWorkspaces ( string workingDirectory ) : void
workingDirectory string
return void

CreateBranch() public method

public CreateBranch ( string sourcePath, string targetPath, int changesetId, string comment = null ) : void
sourcePath string
targetPath string
changesetId int
comment string
return void

CreateCheckinNote() public method

public CreateCheckinNote ( string>.Dictionary checkinNotes ) : ICheckinNote
checkinNotes string>.Dictionary
return ICheckinNote

CreateShelveset() public method

public CreateShelveset ( IWorkspace workspace, string shelvesetName ) : IShelveset
workspace IWorkspace
shelvesetName string
return IShelveset

CreateTfsRootBranch() public method

public CreateTfsRootBranch ( string projectName, string mainBranch, string gitRepositoryPath, bool createTeamProjectFolder ) : void
projectName string
mainBranch string
gitRepositoryPath string
createTeamProjectFolder bool
return void

DeleteShelveset() public method

public DeleteShelveset ( IWorkspace workspace, string shelvesetName ) : void
workspace IWorkspace
shelvesetName string
return void

EnsureAuthenticated() public method

public EnsureAuthenticated ( ) : void
return void

FindMergeChangesetParent() public method

public FindMergeChangesetParent ( string path, int firstChangeset, GitTfsRemote remote ) : int
path string
firstChangeset int
remote GitTfsRemote
return int

GetAllTfsRootBranchesOrderedByCreation() public method

public GetAllTfsRootBranchesOrderedByCreation ( ) : IEnumerable
return IEnumerable

GetBranches() public method

public GetBranches ( bool getDeletedBranches = false ) : IEnumerable
getDeletedBranches bool
return IEnumerable

GetChangeset() public method

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

GetChangeset() public method

public GetChangeset ( int changesetId, IGitTfsRemote remote ) : ITfsChangeset
changesetId int
remote IGitTfsRemote
return ITfsChangeset

GetChangesets() public method

public GetChangesets ( string path, int startVersion, IGitTfsRemote remote, int lastVersion = -1, bool byLots = false ) : IEnumerable
path string
startVersion int
remote IGitTfsRemote
lastVersion int
byLots bool
return IEnumerable

GetIdentity() public method

public GetIdentity ( string username ) : IIdentity
username string
return IIdentity

GetLabels() public method

public GetLabels ( string tfsPathBranch, string nameFilter = null ) : IEnumerable
tfsPathBranch string
nameFilter string
return IEnumerable

GetLatestChangeset() public method

public GetLatestChangeset ( IGitTfsRemote remote ) : ITfsChangeset
remote IGitTfsRemote
return ITfsChangeset

GetLatestChangesetId() public method

public GetLatestChangesetId ( IGitTfsRemote remote ) : int
remote IGitTfsRemote
return int

GetRootChangesetForBranch() public method

public GetRootChangesetForBranch ( string tfsPathBranchToCreate, int lastChangesetIdToCheck = -1, string tfsPathParentBranch = null ) : IList
tfsPathBranchToCreate string
lastChangesetIdToCheck int
tfsPathParentBranch string
return IList

GetShelvesetData() public method

public GetShelvesetData ( IGitTfsRemote remote, string shelvesetOwner, string shelvesetName ) : ITfsChangeset
remote IGitTfsRemote
shelvesetOwner string
shelvesetName string
return ITfsChangeset

GetWorkItemCheckedInfos() public method

public GetWorkItemCheckedInfos ( IEnumerable workItems, TfsWorkItemCheckinAction checkinAction ) : IEnumerable
workItems IEnumerable
checkinAction TfsWorkItemCheckinAction
return IEnumerable

GetWorkItemInfos() public method

public GetWorkItemInfos ( IEnumerable workItems, TfsWorkItemCheckinAction checkinAction ) : IEnumerable
workItems IEnumerable
checkinAction TfsWorkItemCheckinAction
return IEnumerable

HasShelveset() public method

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

IsExistingInTfs() public method

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

ListShelvesets() public method

public ListShelvesets ( ShelveList shelveList, IGitTfsRemote remote ) : int
shelveList ShelveList
remote IGitTfsRemote
return int

QueueGatedCheckinBuild() public method

public QueueGatedCheckinBuild ( Uri value, string buildDefinitionName, string shelvesetName, string checkInTicket ) : int
value Uri
buildDefinitionName string
shelvesetName string
checkInTicket string
return int

SetPathResolver() public method

public SetPathResolver ( ) : void
return void

ShowCheckinDialog() public method

public ShowCheckinDialog ( IWorkspace workspace, IPendingChange pendingChanges, IEnumerable checkedInfos, string checkinComment ) : int
workspace IWorkspace
pendingChanges IPendingChange
checkedInfos IEnumerable
checkinComment string
return int

TfsHelper() public method

public TfsHelper ( IContainer container, Script script ) : System
container IContainer
script Script
return System

WithWorkspace() public method

public WithWorkspace ( string localDirectory, IGitTfsRemote remote, string>.IEnumerable mappings, TfsChangesetInfo versionToFetch, Action action ) : void
localDirectory string
remote IGitTfsRemote
mappings string>.IEnumerable
versionToFetch TfsChangesetInfo
action Action
return void

WithWorkspace() public method

public WithWorkspace ( string directory, IGitTfsRemote remote, TfsChangesetInfo versionToFetch, Action action ) : void
directory string
remote IGitTfsRemote
versionToFetch TfsChangesetInfo
action Action
return void