如何将我的所有集市分支机构保留在多个物理位置?

发布于 2024-08-02 04:50:04 字数 558 浏览 3 评论 0原文

我最近开始从事一个使用 bazaar 的项目。我正在尝试找到一个我喜欢的集市工作流程,并且作为一名常规 git 用户,我无法避免使用 git 作为参考点。

在git中,我的所有分支都存储在一个目录中。如果一个分支的持续时间超过一个工作日,我会“git push”在服务器上保留一个副本。将分支保留在我的本地计算机上只会让我感到紧张。

对于 bazaar,我目前使用的共享存储库布局如下所示:

project/
  trunk/
  branch1/
  branch2/

主干是上游存储库的原始签出,分支是我的本地功能分支(使用“bzrclone trunkbranch1”创建)。当分支准备就绪时,我进入主干并运行“bzr merge ../branch1”,提交合并,然后“bzr Push”将更改推送到上游。

这工作得相当好,但我想在更多地方保​​留branchN。万一我的笔记本电脑坏了,我被公共汽车撞了等等。

集市用户有这样做的常见方法吗?我应该在某个地方 rsync 整个目录吗?我应该在晚上回家之前从每个分支“bzr Push”吗?我的基本方法是错误的吗?

I've recently started working on a project that uses bazaar. I'm attempting to find a bazaar workflow I like, and being a regular git user I can't avoid using git as a reference point.

In git, all my branches are stored in the one directory. If a branch lasts longer than a working day, I "git push " to keep a copy on the server. Keeping the branch on my local machine only makes me nervous.

With bazaar, I'm currently using a shared repository layout that looks like so:

project/
  trunk/
  branch1/
  branch2/

trunk is a pristine checkout of the upstream repo, and the branches are my local feature branches (created with "bzr clone trunk branch1"). When a branch is ready, I cd into trunk and run "bzr merge ../branch1", commit the merge, then "bzr push" to push changes into upstream.

This works fairly well, but I'd like to keep branchN in more places. In case my laptop dies, I'm hit by a bus, etc.

Is there common way bazaar users do this? Should I just rsync the entire dir somewhere? should I "bzr push " from each branch before I go home at night? Is my fundamental approach wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

蓝戈者 2024-08-09 04:50:04

你的做法无论如何都没有错。我不建议 rsync 整个目录,而是在每个分支中使用 bzr push 。还有 repo-push 插件,可以将整个共享存储库及其所有分支镜像到另一个位置,也许这​​就是您简化工作流程所需要的。

Your approach is not wrong in any case. I don't recommend to rsync entire dir, but instead using bzr push in each branch. There is also exists repo-push plugin that can mirror entire shared repo with all its branches to another location, maybe this is what you need to simplify your workflow.

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