[PATCH 3 of 4] setup: set the version string from a tag for archive like for in-place builds
Gilles Moris
gilles.moris at free.fr
Fri Oct 9 11:49:33 UTC 2009
setup.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
# HG changeset patch
# User Gilles Moris <gilles.moris at free.fr>
# Date 1249977954 -7200
# Node ID 93fe5e311cba260bbca66ec63410d0124882381e
# Parent 9bbf0fe10f5f72c6edbd0f645fdd45579d9f1736
setup: set the version string from a tag for archive like for in-place builds
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -144,6 +144,9 @@
for line in hgarchival:
if line.startswith('node:'):
version = line.split(':')[1].strip()[:12]
+ if line.startswith('tag:'):
+ version = line.split(':')[1].strip()
+ # stop on the first tag we find
break
if version:
More information about the Mercurial-devel
mailing list