##// END OF EJS Templates
recover when no version information is available
Benoit Boissinot -
r7647:f7256cd9 default
parent child Browse files
Show More
@@ -97,7 +97,7 b' try:'
97 97 l = os.popen('hg id -it').read().split()
98 98 while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags
99 99 l.pop()
100 version = l[-1] or 'unknown' # latest tag or revision number
100 version = l and l[-1] or 'unknown' # latest tag or revision number
101 101 if version.endswith('+'):
102 102 version += time.strftime('%Y%m%d')
103 103
General Comments 0
You need to be logged in to leave comments. Login now