gpt4 book ai didi

TortoiseSVN:如何在单个窗口中更新多个目录

转载 作者:行者123 更新时间:2023-12-04 17:48:03 25 4
gpt4 key购买 nike

我想创建一个命令文件来更新我的 SVN。我有两条不同的路径。

我在下面有一个代码,它将更新两个唯一的目录。有没有办法在一行代码中做到这一点?

@echo off

cd C:\Program Files\TortoiseSVN\bin\
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_Testing" /closeonend:0
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_UAT" /closeonend:0

我希望它看起来像这样: http://i.stack.imgur.com/1sfC3.jpg

提前致谢!

最佳答案

来自 the documentation :

Since some of the commands can take a list of target paths (e.g. committing several specific files) the /path parameter can take several paths, separated by a * character.



页面末尾的示例之一演示了这一点:

TortoiseProc.exe /command:commit
/path:"c:\svn_wc\file1.txt*c:\svn_wc\file2.txt"
/logmsg:"test log message" /closeonend:0


所以你应该把两条路径放在一起,用 * 分隔。 .尝试:
start TortoiseProc.exe /command:update /path:"C:\Files\SVN Repository\_Testing*C:\Files\SVN Repository\_UAT" /closeonend:0

关于TortoiseSVN:如何在单个窗口中更新多个目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26294735/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com