[PATCH 2 of 3 remotefilelog-ext debs] builddeb: use a + before latesttagdistance instead of -

Augie Fackler raf at durin42.com
Mon Sep 14 11:40:16 CDT 2015


# HG changeset patch
# User Augie Fackler <augie at google.com>
# Date 1442248485 14400
#      Mon Sep 14 12:34:45 2015 -0400
# Node ID 709ccc88f8bdb46e4572a0653a9d0455218ec3e6
# Parent  7981ebb084fe94c9e5461602115fa6e238e7f200
builddeb: use a + before latesttagdistance instead of -

This matches the behavior of Mercurial itself.

diff --git a/contrib/builddeb b/contrib/builddeb
--- a/contrib/builddeb
+++ b/contrib/builddeb
@@ -10,7 +10,7 @@ fi
 cp -r contrib/debian debian
 trap "rm -r '$PWD/debian'" EXIT
 
-version=$(hg log -r . -T'{latesttag}-{latesttagdistance}-{node|short}')
+version=$(hg log -r . -T'{latesttag}+{latesttagdistance}-{node|short}')
 
 control=debian/control
 changelog=debian/changelog


More information about the Mercurial-devel mailing list