Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/mq.py @ 3373:58202386deb7
mq: make qdelete without -k or a subrepository delete all patches
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 12 Oct 2006 14:02:41 -0700 |
parents | 9851f46d6ecc |
children | 2d35a8d2b32d |
comparison
equal
deleted
inserted
replaced
3372:fd43ff3b4442 | 3373:58202386deb7 |
---|---|
519 if not opts.get('keep'): | 519 if not opts.get('keep'): |
520 r = self.qrepo() | 520 r = self.qrepo() |
521 if r: | 521 if r: |
522 r.remove(realpatches, True) | 522 r.remove(realpatches, True) |
523 else: | 523 else: |
524 os.unlink(self.join(patch)) | 524 for p in realpatches: |
525 os.unlink(self.join(p)) | |
525 | 526 |
526 if appliedbase: | 527 if appliedbase: |
527 del self.applied[:appliedbase] | 528 del self.applied[:appliedbase] |
528 self.applied_dirty = 1 | 529 self.applied_dirty = 1 |
529 indices = [self.find_series(p) for p in realpatches] | 530 indices = [self.find_series(p) for p in realpatches] |