programs/mercurial: implement a "hg qdup" alias
This commit is contained in:
@@ -29,12 +29,14 @@
|
|||||||
q = qseries -s -v
|
q = qseries -s -v
|
||||||
qstat = qdiff --stat
|
qstat = qdiff --stat
|
||||||
sblame = blame -undq
|
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
|
||||||
|
#
|
||||||
# these aliases are BROKEN:
|
# these aliases are BROKEN:
|
||||||
# `hg qmigrate OTHER_QUEUE_NAME`: copy currently-applied patches onto another queue
|
# `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'
|
# qmigrate = !$HG export -o '/tmp/qmigrate-$1' ; $HG qpop -a ; $HG qqueue $1 ; $HG import '/tmp/qmigrate-$1'
|
||||||
# `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 ; cp .hg/patches-$(cat /tmp/hg.active) .hg/patches-$1 ; echo $1 >> .hg/patches.queues
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user