Skip to content

Instantly share code, notes, and snippets.

@dacc
Created December 7, 2012 03:28
Show Gist options
  • Save dacc/4230525 to your computer and use it in GitHub Desktop.
Save dacc/4230525 to your computer and use it in GitHub Desktop.
getrev() {
echo `hg log -r $1` | awk '{print $2}' | awk 'BEGIN {FS=":"} {print $2}'
}
hgbranchdiff() {
from=$(getrev "parents(min(branch(.)))")
to=$(getrev "max(branch(.))")
hg diff -r $from -r $to
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment