##// END OF EJS Templates
Merge with crew-stable....
Patrick Mezard -
r4409:28b7d949 merge default
parent child Browse files
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'))
@@ -54,6 +54,8 b' hg qguard c.patch'
54 54
55 55 echo % should skip c.patch
56 56 hg qpush -a
57 echo % should display b.patch
58 hg qtop
57 59
58 60 hg qguard -n c.patch
59 61 echo % should push c.patch
@@ -25,6 +25,8 b' c.patch: -a'
25 25 applying b.patch
26 26 skipping c.patch - guarded by '-a'
27 27 Now at: b.patch
28 % should display b.patch
29 b.patch
28 30 % should push c.patch
29 31 applying c.patch
30 32 Now at: c.patch
General Comments 0
You need to be logged in to leave comments. Login now