--- a/mercurial/archival.py Sun Jun 21 13:24:43 2015 +0900
+++ b/mercurial/archival.py Thu Jun 25 21:16:47 2015 -0400
@@ -75,7 +75,8 @@
cmdutil.show_changeset(repo.ui, repo, opts).show(ctx)
ltags, dist = repo.ui.popbuffer().split('\n')
ltags = ltags.split(':')
- changessince = len(repo.revs('only(.,%s)', ltags[0]))
+ # XXX: ctx.rev() needs to be handled differently with wdir()
+ changessince = len(repo.revs('only(%d,%s)', ctx.rev(), ltags[0]))
tags = ''.join('latesttag: %s\n' % t for t in ltags)
tags += 'latesttagdistance: %s\n' % dist
tags += 'changessincelatesttag: %s\n' % changessince