Created
February 12, 2010 22:39
-
-
Save digitaljhelms/303071 to your computer and use it in GitHub Desktop.
Quick way to see files in a given hg changset
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/bash | |
usage() | |
{ | |
cat << __EOT | |
Usage: hglist <revision> | |
where <revision> is the number of a commit revision you'd like to use. | |
__EOT | |
exit 1 | |
} | |
if [ -z $1 ]; then | |
usage | |
else | |
hg log -r$1 --template '{files}\n' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment