Fix tags in example, and mention latesttag and latesttagdistance
This commit is contained in:
parent
8f9377dd7e
commit
5a86f7274a
15
pep-0385.txt
15
pep-0385.txt
|
@ -446,18 +446,29 @@ on the currently checked out revision, use the tag if there is one
|
|||
('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
|
||||
=========
|
||||
|
|
Loading…
Reference in New Issue