[PATCH] templatekw: document the reason {latesttag} doesn't make the date available
Matt Harbison
mharbison72 at gmail.com
Mon Oct 5 01:17:37 UTC 2015
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1444007787 14400
# Sun Oct 04 21:16:27 2015 -0400
# Node ID 35d5d07ac42f1087d277768db462e624b541cbcb
# Parent dcfd95985b4e3aeb4d3a4f48b2633f7b3ad45703
templatekw: document the reason {latesttag} doesn't make the date available
Feel free to fold this into patch 3 of the previous series.
diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -364,6 +364,9 @@
return len(repo.revs('only(%ld, %s)', revs, tag)) + offset
+ # latesttag[0] is an implementation detail for sorting csets on different
+ # branches in a stable manner- it is the date the tagged cset was created,
+ # not the date the tag was created. Therefore it isn't made visible here.
makemap = lambda v: {
'changes': changes,
'distance': latesttags[1],
More information about the Mercurial-devel
mailing list