TortoiseSVN 批处理文件输出信息
TortoiseSVN batch file output info
我正在尝试使用 Windows 批处理文件和 TortoiseSVN 执行与以下 Linux 命令等效的操作。
svn info > info.txt
我尝试了以下但没有成功:
start /wait "" "c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:info >> %CD%\info.txt
我 运行 Windows 使用 TortoiseSVN v1.6.16,所以我无法访问命令行工具。
注意:我们在使用较新版本的 TortoiseSVN 时遇到了问题,因此我们回到了 1.6,直到使用较新版本解决了问题并且公司将服务器升级到该版本。
由于 zero-bits 的真实性,您的构造没有工作,没有工作并且永远不会工作:
start
(带和不带 /wait
)在 bat-file 中只有当你有多个 bat-process 从 this bat (compare with call
),调用GUI和直接使用program-name 没有区别
- TortoiseProc 毕竟是 GUI-app,它向 stdout
发出 nothing
- 信息过去和现在都是未知的 command for TortoiseProc,因此您只会得到 GUI-window "About"
:about Shows the about dialog. This is also shown if no command is
given
除了正确的建议"Update to at least 1.8 on client and have CLI-tools"您还可以考虑以下解决方案:
- 从与 TortoiseSVN 源无关的纯 CLI 安装 SVN-client(也是 1.6.* - 来自 WanDisco 将是不错的选择)与 TSVN 或其他位置相同(我在 1.6 时完成)
- 学习并使用 subwcrev(即使在 1.6 中它也是 TortoiseSVN 的一部分,AFAICR)并使用正确的关键字
在 subwcrev 的 template-file 中模拟 svn info
的某些部分
我正在尝试使用 Windows 批处理文件和 TortoiseSVN 执行与以下 Linux 命令等效的操作。
svn info > info.txt
我尝试了以下但没有成功:
start /wait "" "c:\Program Files\TortoiseSVN\bin\TortoiseProc.exe" /command:info >> %CD%\info.txt
我 运行 Windows 使用 TortoiseSVN v1.6.16,所以我无法访问命令行工具。
注意:我们在使用较新版本的 TortoiseSVN 时遇到了问题,因此我们回到了 1.6,直到使用较新版本解决了问题并且公司将服务器升级到该版本。
由于 zero-bits 的真实性,您的构造没有工作,没有工作并且永远不会工作:
start
(带和不带/wait
)在 bat-file 中只有当你有多个 bat-process 从 this bat (compare withcall
),调用GUI和直接使用program-name 没有区别
- TortoiseProc 毕竟是 GUI-app,它向 stdout 发出 nothing
- 信息过去和现在都是未知的 command for TortoiseProc,因此您只会得到 GUI-window "About"
:about Shows the about dialog. This is also shown if no command is given
除了正确的建议"Update to at least 1.8 on client and have CLI-tools"您还可以考虑以下解决方案:
- 从与 TortoiseSVN 源无关的纯 CLI 安装 SVN-client(也是 1.6.* - 来自 WanDisco 将是不错的选择)与 TSVN 或其他位置相同(我在 1.6 时完成)
- 学习并使用 subwcrev(即使在 1.6 中它也是 TortoiseSVN 的一部分,AFAICR)并使用正确的关键字 在 subwcrev 的 template-file 中模拟
svn info
的某些部分