diff hgext/mq.py @ 4343:077aafddd35f

Merge with crew-stable
author Brendan Cully <brendan@kublai.com>
date Thu, 12 Apr 2007 15:07:05 -0700
parents 1cc5fc1d0994 7ae02bce8de2
children 15289406f89c
line wrap: on
line diff
--- 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'))