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

login
register
mail settings
Submitter Augie Fackler
Date Sept. 14, 2015, 4:40 p.m.
Message ID <709ccc88f8bdb46e4572.1442248816@arthedain.pit.corp.google.com>
Download mbox | patch
Permalink /patch/10504/
State Accepted
Headers show

Comments

Augie Fackler - Sept. 14, 2015, 4:40 p.m.
# HG changeset patch
# User Augie Fackler <augie@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.

Patch

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