gpt4 book ai didi

linux - Mercurial 回退更新机制

转载 作者:可可西里 更新时间:2023-11-01 11:13:11 34 4
gpt4 key购买 nike

我们使用 mercurial 对多个存储库进行源代码控制。

是否有任何自动方法可以先在 DEV_USER 分支上更新,如果不存在则更新到 default 分支?

谢谢。

最佳答案

所选答案非常好,但我只是想把它放在这里:

hg update DEV_USER || hg update

如果你愿意,你可以输入一个 mercurial 别名

[alias]
myupdate = !$HG update $1 || $HG update

可以调用为 hg myupdate maybe_exists

关于linux - Mercurial 回退更新机制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16769230/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com