Skip to content

Instantly share code, notes, and snippets.

@pcwalton
Created June 2, 2010 00:51
Show Gist options
  • Save pcwalton/421761 to your computer and use it in GitHub Desktop.
Save pcwalton/421761 to your computer and use it in GitHub Desktop.
function hg-qfoldnext {
hg qfold `hg qnext`
}
function hg-qflatten {
hg qsave -c || exit 1
hg qpop
while [ `hg qnext` != $1 ]; do
hg-qfoldnext
done
hg-qfoldnext
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment