[PATCH 3 of 5] setup: builds from archives with tagged revisions should use the tag name

Gilles Moris gilles.moris at free.fr
Fri Oct 16 09:16:27 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 39b4734384fa6bed8a4fb75f1d7f2b0cef83fd33
# Parent  89d9d923d262827efd0c9ee2e9db414f5592bc05
setup: builds from archives with tagged revisions should use the tag name

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()
+            # if there are multiple tags then we only use the first
             break
 
 if version:



More information about the Mercurial-devel mailing list