##// 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 return 0
1303 return 0
1304
1304
1305 def series_end(self, all_patches=False):
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 end = 0
1310 end = 0
1307 def next(start):
1311 def next(start):
1308 if all_patches:
1312 if all_patches:
@@ -1589,7 +1593,7 b' def series(ui, repo, **opts):'
1589 def top(ui, repo, **opts):
1593 def top(ui, repo, **opts):
1590 """print the name of the current patch"""
1594 """print the name of the current patch"""
1591 q = repo.mq
1595 q = repo.mq
1592 t = q.series_end()
1596 t = q.applied and q.series_end(True) or 0
1593 if t:
1597 if t:
1594 return q.qseries(repo, start=t-1, length=1, status='A',
1598 return q.qseries(repo, start=t-1, length=1, status='A',
1595 summary=opts.get('summary'))
1599 summary=opts.get('summary'))
@@ -54,6 +54,8 b' hg qguard c.patch'
54
54
55 echo % should skip c.patch
55 echo % should skip c.patch
56 hg qpush -a
56 hg qpush -a
57 echo % should display b.patch
58 hg qtop
57
59
58 hg qguard -n c.patch
60 hg qguard -n c.patch
59 echo % should push c.patch
61 echo % should push c.patch
@@ -25,6 +25,8 b' c.patch: -a'
25 applying b.patch
25 applying b.patch
26 skipping c.patch - guarded by '-a'
26 skipping c.patch - guarded by '-a'
27 Now at: b.patch
27 Now at: b.patch
28 % should display b.patch
29 b.patch
28 % should push c.patch
30 % should push c.patch
29 applying c.patch
31 applying c.patch
30 Now at: c.patch
32 Now at: c.patch
General Comments 0
You need to be logged in to leave comments. Login now