Show More
@@ -432,7 +432,7 b' class queue(object):' | |||||
432 | self.active_guards.append(guard) |
|
432 | self.active_guards.append(guard) | |
433 | return self.active_guards |
|
433 | return self.active_guards | |
434 |
|
434 | |||
435 |
def set |
|
435 | def setguards(self, idx, guards): | |
436 | for g in guards: |
|
436 | for g in guards: | |
437 | if len(g) < 2: |
|
437 | if len(g) < 2: | |
438 | raise util.Abort(_('guard %r too short') % g) |
|
438 | raise util.Abort(_('guard %r too short') % g) | |
@@ -2454,7 +2454,7 b' def guard(ui, repo, *args, **opts):' | |||||
2454 | idx = q.findseries(patch) |
|
2454 | idx = q.findseries(patch) | |
2455 | if idx is None: |
|
2455 | if idx is None: | |
2456 | raise util.Abort(_('no patch named %s') % patch) |
|
2456 | raise util.Abort(_('no patch named %s') % patch) | |
2457 |
q.set |
|
2457 | q.setguards(idx, args) | |
2458 | q.save_dirty() |
|
2458 | q.save_dirty() | |
2459 | else: |
|
2459 | else: | |
2460 | status(q.series.index(q.lookup(patch))) |
|
2460 | status(q.series.index(q.lookup(patch))) |
General Comments 0
You need to be logged in to leave comments.
Login now