我知道在 Visual SourceSafe 中,您可以深入查看单个文件的历史记录,然后深入查看单个签入,并以这种方式对签入应用注释,但这很乏味且耗时 - 如果您有很多文件同时签入,并且您希望将相同的注释应用于所有文件,这将需要很长时间。
我使用工具 VSSReporter 从 VSS 生成签入报告和其他内容,但它不能编辑任何内容,只能报告它们。
是否有任何工具可以让您以高效且简单的方式返回并追溯应用签到评论?
I know that in Visual SourceSafe you can go in and drill down to the history of an individual file and then drill down to an individual check-in and apply a comment to the check-in that way but that's tedious and time consuming - if you have a lot of files that were checked in at the same time and you want the same comment to apply to all of them this will take forever.
I use the tool VSSReporter to generate reports of checkins and other stuff from VSS, but it cannot edit anything, only report on them.
Are there any tools which will let you go back and retroactively apply comments to check-ins in an efficient and easy manner?
发布评论
评论(1)
虽然我没有找到可以帮助解决此问题的程序,但我找到了 SourceSafe 命令行参考 并构建了一个执行以下操作的程序:
创建了 StringBuilder 并添加了这些行
set path=%path%;"C:\Program Files (x86)\Microsoft Visual SourceSafe\"
set ssdir=\\VSSServerName\VSSINIDirectory
对于文件中的每个条目,将这些行添加到 StringBuilder(修改版本号
-V
)ss cp "$/Path/to/project"
ss Comment "FileToComment.cs" -C"Comment to apply to Version 1" -V1
将 StringBuilder 输出到日期/时间戳批处理文件。
我无法分享代码,因为我是用公司的钱写的,但我想无论如何我都会分享这个过程
While I did not find a program that can aid in this, I found the SourceSafe Command Line Reference and constructed a program that did the following:
Created StringBuilder and added these lines
set path=%path%;"C:\Program Files (x86)\Microsoft Visual SourceSafe\"
set ssdir=\\VSSServerName\VSSINIDirectory
For each entry in the file, add these lines to the StringBuilder (modifying verson number
-V
)ss cp "$/Path/to/project"
ss Comment "FileToComment.cs" -C"Comment to apply to Version 1" -V1
Output StringBuilder to date/timestamped batch file.
System.Diagnostics.Process
, redirecting output to an identically date/timestamped text file.I can't share the code since I wrote it on my company's dime but I thought I'd share the process anyway