localrepo: ensure files unicity in commit() (issue 714)
authorPatrick Mezard <pmezard@gmail.com>
Mon, 21 Jan 2008 10:02:32 +0100
changeset 5882 f791a2acf11b
parent 5881 4bb64294e5b4
child 5883 a893610f6f0c
localrepo: ensure files unicity in commit() (issue 714)
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Thu Dec 27 23:55:40 2007 -0600
+++ b/mercurial/localrepo.py	Mon Jan 21 10:02:32 2008 +0100
@@ -661,6 +661,8 @@
                match=util.always, force=False, force_editor=False,
                p1=None, p2=None, extra={}, empty_ok=False):
         wlock = lock = tr = None
+        if files:
+            files = util.unique(files)
         try:
             commit = []
             remove = []