changeset 4341:7ae02bce8de2

mq: fix qtop when some patches beneath are guarded
author Brendan Cully <brendan@kublai.com>
date Thu, 12 Apr 2007 14:45:53 -0700
parents 23068518deca
children 9bfe93edfbb0 077aafddd35f
files hgext/mq.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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'))