在我当前的svn存储库中,我使用命令:
svn mergeinfo --show-revs eligible ^/trunk ^/branches/testing
以程序可处理的格式进行合并修订。
有人知道在集市上是否有相应的命令?
答案 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库来处理输出。