comparison .hgrc @ 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
comparison
equal deleted inserted replaced
487:8fc15cd5aeaf 488:405a910cf164
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 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 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
33
34 anext = !$HG rebase --auto 'children(allprecursors(.))' && $HG co tip
33 35
34 [ui] 36 [ui]
35 username = Augie Fackler <raf@durin42.com> 37 username = Augie Fackler <raf@durin42.com>
36 ignore = ~/.hgglobalignore 38 ignore = ~/.hgglobalignore
37 usehttp2=true 39 usehttp2=true