Mercurial > dotfiles
comparison .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 |
comparison
equal
deleted
inserted
replaced
486:a3fc26c26f89 | 487:8fc15cd5aeaf |
---|---|
26 crecord = !$HG commit --interactive --config ui.interface=curses $@ | 26 crecord = !$HG commit --interactive --config ui.interface=curses $@ |
27 | 27 |
28 wc-out = log -r 'ancestors(.) and not upstream()' | 28 wc-out = log -r 'ancestors(.) and not upstream()' |
29 wc-email = email -r 'ancestors(.) and not upstream()' | 29 wc-email = email -r 'ancestors(.) and not upstream()' |
30 havepatch = log -r 'grep("$1")' | 30 havepatch = log -r 'grep("$1")' |
31 | |
32 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 | |
31 | 33 |
32 [ui] | 34 [ui] |
33 username = Augie Fackler <raf@durin42.com> | 35 username = Augie Fackler <raf@durin42.com> |
34 ignore = ~/.hgglobalignore | 36 ignore = ~/.hgglobalignore |
35 usehttp2=true | 37 usehttp2=true |