有没有办法找出集市更新会做什么

发布于 2024-09-14 12:23:16 字数 64 浏览 1 评论 0原文

有没有一种方法可以在不实际执行的情况下找出 bzr 更新将执行哪些更改。 特别是,如果发生冲突,我想得到一些警告。

Is theere a way of finding out what changes a bzr update will do without actually doing it.
Specifially I would like to have a bit of warning if there is going to be a conflict.

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

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

发布评论

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

评论(1

伴随着你 2024-09-21 12:23:16

我不直接知道,这就是 bzr revert 的用途。但是,有一种常见的方法可以帮助您构建本地分支机构。我使用一个镜像中央分支的本地分支,然后我从该分支中​​分支出我的工作。当我准备好“签入”时,我会更新我的本地镜像分支,它总是会成功而不会发生冲突,因为我没有更改该分支的工作副本。然后我将我的功能分支合并到我的本地镜像分支中,然后将我的本地镜像分支推送到中央存储库。

在您的情况下,此设置的优点是,如果您不想实际尝试合并,可以使用 bzr merge --previewbzr diff 来查看更改。我个人更喜欢恢复合并,直到上游或本地功能分支中的冲突得到解决。

Not directly that I'm aware of, that's what bzr revert is for. However, there is a common way to structure your local branches to help. I use one local branch that mirrors the central branch, then I branch off of that for my work. When I'm ready to "check in," I update my local mirror branch, which always succeeds without conflicts because I haven't changed my working copy of that branch. Then I merge my feature branch into my local mirror branch, then push my local mirror branch to the central repository.

The advantage of this setup in your case is you could use bzr merge --preview or bzr diff to see the changes if you don't want to actually try the merge. I personally prefer just to revert the merge until the conflicts are fixed either upstream or in my local feature branch.

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