svn签出单个文件
2014-05-16 11:39
162 查看
if (System.IO.Directory.Exists(System.IO.Path.GetDirectoryName(this.Asset.LocalPath)) && System.IO.Directory.GetFiles(System.IO.Path.GetDirectoryName(this.Asset.LocalPath)).Length>0) { return new string[]{ string.Format("cd /d \"{0}\"",System.IO.Path.GetDirectoryName(this.Asset.LocalPath)), string.Format("svn up \"{0}\" --username \"{1}\" --password \"{2}\"",System.IO.Path.GetFileName(this.Asset.LocalPath),this.UserName,this.PassWord) }; } else { return new string[]{ //string.Format("del /s /q /f {0}",System.IO.Path.Combine(System.IO.Path.GetDirectoryName(this.Asset.LocalPath),"*.*")), string.Format( "svn checkout --depth=empty \"{0}\" \"{3}\" --username \"{1}\" --password \"{2}\"", System.IO.Path.GetDirectoryName(this.Asset.LocalPath).Replace('\\','/').Replace(string.Format("{0}/{1}",Huawei.SCMSync.SCMConfig.WorkPath.Replace('\\','/'),this.Asset.GUID),System.Text.RegularExpressions.Regex.Replace(this.Asset.StorePath,"[\\/][^\\.\\/]+\\.(cpp|h|java|c|v|sv)$",string.Empty)), this.UserName, this.PassWord, System.IO.Path.GetDirectoryName(this.Asset.LocalPath) ), string.Format("cd /d \"{0}\"",System.IO.Path.GetDirectoryName(this.Asset.LocalPath)), string.Format("svn up \"{0}\" --username \"{1}\" --password \"{2}\"",System.IO.Path.GetFileName(this.Asset.LocalPath),this.UserName,this.PassWord) }; }
相关文章推荐
- svn 使用tortoiseSVN 检出(check out) 单个文件
- svn checkout单个文件
- SVN中如何检出单个文件
- svn cat 单个文件checkout
- svn远程服务器上下载单个文件
- svn checkout单个文件(refers to a file, not a directory)
- svn 中如何checkout出单个文件
- svn 回滚 单个文件 或者 目录 或者 整个项目
- Linux环境下svn回滚单个文件的shell函数
- SVN Checkout Single File(SVN签出,更新单个文件)
- svn 中如何checkout出单个文件
- svn checkout单个文件
- SVN中CHECKOUT与CHECKIN单个文件的方法
- <SVN>使用SVN小乌龟对比单个文件任意版本的差异
- SVN更新时,整个项目更新报错,单个文件更新没问题。记录备忘
- 使用svn命令行递归的添加文件
- svn权限文件的注意事项
- SVN使用技巧 - 不要把不必要的文件版本化
- 开始使用SVN备份个人文件
- SVN的三个配置文件例子