hgext/mq.py
changeset 4341 7ae02bce8de2
parent 4332 4e5e1638b165
child 4343 077aafddd35f
child 4406 f700ea2b0689
--- a/hgext/mq.py	Thu Apr 12 22:41:50 2007 +0200
+++ b/hgext/mq.py	Thu Apr 12 14:45:53 2007 -0700
@@ -1547,7 +1547,7 @@
 def top(ui, repo, **opts):
     """print the name of the current patch"""
     q = repo.mq
-    t = len(q.applied)
+    t = q.series_end()
     if t:
         return q.qseries(repo, start=t-1, length=1, status='A',
                          summary=opts.get('summary'))