如何在客户端计算机上使用 SVNLook 功能

发布于 2024-07-12 23:28:59 字数 173 浏览 4 评论 0原文

希望使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

初懵 2024-07-19 23:28:59

svnlook 直接在存储库数据库上工作。 该数据库在客户端计算机上不可用(通常,除非您通过 file:/// 访问存储库)。 所以没办法使用svnlook。

您可以通过 svn 客户端获取大部分信息。

你没有提到你到底想要什么信息,但我建议使用

svn log
svn diff
svn info

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
svn diff
svn info
明明#如月 2024-07-19 23:28:59

svn log -rev 'head' -v url

这显示了与 svnlook 类似的 dirs_changed

svn log -rev 'head' -v url

this shows similar dirs_changed from svnlook

极度宠爱 2024-07-19 23:28:59
svn merge –dry-run -r BASE:HEAD .
svn merge –dry-run -r BASE:HEAD .
甚是思念 2024-07-19 23:28:59

我使用简单的脚本 svn-report.sh 来获取修订间隔的更改(不带参数运行脚本返回最新修订版):

#!/bin/bash
# Reports SVN commits from version (parameter1) to version (parameter2)

if [ "$#" = "2" ]; then
    echo "SVN commits for versions" $1 "till" $2
    for (( i=$1; i<=$2; i++ ))
    do
        svn log -r $i -v
        echo ""
    done
else
    echo "Usage: svn-report [from earlier revision number] [to latest revison number]"
    echo "Example: ./svn-report.sh 30 35"
    echo "Latest revison is:"
    svn log -r head
fi

I use simple script svn-report.sh for getting changes for interval of revisions (running script without parameters returns latest revison):

#!/bin/bash
# Reports SVN commits from version (parameter1) to version (parameter2)

if [ "$#" = "2" ]; then
    echo "SVN commits for versions" $1 "till" $2
    for (( i=$1; i<=$2; i++ ))
    do
        svn log -r $i -v
        echo ""
    done
else
    echo "Usage: svn-report [from earlier revision number] [to latest revison number]"
    echo "Example: ./svn-report.sh 30 35"
    echo "Latest revison is:"
    svn log -r head
fi
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文