build-scripts/showrev.sh
changeset 10420 0d91817f35e9
parent 4935 a727eda441be
child 13711 a375181874ce
equal deleted inserted replaced
10419:efb26f3918c4 10420:0d91817f35e9
     1 #!/bin/sh
     1 #!/bin/sh
     2 #
     2 #
     3 # Print the current source revision, if available
     3 # Print the current source revision, if available
     4 
     4 
     5 # FIXME: this prints the tip, which isn't useful if you're on a different
     5 hg parents --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)
     6 #  branch, or just not sync'd to the tip.
       
     7 hg tip --template 'hg-{rev}:{node|short}' || (echo "hg-0:baadf00d"; exit 1)