单调递增的集市主干修订号
我仍在弄清楚集市的修订编号是如何工作的。我们团队使用的工作流程基本上是:
bzr branch lp:project/trunk
# code,code,code
bzr commit ...
# code,code,code
bzr commit ...
bzr merge
# resolve, resolve, resolve
bzr push lp:project/trunk
如果主干修订编号稳定并且随着每次推送单调增加,我会更喜欢它。然而,据我了解,无论谁进行 bzr merge; bzr push lp:project/trunk
最终将主干的修订历史记录重新编号为本地分支修订编号。这让团队感到非常困惑,因为“trunk,revision 705”可能会随着时间的推移而改变。
我们可以使用全局 ID,但是使用像 [电子邮件受保护]
。
有没有办法安排我们的工作流程,使主干修订编号方案稳定并单调增加?
I'm still figuring out how bazaar's revision numbering works. The workflow our team uses is basically:
bzr branch lp:project/trunk
# code,code,code
bzr commit ...
# code,code,code
bzr commit ...
bzr merge
# resolve, resolve, resolve
bzr push lp:project/trunk
I'd prefer it if the trunk revision numbering was stable and increased monotonically with each push. However, as I understand it, whoever does bzr merge; bzr push lp:project/trunk
ends up renumbering the revision history of the trunk to whatever their local branch revision numbering was. This makes things very confusing for the team, because "trunk, revision 705" may change over time.
We could use global ids, but it's a little awkward to work with a long string like [email protected]
.
Is there any way to arrange our workflow so that the trunk revision numbering scheme is stable and increases monotonically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在中央服务器的主干上,编辑
/.bzr/branch/branch.conf
或~/.bazaar/locations.conf
或~/.bazaar/bazaar.conf
code>add
append_revisions_only=True
该分支现有的修订顺序不会再改变。
http://doc.bazaar .canonical.com/beta/en/user-reference/configuration-help.html#append-revisions-only
编辑:对于启动板,您可以尝试以下操作,如 John Arbash Meinel 所说:
https://lists.ubuntu.com/archives/bazaar/2008q3 /046797.html
On the trunk on your central server, edit
<yourbranch>/.bzr/branch/branch.conf
or~/.bazaar/locations.conf
or~/.bazaar/bazaar.conf
add
append_revisions_only=True
This branch's existing revision order will not change any more.
http://doc.bazaar.canonical.com/beta/en/user-reference/configuration-help.html#append-revisions-only
Edit: For launchpad you can try the following as John Arbash Meinel said:
https://lists.ubuntu.com/archives/bazaar/2008q3/046797.html