gpt4 book ai didi

svn - 如何在 SVN 中获取分支的原始修订版?

转载 作者:行者123 更新时间:2023-12-01 12:51:42 26 4
gpt4 key购买 nike

根据 this blog post这个命令应该告诉我何时创建了 protobuf 的 release-2.0.2rc1 标签:

svn log -v -r0:HEAD -l1 --stop-on-copy http://protobuf.googlecode.com/svn/tags/release-2.0.2rc1/

但是它不会:

svn log -v -r0:HEAD -l1 --stop-on-copy http://protobuf.googlecode.com/svn/tags/release-2.0.2rc1/
------------------------------------------------------------------------
r54 | kenton@google.com | 2008-09-29 20:26:43 -0400 (Mon, 29 Sep 2008) | 3 lines
Changed paths:
M /tags/release-2.0.2rc1/configure.ac
M /tags/release-2.0.2rc1/java/pom.xml
M /tags/release-2.0.2rc1/python/setup.py

Update version number in 2.0.2rc1 release branch.

如果我查看修订版 53,我会得到实际副本:

svn log -v -r53 -l1 --stop-on-copy http://protobuf.googlecode.com/svn/
------------------------------------------------------------------------
r53 | kenton@google.com | 2008-09-29 20:23:29 -0400 (Mon, 29 Sep 2008) | 3 lines
Changed paths:
A /tags/release-2.0.2rc1 (from /trunk:52)

Tagged release candidate 2.0.2rc1.

所以那个命令似乎让我在复制后得到了修订。我如何获得给我分支所做修订的命令?

最佳答案

这有时需要两个命令。我没有深入编写问题脚本,因为我的目标是从 SharpSvn 获取此信息。不是来自 SVN 命令行。但是,从命令行执行此操作的过程如下:

svn log -v -r0:HEAD -l1 --stop-on-copy http://protobuf.googlecode.com/svn/tags/release-2.0.2rc1/
REM inspect the output and see that there is no mention of /tags/release-2.0.2rc1/ being created or copied.
svn log -v -r53:0 -l1 --stop-on-copy http://protobuf.googlecode.com/svn/tags/release-2.0.2rc1/

关于svn - 如何在 SVN 中获取分支的原始修订版?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12015453/

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