fix local build numbers when compiling a merge before committing (two parents)

meow-7.2.2
Oz Linden 2013-06-04 12:33:51 -04:00
parent 3c2920297e
commit a3a933e212
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ if (NOT DEFINED VIEWER_SHORT_VERSION) # will be true in indra/, false in indra/n
find_program(MERCURIAL hg)
if (DEFINED MERCURIAL)
execute_process(
COMMAND ${MERCURIAL} parents --template "{rev}"
COMMAND ${MERCURIAL} log -r tip --template "{p1rev}"
OUTPUT_VARIABLE VIEWER_VERSION_REVISION
OUTPUT_STRIP_TRAILING_WHITESPACE
)