##// 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 l = os.popen('hg id -it').read().split()
97 l = os.popen('hg id -it').read().split()
98 while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags
98 while len(l) > 1 and l[-1][0].isalpha(): # remove non-numbered tags
99 l.pop()
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 if version.endswith('+'):
101 if version.endswith('+'):
102 version += time.strftime('%Y%m%d')
102 version += time.strftime('%Y%m%d')
103
103
General Comments 0
You need to be logged in to leave comments. Login now