Skip to content

Instantly share code, notes, and snippets.

@tombatron
Created March 15, 2013 20:58
Show Gist options
  • Save tombatron/5173058 to your computer and use it in GitHub Desktop.
Save tombatron/5173058 to your computer and use it in GitHub Desktop.
Archiving only changed files between revisions in hg.
From bash...
hg grep -r rev1:rev2 --all . | cut -d : -f 1 | sort -u | sed 's/^/-I /' | xargs echo hg archive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment