Skip to content

Instantly share code, notes, and snippets.

@paazmaya
Last active August 29, 2015 14:04
Show Gist options
  • Save paazmaya/eaa94315a104695a2fff to your computer and use it in GitHub Desktop.
Save paazmaya/eaa94315a104695a2fff to your computer and use it in GitHub Desktop.
List removed video files in Mercurial repository
hg log -r "removes('**')" --template "{rev}:\n{file_dels % '{file}\n'}\n" | grep -e '\.mp4' -e '\.avi' -e '\.mkv' > ../deleted-videos
# hg convert --filemap deleted-videos.map
awk '{print "exclude \"" $0 "\""}' ../deleted-videos > ../deleted-videos.map
@paazmaya
Copy link
Author

Once this ticket is fixed, the given snippet is not needed
http://bz.selenic.com/show_bug.cgi?id=4308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment