bzr相当于svn mergeinfo

时间:2016-02-09 09:22:37

标签: svn bazaar

在我当前的svn存储库中,我使用命令:

svn mergeinfo --show-revs eligible ^/trunk ^/branches/testing

以程序可处理的格式进行合并修订。

有人知道在集市上是否有相应的命令?

1 个答案:

答案 0 :(得分:1)

#coupon_code::-moz-placeholder { color: #d3d3d3!important; opacity: 1!important; } 的工作方式,我认为没有与bzr完全等效,但是,您所寻求的信息应该可以通过svn mergeinfo命令检索,具体来说:< / p>

bzr missing

cd /path/to/trunk bzr missing --line --theirs-only /path/to/branches/testing | tail + 2 | awk -F: '{print $1}' 选项显示另一个分支中存在但尚未合并到当前分支中的修订。 --theirs-only过滤器会删除标题行。

tail +2格式将包含--line的其他信息,然后仅通过在冒号前打印修订号来删除。

如果需要,您还可以使用awk选项在自动脚本中省略cd部分:

-d

如果您需要更多信息而不仅仅是修订号(例如,如果您需要UUID而不是数字版本号),您可以通过以下方式安装bzr-xmloutput插件:

bzr missing --line --theirs-only -d /path/to/trunk /path/to/branches/testing

并使用# create ~/.bazaar/plugins directory if it doesn't exist via # mkdir ~/.bazaar; mkdir ~/.bazaar/plugins cd ~/.bazaar/plugins bzr branch lp:bzr-xmloutput xmloutput 代替--xml --show-ids并使用您喜欢的XML库来处理输出。