Mercurial > hg
diff hgext/mq.py @ 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 | 4e5e1638b165 |
children | 077aafddd35f f700ea2b0689 |
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'))