mercurial/transaction.py
changeset 22662 c4d63f6740b8
parent 22204 f8dc6599da5d
child 22663 4c6198737ad8
--- a/mercurial/transaction.py	Thu Oct 02 00:15:15 2014 -0500
+++ b/mercurial/transaction.py	Wed Oct 01 21:40:44 2014 -0500
@@ -243,7 +243,11 @@
             files = []
             try:
                 for name in filenames:
-                    self.addbackup(name)
+                    # Some files are already backed up when creating the
+                    # localrepo. Until this is properly fixed we disable the
+                    # backup for them.
+                    if name not in ('phaseroots',):
+                        self.addbackup(name)
                     files.append(self.opener(name, 'w', atomictemp=True))
                 genfunc(*files)
             finally: