# HG changeset patch # User Augie Fackler # Date 1543437998 18000 # Node ID 405a910cf16453bb55983c1e06725f201e5e0664 # Parent 8fc15cd5aeafe32f2348c781c9c0de75ac9236e6 hg: add an `anext` alias that uses rebase --auto-orphans diff --git a/.hgrc b/.hgrc --- 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 ignore = ~/.hgglobalignore