Last active
August 29, 2015 14:04
-
-
Save paazmaya/eaa94315a104695a2fff to your computer and use it in GitHub Desktop.
List removed video files in Mercurial repository
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Once this ticket is fixed, the given snippet is not needed
http://bz.selenic.com/show_bug.cgi?id=4308