diff hgext/mq.py @ 4339: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
+++ b/hgext/mq.py
@@ -1586,7 +1586,7 @@ def series(ui, repo, **opts):
 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'))