comparison hgext/mq.py @ 4346:c593e502f7fd

Merge with stable
author Matt Mackall <mpm@selenic.com>
date Sun, 15 Apr 2007 18:42:38 -0500
parents 1cc5fc1d0994 7ae02bce8de2
children 15289406f89c
comparison
equal deleted inserted replaced
4343:8b4d4f84b739 4346:c593e502f7fd
1584 return 0 1584 return 0
1585 1585
1586 def top(ui, repo, **opts): 1586 def top(ui, repo, **opts):
1587 """print the name of the current patch""" 1587 """print the name of the current patch"""
1588 q = repo.mq 1588 q = repo.mq
1589 t = len(q.applied) 1589 t = q.series_end()
1590 if t: 1590 if t:
1591 return q.qseries(repo, start=t-1, length=1, status='A', 1591 return q.qseries(repo, start=t-1, length=1, status='A',
1592 summary=opts.get('summary')) 1592 summary=opts.get('summary'))
1593 else: 1593 else:
1594 ui.write("No patches applied\n") 1594 ui.write("No patches applied\n")