Show More
@@ -1303,6 +1303,10 b' class queue:' | |||
|
1303 | 1303 | return 0 |
|
1304 | 1304 | |
|
1305 | 1305 | def series_end(self, all_patches=False): |
|
1306 | """If all_patches is False, return the index of the next pushable patch | |
|
1307 | in the series, or the series length. If all_patches is True, return the | |
|
1308 | index of the first patch past the last applied one. | |
|
1309 | """ | |
|
1306 | 1310 | end = 0 |
|
1307 | 1311 | def next(start): |
|
1308 | 1312 | if all_patches: |
@@ -1589,7 +1593,7 b' def series(ui, repo, **opts):' | |||
|
1589 | 1593 | def top(ui, repo, **opts): |
|
1590 | 1594 | """print the name of the current patch""" |
|
1591 | 1595 | q = repo.mq |
|
1592 | t = q.series_end() | |
|
1596 | t = q.applied and q.series_end(True) or 0 | |
|
1593 | 1597 | if t: |
|
1594 | 1598 | return q.qseries(repo, start=t-1, length=1, status='A', |
|
1595 | 1599 | summary=opts.get('summary')) |
General Comments 0
You need to be logged in to leave comments.
Login now