Skip to content

Instantly share code, notes, and snippets.

@digitaljhelms
Created February 12, 2010 22:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitaljhelms/303071 to your computer and use it in GitHub Desktop.
Save digitaljhelms/303071 to your computer and use it in GitHub Desktop.
Quick way to see files in a given hg changset
#!/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