Skip to content

Instantly share code, notes, and snippets.

@juliandescottes
Created November 1, 2018 21:32
Show Gist options
  • Save juliandescottes/c16a56771fd2d048b1cef8e846d7ccd4 to your computer and use it in GitHub Desktop.
Save juliandescottes/c16a56771fd2d048b1cef8e846d7ccd4 to your computer and use it in GitHub Desktop.
[alias]
wip = log --graph --rev=wip --template=wip
who = !$HG anno -u $1 | awk '{print $$1}' | sort | uniq -c | sort -r
amend = commit --amend
nuke = !$HG revert --all --no-backup ; $HG purge
now = !$HG parent | grep summary
next = !$HG up $($HG log -r . --template '{children}\n')
prev = up .^
[revsetalias]
wip = (parents(not public()) or not public() or . or (head() and branch(default))) and (not obsolete() or orphan()^) and not closed() and not (fxheads() - date(-90))
[templates]
wip = '{label("wip.branch", if(branches,"{branches} "))}{label(ifeq(graphnode,"x","wip.obsolete","wip.{phase}"),"{rev}:{node|short}")}{label("wip.user", " {author|user}")}{label("wip.tags", if(tags," {tags}"))}{label("wip.tags", if(fxheads," {fxheads}"))}{if(bookmarks," ")}{label("wip.bookmarks", if(bookmarks,bookmarks))}{label(ifcontains(rev, revset("parents()"), "wip.here"), " {desc|firstline}")}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment