showrev.sh 255 B

1234567
  1. #!/bin/sh
  2. #
  3. # Print the current source revision, if available
  4. # FIXME: this prints the tip, which isn't useful if you're on a different
  5. # branch, or just not sync'd to the tip.
  6. hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)