Permalink
Browse files

SConstruct: fix HG revision to describe parent rather than tip

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information...
1 parent c2267f8 commit 2dc8ad9f5c982171ba495885f3117e01dfd39d86 @tycho committed May 15, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 SConstruct
View
6 SConstruct
@@ -32,9 +32,9 @@ def describe_revision():
# I considered using the Mercurial API directly, but the
# Mercurial wiki highly discourages it.
#
- hash = subprocess_output("hg tip --template {node}")
- tag = subprocess_output("hg tip --template {latesttag}")
- n = int(subprocess_output("hg tip --template {latesttagdistance}"))
+ hash = subprocess_output("hg parent --template {node}")
+ tag = subprocess_output("hg parent --template {latesttag}")
+ n = int(subprocess_output("hg parent --template {latesttagdistance}"))
return ('hg', tag, n, hash)
else:
tag = read_whole_file('tools/release_ver')

0 comments on commit 2dc8ad9

Please sign in to comment.