本文整理汇总了C#中ITfsWorkspace.GetLocalPath方法的典型用法代码示例。如果您正苦于以下问题:C# ITfsWorkspace.GetLocalPath方法的具体用法?C# ITfsWorkspace.GetLocalPath怎么用?C# ITfsWorkspace.GetLocalPath使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ITfsWorkspace
的用法示例。
在下文中一共展示了ITfsWorkspace.GetLocalPath方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Apply
public void Apply(ITfsWorkspace workspace)
{
workspace.Edit(Path);
workspace.Rename(Path, PathTo, Score);
var workspaceFile = workspace.GetLocalPath(PathTo);
_repository.GetBlob(NewSha, workspaceFile);
}
示例2: Apply
public void Apply(ITfsWorkspace workspace)
{
workspace.Edit(_path);
workspace.Rename(_path, _pathTo);
var workspaceFile = workspace.GetLocalPath(_pathTo);
_repository.GetBlob(_newSha, workspaceFile);
}
示例3: Update
private void Update(ApplicableChange change, IGitTreeModifier treeBuilder, ITfsWorkspace workspace, IDictionary<string, GitObject> initialTree)
{
var localPath = workspace.GetLocalPath(change.GitPath);
if (File.Exists(localPath))
{
treeBuilder.Add(change.GitPath, localPath, change.Mode);
}
else
{
_stdout.WriteLine("Cannot checkout file '{0}' from TFS. Skip it", change.GitPath);
}
}
示例4: Add
private void Add(IItem item, string pathInGitRepo, GitIndexInfo index, ITfsWorkspace workspace)
{
if (item.DeletionId == 0)
{
index.Update(Mode.NewFile, pathInGitRepo, workspace.GetLocalPath(pathInGitRepo));
}
}
示例5: Update
private void Update(IChange change, string pathInGitRepo, GitIndexInfo index, ITfsWorkspace workspace, IDictionary<string, GitObject> initialTree)
{
if (change.Item.DeletionId == 0)
{
index.Update(
GetMode(change, initialTree, pathInGitRepo),
pathInGitRepo,
workspace.GetLocalPath(pathInGitRepo)
);
}
}
示例6: Add
private void Add(IItem item, string pathInGitRepo, IGitTreeModifier treeBuilder, ITfsWorkspace workspace)
{
if (item.DeletionId == 0)
{
treeBuilder.Add(pathInGitRepo, workspace.GetLocalPath(pathInGitRepo), LibGit2Sharp.Mode.NonExecutableFile);
}
}
示例7: Apply
public void Apply(ITfsWorkspace workspace)
{
var workspaceFile = workspace.GetLocalPath(Path);
Repository.CopyBlob(NewSha, workspaceFile);
workspace.Add(Path);
}
示例8: Apply
public void Apply(ITfsWorkspace workspace)
{
workspace.Edit(Path);
var workspaceFile = workspace.GetLocalPath(Path);
_repository.CopyBlob(NewSha, workspaceFile);
}
示例9: Update
private void Update(ApplicableChange change, IGitTreeModifier treeBuilder, ITfsWorkspace workspace, IDictionary<string, GitObject> initialTree)
{
treeBuilder.Add(change.GitPath, workspace.GetLocalPath(change.GitPath), change.Mode);
}
示例10: Apply
public void Apply(ITfsWorkspace workspace)
{
var workspaceFile = workspace.GetLocalPath(_path);
_repository.GetBlob(_newSha, workspaceFile);
workspace.Add(_path);
}