D3964: macosx: fixing macOS version generation after db9d1dd01bf0
rdamazio (Rodrigo Damazio Bovendorp)
phabricator at mercurial-scm.org
Thu Jul 19 08:28:54 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG25880ddf9a86: macosx: fixing macOS version generation after db9d1dd01bf0 (authored by rdamazio, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3964?vs=9627&id=9633
REVISION DETAIL
https://phab.mercurial-scm.org/D3964
AFFECTED FILES
contrib/genosxversion.py
CHANGE DETAILS
diff --git a/contrib/genosxversion.py b/contrib/genosxversion.py
--- a/contrib/genosxversion.py
+++ b/contrib/genosxversion.py
@@ -117,9 +117,9 @@
return
with open(opts.versionfile) as f:
for l in f:
- if l.startswith('version = '):
+ if l.startswith('version = b'):
# version number is entire line minus the quotes
- ver = l[len('version = ') + 1:-2]
+ ver = l[len('version = b') + 1:-2]
break
if opts.paranoid:
print(paranoidver(ver))
To: rdamazio, #hg-reviewers
Cc: glandium, mercurial-devel
More information about the Mercurial-devel
mailing list