Bazaar 绑定分支提交和更新

发布于 2024-07-12 19:49:21 字数 181 浏览 8 评论 0原文

我将 bzr 用于网站。 我已经设置了所有当前的分支,因此通过绑定它们将主分支保留在服务器上。 这意味着当我在本地提交时,更改会自动推出。 到目前为止一切都很好。

但我仍然需要在远程服务器上调用更新。 虽然我认为这对某些人来说很好,但我发现它越来越烦人。

有没有办法同时提交、推送和远程更新?

I use bzr for websites. I have all my current ones set up so the master branch is kept on the server by having them bound. This means when I commit locally, the changes are automatically pushed out. All good so far.

But I still have to call an update on the remote server. While I can see this being great for some people, I'm finding it increasingly annoying.

Is there a way to commit, push and do a remote update all at the same time?

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

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

发布评论

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

评论(4

居里长安 2024-07-19 19:49:22

绑定分支上的 bzr 提交会上传您的更改,但不会更新主分支的工作树。

提交后,bzr Push 应该会导致工作树远程更新。

bzr commit on a bound branch uploads your changes but does not update the working tree of the master branch.

After your commit, bzr push should cause the working tree to update remotely.

旧人 2024-07-19 19:49:21

即使使用 VCS 来备份 IMO,对生产网站的自动更新也很糟糕。 不管怎样,你看过这个

Automatic updates to the production website is bad, even with a VCS to go back up IMO. Anyway, did you looked at this?

汐鸠 2024-07-19 19:49:21

bzr 有 2 个插件可以帮助您:

Push-and-update: https:// launchpad.net/bzr-push-and-update/

bzr-upload:https://launchpad。 net/bzr-upload

后者根本不需要在服务器上保留具有完整历史记录的分支。

there are 2 plugins for bzr that could help you:

push-and-update: https://launchpad.net/bzr-push-and-update/

bzr-upload: https://launchpad.net/bzr-upload

The latter does not require to keep the branch with full history on the server at all.

心奴独伤 2024-07-19 19:49:21

也许是一个脚本? 例如,

#!/bin/bash
bzr commit $*
bzr pull
bzr push

将其放入您的路径中并为其指定一个明显的名称,例如“bzrsync”。 这很简单,但应该可以节省您几次击键......

Perhaps a script? e.g.

#!/bin/bash
bzr commit $*
bzr pull
bzr push

Put it in your PATH and give it an obvious name like "bzrsync". It's simple, but should save you a few keystrokes...

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