mercurial/archival.py
changeset 23645 242d11819c6c
parent 23575 a2f139d25845
child 24172 e0f06228bb66
--- a/mercurial/archival.py	Mon Dec 22 17:26:21 2014 -0600
+++ b/mercurial/archival.py	Fri Dec 12 15:27:13 2014 -0800
@@ -276,8 +276,11 @@
                         'style': '', 'patch': None, 'git': None}
                 cmdutil.show_changeset(repo.ui, repo, opts).show(ctx)
                 ltags, dist = repo.ui.popbuffer().split('\n')
-                tags = ''.join('latesttag: %s\n' % t for t in ltags.split(':'))
+                ltags = ltags.split(':')
+                changessince = len(repo.revs('only(.,%s)', ltags[0]))
+                tags = ''.join('latesttag: %s\n' % t for t in ltags)
                 tags += 'latesttagdistance: %s\n' % dist
+                tags += 'changessincelatesttag: %s\n' % changessince
 
             return base + tags