# HG changeset patch # User Pierre-Yves David # Date 1415803668 0 # 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 -r 197e17be5407 -r fc73293f6060 mercurial/transaction.py --- 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: