使用命令行获取指定标签的 VSS 项目树?
与此问题类似:
我正在尝试编写一个脚本来获取指定标签的 VSS 项目树。我有这个:
:: Path to the SS.exe command
set ss="C:\Program Files\Microsoft Visual SourceSafe\ss"
:: Path to the srcsafe.ini file for the repository
set SSDIR=\\Glopsvrfile01\VSS_Data
:: Path to the project root in VSS
set VSSRoot="$/Customers/MyCustomer/MyProject"
set /p version="Please enter a SourceSafe label: "
mkdir temp
:: vvv Here is the command vvv
%ss% get %VSSRoot% -Vl%version% -GLtemp -R
del /s /q temp\*.*
rmdir temp
我肯定传递了一个有效的标签(V1.0.29),但它只是返回 未找到版本
已尝试使用标记为 TempLabel 的版本,有效!仅仅是点吗?
有谁知道如何在命令行上列出项目的所有标记版本?
——阿利斯泰尔
Similar to this question:
Get all files from VSS for a given date?
I am trying to write a script that get a VSS project tree for a specified label. I have this:
:: Path to the SS.exe command
set ss="C:\Program Files\Microsoft Visual SourceSafe\ss"
:: Path to the srcsafe.ini file for the repository
set SSDIR=\\Glopsvrfile01\VSS_Data
:: Path to the project root in VSS
set VSSRoot="$/Customers/MyCustomer/MyProject"
set /p version="Please enter a SourceSafe label: "
mkdir temp
:: vvv Here is the command vvv
%ss% get %VSSRoot% -Vl%version% -GLtemp -R
del /s /q temp\*.*
rmdir temp
and I am definitely passing in a valid label (V1.0.29) but it just comes back with
Version not found
Having tried it with a version labeled TempLabel, that works! Is it just the dots?
Does anyone know how to list all the labeled versions of a project on the command line?
-- Alistair
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
花了几个小时后,我终于找到了您提供的脚本中的小故障。
只需将下面一行中的 VI 替换为 VL 即可。剩下的就完美了。
享受!
阿西夫
After spending couple of hours, finally I able to find the small glitch in your provided script.
Simple replace Vl with VL in the line below. Remaining is perfect.
Enjoy!
Asif