Skip to content

Commit

Permalink
Small fix in version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjordan committed Mar 20, 2015
1 parent b565ef5 commit 3a011f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion windows/src/build/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ def gethgrev():
res = getoutput(".", ['hg', 'id', '-nib'])
if res is None: return None

parent, revnum, branch = res.split(' ')
parts = res.split(' ')
if len(parts) == 3:
parent, revnum, branch = parts
else:
return None

return parent, branch

def getdatebld():
Expand Down

0 comments on commit 3a011f4

Please sign in to comment.