# HG changeset patch # User Pierre-Yves David # Date 2014-11-12 14:47:48 # Node ID fc73293f6060eeb3470733da2f45dc19e0e83efc # Parent 197e17be540715c6bc94e1c360d0a421a63d4e7f 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. diff --git a/mercurial/transaction.py b/mercurial/transaction.py --- a/mercurial/transaction.py +++ b/mercurial/transaction.py @@ -270,11 +270,7 @@ class transaction(object): 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: