如何在客户端计算机上使用 SVNLook 功能
我
希望使用 Exec 命令从我的 MSbuild 脚本调用 svnlook 命令行,但是我读过的所有文档似乎都表明这只能在保存存储库本身的计算机(即服务器)上运行。
有谁知道如何我可以从客户端计算机访问此功能,是否有用于调用此功能的客户端包装器(即 svn log 和 svn info 的组合)?
All
I wish to call the svnlook commandline from my MSbuild script using the Exec command, however all the documentation I have read seems to indicate that this can only be run on the machine holding the repository itself (i.e. the server.)
Does anyone know how I can access this functionality from the client machine, is there a client wrapper for calling this functionality (i.e. a combination of svn log & svn info)??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
svnlook 直接在存储库数据库上工作。 该数据库在客户端计算机上不可用(通常,除非您通过 file:/// 访问存储库)。 所以没办法使用svnlook。
您可以通过 svn 客户端获取大部分信息。
你没有提到你到底想要什么信息,但我建议使用
svnlook works directly on the repository database. That database is not available on the client computer (usually, unless you access the repository via file:///). So there's no way to use svnlook.
You can get most information with the svn client.
you didn't mention what information you want exactly, but I suggest using
svn log -rev 'head' -v url
这显示了与 svnlook 类似的 dirs_changed
svn log -rev 'head' -v url
this shows similar dirs_changed from svnlook
我使用简单的脚本 svn-report.sh 来获取修订间隔的更改(不带参数运行脚本返回最新修订版):
I use simple script
svn-report.sh
for getting changes for interval of revisions (running script without parameters returns latest revison):