hgext/mq.py
changeset 4343 077aafddd35f
parent 4336 1cc5fc1d0994
parent 4341 7ae02bce8de2
child 4403 15289406f89c
--- a/hgext/mq.py	Tue Apr 10 10:34:43 2007 -0700
+++ b/hgext/mq.py	Thu Apr 12 15:07:05 2007 -0700
@@ -1586,7 +1586,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'))