# HG changeset patch # User Augie Fackler # Date 1593527983 14400 # Node ID 8fc15cd5aeafe32f2348c781c9c0de75ac9236e6 # Parent a3fc26c26f8987bdeb02a47cb2ed5999574b37ac hg: overly-complicated "unstackall" alias I can't quite bring myself to throw this away. diff --git a/.hgrc b/.hgrc --- a/.hgrc +++ b/.hgrc @@ -29,6 +29,8 @@ wc-out = log -r 'ancestors(.) and not up wc-email = email -r 'ancestors(.) and not upstream()' 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 + [ui] username = Augie Fackler ignore = ~/.hgglobalignore