mercurial: add an old "qcref" alias, but it doesnt work on modern (or nix?) mercurial

This commit is contained in:
2025-07-15 22:23:43 +00:00
parent 5f829789fd
commit e4fc268c24

View File

@@ -30,16 +30,18 @@
[alias]
q = qseries -s -v
qstat = qdiff --stat
sblame = blame -undq
#
# `hg qdup NEW_QUEUE_NAME`: copy all patches in the current queue into a new queue
# current queue must not be named "patches"
qdup = !$HG qq --active > /tmp/hg.active ; $HG qpop -a ; cp -R .hg/patches-$(cat /tmp/hg.active) .hg/patches-$1 ; echo $1 >> .hg/patches.queues ; $HG qq $1
qstat = qdiff --stat
sblame = blame -undq
#
# these aliases are BROKEN:
# `hg qmigrate OTHER_QUEUE_NAME`: copy currently-applied patches onto another queue
# qmigrate = !$HG export -o '/tmp/qmigrate-$1' ; $HG qpop -a ; $HG qqueue $1 ; $HG import '/tmp/qmigrate-$1'
# `hg qcref`: like `git add -p`; select which changes should be in this patch, interactively
# qcref = !$HG qrefresh --exclude . && $HG qrefresh --config ui.interface.chunkselector=curses --interactive
'';
};
}