单调递增的集市主干修订号

发布于 2024-10-25 20:27:23 字数 680 浏览 3 评论 0原文

我仍在弄清楚集市的修订编号是如何工作的。我们团队使用的工作流程基本上是:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

深者入戏 2024-11-01 20:27:23

在中央服务器的主干上,编辑
/.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 所说:

目前,获得分支的唯一方法
选项是在“bzr init”期间。

bzr init --append-revisions-only

所以你可以

1) 让启动板删除现有分支

2) bzr init --append-revisions-only lp:...

3) bzr 推送 lp:...

并不完全是最佳的。

另一种方法是使用 sftp 并执行以下操作:

sftp bazaar.launchpad.net

<块引用>

cd ~user/project/branch/.bzr/branch
获取分支.conf

然后在 sftp 之外,编辑文件以添加
append_revisions_only = True

<块引用>

放置branch.conf

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:

At the moment, the only way to get a branch with that
option is during "bzr init".

bzr init --append-revisions-only

So you could:

1) have launchpad delete the existing branch

2) bzr init --append-revisions-only lp:...

3) bzr push lp:...

Not exactly optimal.

The other way to do it is to use sftp and do:

sftp bazaar.launchpad.net

cd ~user/project/branch/.bzr/branch
get branch.conf

Then outside of sftp, edit the file to add
append_revisions_only = True

put branch.conf

https://lists.ubuntu.com/archives/bazaar/2008q3/046797.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文