Mercurial > dotfiles
diff .hgrc @ 487:8fc15cd5aeaf
hg: overly-complicated "unstackall" alias
I can't quite bring myself to throw this away.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 30 Jun 2020 10:39:43 -0400 |
parents | a3fc26c26f89 |
children | 405a910cf164 |
line wrap: on
line diff
--- 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 <raf@durin42.com> ignore = ~/.hgglobalignore