Mercurial:将MQ修补程序搁置吗? [英] Mercurial: move MQ patch to shelve?
问题描述
Emacs VC模式显示目录状态中的更改,但忽略MQ更改...
Emacs VC mode show changes in directory state but ignore MQ changes...
我想从队列中删除补丁并将其应用到工作目录中.
I want to remove patch from queue and apply it on working directory.
这可以通过常用的patch
命令执行,但是它需要将一些参数和路径传递给实用程序(这并不方便,因为并非所有环境都允许自动补全).
This is possible with usual patch
command, but it require passing some arguments and paths to utilities (which is inconvenient as not all environment allow autocompletion).
我希望使用hg
内置解决方案.理想情况下-将补丁移到货架上.
I expect hg
built-in solution. Ideally - to move patch to shelve.
推荐答案
将更改从MQ移到工作树并忘记了:
Moving changes from MQ to working tree and forgetting it:
$ hg qgoto my.patch
$ hg qpop
$ hg qdel --keep my.patch
$ patch -p1 .hg/patches/my.patch
$ rm .hg/patches/my.patch
在Emacs中,要查看顶级MQ补丁中的差异,我发现命令C-u C-x v D qparent RET qtip RET
:
In Emacs to see difference in top MQ patches I find command C-u C-x v D qparent RET qtip RET
which is:
$ hg diff -r qparent:qtip
或更短:
$ hg diff -r qparent
或:
$ hg qdiff
但是最新的命令在Emacs VC模式下不存在.
but latest command doesn't present in Emacs VC mode.
这篇关于Mercurial:将MQ修补程序搁置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!