changeset 488:405a910cf164

hg: add an `anext` alias that uses rebase --auto-orphans
author Augie Fackler <raf@durin42.com>
date Wed, 28 Nov 2018 15:46:38 -0500
parents 8fc15cd5aeaf
children 29680270d3fd
files .hgrc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/.hgrc
+++ b/.hgrc
@@ -31,6 +31,8 @@ havepatch = log -r 'grep("$1")'
 
 unstackall = ! EDITOR="python3 -c 'import sys ; initial = [l for l in open(sys.argv[1]).read().splitlines() if l and not l.startswith("#")] ; baserev = initial[0].split()[1] + "^" ; f = open(sys.argv[1], "w") ;  [f.write("base %s\n%s\n" % (baserev, l)) for l in initial]'" $HG histedit $1
 
+anext = !$HG rebase --auto 'children(allprecursors(.))' && $HG co tip
+
 [ui]
 username = Augie Fackler <raf@durin42.com>
 ignore = ~/.hgglobalignore