Skip to content

Instantly share code, notes, and snippets.

@mattip
Last active May 15, 2020 11:47
Show Gist options
  • Save mattip/cda65382ba3667756c081245e277d890 to your computer and use it in GitHub Desktop.
Save mattip/cda65382ba3667756c081245e277d890 to your computer and use it in GitHub Desktop.
find branches that have only a few commits
$for b in `hg branches -a -T "{branch} "`; do declare -i root=`hg id -n -r roots\(branch\($b\)\)`; declare -i head=`hg id -n -r $b`; if [ $(( head - root )) -lt 3 ]; then echo "$b $(( head - root )) $head - $root"; fi; done |less
cpyext-multiple-inheritance 1 99413 - 99412
experiment-simpler_rstr_getslice 1 98947 - 98946
chameleon 0 98427 - 98427
py3.7-tracemalloc 0 98260 - 98260
issue3111-no-lock-for-main 0 98244 - 98244
dynamic-jitcodes 0 97611 - 97611
codec_errorhandler 1 97395 - 97394
ann-systemexit 1 95875 - 95874
unicode-from-unicode-in-c 0 95258 - 95258
issue2806_tp_init 0 94418 - 94418
rgil-cffi 0 93950 - 93950
mprof-enable-kwargs 0 93026 - 93026
canraise-assertionerror 0 92903 - 92903
win32-slow-tests 0 92468 - 92468
cpyext-tp_dictoffset 2 92370 - 92368
bridgeopt-improvements 1 92103 - 92102
strbufobject 1 91354 - 91353
gcc-lto 0 90504 - 90504
utf8sp 0 89042 - 89042
py3.3 0 87711 - 87711
_py3k-cpyext-A 2 87014 - 87012
w-xor-x 1 86198 - 86197
applevel-unroll-safe 0 84976 - 84976
ast-arena 1 83657 - 83656
get-heap-stats 0 83562 - 83562
pypy3.3-bootstrap 0 82923 - 82923
gc-vmprof 1 78868 - 78867
vendoring 2 75982 - 75980
optimize-locks 1 75770 - 75769
no-silent-merging-of-int-types 0 74913 - 74913
rpython-__eq__ 0 72609 - 72609
pypy-alone 0 68831 - 68831
rpython-alone 0 68830 - 68830
unroll-virtual-dict-resize 0 66846 - 66846
asm-backend-dupe-removal 0 62384 - 62384
py3k-listview_str 2 58456 - 58454
jit-tracehook 2 53086 - 53084
int32on64-experiment 0 45224 - 45224
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment