[Python-checkins] r88678 - peps/trunk/pep-0385.txt

antoine.pitrou python-checkins at python.org
Mon Feb 28 19:32:14 CET 2011


Author: antoine.pitrou
Date: Mon Feb 28 19:32:14 2011
New Revision: 88678

Log:
Fix tags in example, and mention latesttag and latesttagdistance



Modified:
   peps/trunk/pep-0385.txt

Modified: peps/trunk/pep-0385.txt
==============================================================================
--- peps/trunk/pep-0385.txt	(original)
+++ peps/trunk/pep-0385.txt	Mon Feb 28 19:32:14 2011
@@ -446,18 +446,29 @@
 ('tip' doesn't count), and uses the branch name otherwise.
 sys.subversion becomes
 
-* ('CPython', '2.6.2', 'dd3ebf81af43')
+* ('CPython', 'v2.6.2', 'dd3ebf81af43')
 * ('CPython', 'default', 'af694c6a888c+')
 
 and the build info string becomes
 
-* '2.6.2:dd3ebf81af43, Jun  2 2009, 09:58:33'
+* 'v2.6.2:dd3ebf81af43, Jun  2 2009, 09:58:33'
 * 'default:af694c6a888c+, Jun  2 2009, 01:24:14'
 
 This reflects that the default branch in hg is called 'default'
 instead of Subversion's 'trunk', and reflects the proposed new tag
 format.
 
+Mercurial also allows to find out the latest tag and the number of
+changesets separating the current changeset from that tag, allowing for
+a descriptive version string::
+
+    $ hg parent --template "{latesttag}+{latesttagdistance}-{node|short}\n"
+    v3.2+37-4b5d0d260e72
+    $ hg up 2.7
+    3316 files updated, 0 files merged, 379 files removed, 0 files unresolved
+    $ hg parent --template "{latesttag}+{latesttagdistance}-{node|short}\n"
+    v2.7.1+216-9619d21d8198
+
 
 Footnotes
 =========


More information about the Python-checkins mailing list