本文整理汇总了C#中SvnClient.Move方法的典型用法代码示例。如果您正苦于以下问题:C# SvnClient.Move方法的具体用法?C# SvnClient.Move怎么用?C# SvnClient.Move使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SvnClient
的用法示例。
在下文中一共展示了SvnClient.Move方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RenameProjectFolder
public void RenameProjectFolder(RenameContext context)
{
using(SvnClient svnClient = new SvnClient())
{
svnClient.Move(context.OldProject.ProjectDirectory, context.NewProject.ProjectDirectory);
}
}
示例2: RenameProjectFile
public void RenameProjectFile(RenameContext context)
{
string oldProjectFile = string.Format("{0}{1}{2}{3}", context.NewProject.ProjectDirectory, "\\", context.OldProject.ProjectName, context.OldProject.ProjectExtension);
string newProjectFile = string.Format("{0}{1}{2}{3}", context.NewProject.ProjectDirectory, "\\", context.NewProject.ProjectName, context.NewProject.ProjectExtension);
if (File.Exists(oldProjectFile))
{
using (SvnClient svnClient = new SvnClient())
{
svnClient.Move(oldProjectFile, newProjectFile);
}
}
}
示例3: RenameMainEntryFile
public void RenameMainEntryFile(RenameContext context)
{
string oldMainEntryFile = string.Format("{0}{1}{2}{3}", context.NewProject.ProjectDirectory, "\\", context.OldProject.ProjectName, ".cpp");
string newMainEntryFile = string.Format("{0}{1}{2}{3}", context.NewProject.ProjectDirectory, "\\", context.NewProject.ProjectName, ".cpp");
// Only if the main entry file in c++ projects has the same name as the project itself, move it.
if(File.Exists(oldMainEntryFile))
{
using (SvnClient svnClient = new SvnClient())
{
svnClient.Move(oldMainEntryFile, newMainEntryFile);
}
}
}
示例4: RenameProjectFiltersFile
public void RenameProjectFiltersFile(RenameContext context)
{
if(!context.OldProject.ProjectType.Equals(ProjectType.Cplusplus))
{
return;
}
string oldProjectFiltersFile = string.Format("{0}{1}{2}{3}", context.NewProject.ProjectDirectory, "\\", context.OldProject.ProjectName, ".vcxproj.filters");
string newProjectFiltersFile = string.Format("{0}{1}{2}{3}", context.NewProject.ProjectDirectory, "\\", context.NewProject.ProjectName, ".vcxproj.filters");
if (File.Exists(oldProjectFiltersFile))
{
using (SvnClient svnClient = new SvnClient())
{
svnClient.Move(oldProjectFiltersFile, newProjectFiltersFile);
}
}
}
示例5: Move
public void Move(string sourcePath, string destPath)
{
/*
SvnExec("mv -- " + Quote(sourcePath) + " " + Quote(destPath));
*/
using (var client = new SvnClient())
{
SvnUI.Bind(client, parentWindow);
var result = client.Move(sourcePath, destPath, new SvnMoveArgs { AllowMixedRevisions = false, AlwaysMoveAsChild = false, CreateParents = true, Force = true, MetaDataOnly = false });
}
}