changeset 23318:fc73293f6060

transaction: drop special handling for phases and bookmarks generation We are still doing double backups, but now that we have proper location handling this is less of an issue. Dropping this simplifies the code before we add some pending-related logic. This also ensures we actually test the new 'location' mechanism.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 12 Nov 2014 14:47:48 +0000
parents 197e17be5407
children 3177d710630d
files mercurial/transaction.py
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/transaction.py	Fri Oct 17 20:53:42 2014 -0700
+++ b/mercurial/transaction.py	Wed Nov 12 14:47:48 2014 +0000
@@ -270,11 +270,7 @@
             files = []
             try:
                 for name in filenames:
-                    # 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', 'bookmarks'):
-                        self.addbackup(name, location=location)
+                    self.addbackup(name, location=location)
                     files.append(vfs(name, 'w', atomictemp=True))
                 genfunc(*files)
             finally: