mercurial/archival.py
changeset 25675 c76e8d14383a
parent 25658 e93036747902
parent 25665 dc05a10e1e45
child 25690 98064baab877
--- a/mercurial/archival.py	Sat Jun 27 17:31:06 2015 -0700
+++ b/mercurial/archival.py	Mon Jun 29 16:38:22 2015 -0500
@@ -85,7 +85,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