【发布时间】:2012-12-03 09:22:00
【问题描述】:
Mercurial Queues 最近获得了一项新功能,该功能允许在有本地更改时推送和弹出 mq 补丁,前提是补丁不与本地更改冲突。这由--keep-changes 标志控制。我想将此行为设为默认行为。通常,我会避免设置默认值,因为这意味着 hg 在我的机器上的工作方式与在其他机器上的工作方式不同,但在这种情况下它似乎无害。
hg help qpop 说,例如
With --keep-changes, abort only if the uncommitted files overlap with
patched files.
[...]
--keep-changes tolerate non-conflicting local changes
那么,谁能告诉.hgrc 中的内容,以便--keep-changes 成为qpush 和qpop 的默认值?
有关此功能的历史记录,请参阅 Bug 2780 - qpop should work if the local changes and the mq patches are unrelated。可能没有选项可以设置它,在这种情况下它的用处不大。甚至没有一个字母的别名。
【问题讨论】:
标签: mercurial default mq mercurial-queue