Mercurial > hg
comparison hgext/mq.py @ 12658:97d7ee445e98
mq: silence spurious output.
When using a versioned patch repository, you would get a spurious
warning when deleting and adding the same patch.
Before:
$ hg qdelete --keep 3.diff
$ hg qimport --existing 3.diff
adding 3.diff to series file
3.diff already tracked!
After:
$ hg qdelete --keep 3.diff
$ hg qimport --existing 3.diff
adding 3.diff to series file
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Sat, 09 Oct 2010 11:53:48 -0500 |
parents | 5192b24f309c |
children | 58a3e2608ae4 |
comparison
equal
deleted
inserted
replaced
12657:7de9033167f3 | 12658:97d7ee445e98 |
---|---|
477 if self.guards_dirty: | 477 if self.guards_dirty: |
478 write_list(self.active_guards, self.guards_path) | 478 write_list(self.active_guards, self.guards_path) |
479 if self.added: | 479 if self.added: |
480 qrepo = self.qrepo() | 480 qrepo = self.qrepo() |
481 if qrepo: | 481 if qrepo: |
482 qrepo[None].add(self.added) | 482 qrepo[None].add(f for f in self.added if f not in qrepo[None]) |
483 self.added = [] | 483 self.added = [] |
484 | 484 |
485 def removeundo(self, repo): | 485 def removeundo(self, repo): |
486 undo = repo.sjoin('undo') | 486 undo = repo.sjoin('undo') |
487 if not os.path.exists(undo): | 487 if not os.path.exists(undo): |