命令行列出颠覆中的所有合并(副本)? [英] Command line to list all merge(copies) in subversion?

查看:35
本文介绍了命令行列出颠覆中的所有合并(副本)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何列出所有 subversion 合并?

How can you list all subversion merges?

例如:

Trunk ____9_____14____20___
          \      \     \
           \______\_____\____
Branch01   10     15    21

如果我在 rev 9 上分支,然后在 rev 14 进行合并.将 rev 15 标识为从主干的 rev14 合并的 subversion 命令行是什么?我现在唯一能知道的方法是从日志文件中.但是,我知道我可以发出以下命令:

If I branched on rev 9, and then did a merge at rev 14. What is the subversion command line that identifies rev 15 as a merge from rev14 from trunk? The only way I can tell now is from the log file. However, I know I can issue the following command:

svn log –-stop-on-copy svn:<URL>/branches/Branch01

它将在 rev 10(分支)上停止.是否有我可以发出的命令,将 21、15 和 10 作为副本从主干列出?

and it will stop on rev 10 (branched). Is there a command I can issue, that will list 21, 15, and 10 as copies from trunk?

推荐答案

你可以使用 svn plist 命令来解决这个问题...

You can use the svn plist command for this...

 svn plist -v svn:mergeinfo URL/branches/Branch01

会打印出分行的信息

另一种方法是使用 --use-merge-history

svn log -v --use-merge-history URL/branches/Branch01

在我看来,以下是您要搜索的内容.

The following seemed to me what you are searching for.

svn mergeinfo URL/trunk URL/branches/Branch01 --show-revs merged

这篇关于命令行列出颠覆中的所有合并(副本)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆