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