Created
August 3, 2015 14:12
-
-
Save jtkorb/be34c686e09c89aa918b to your computer and use it in GitHub Desktop.
Shell script to remove bin files from a Mercurial repository.
This file contains 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
#!/bin/sh | |
if [ -d .hg ] | |
then | |
echo "Current directory contains a hg repository; try up a level." | |
exit 1 | |
fi | |
if [ "$1" == "" ] | |
then | |
echo "Usage: $0 hg-repository-directory" | |
exit 1 | |
fi | |
echo exclude bin > /tmp/cvt | |
hg convert --config convert.hg.saverev=false --filemap /tmp/cvt $1 | |
rm /tmp/cvt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment