equal
deleted
inserted
replaced
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") |