[PATCH 08 of 14 clfilter part 1 V2] clfilter: ensure `rollback` is run unfiltered

pierre-yves.david at logilab.fr pierre-yves.david at logilab.fr
Mon Nov 26 12:34:41 CST 2012


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1353954084 -3600
# Node ID 0c43b5b204c09a707d76f7ae170d811e543ef561
# Parent  bb15b9ca1bdd2461f361f08e055c0fa1493df6f7
clfilter: ensure `rollback` is run unfiltered

Rollback logic needs to be aware of the whole repository to works properly.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -976,10 +976,11 @@ class localrepository(object):
                 self.ui.warn(_("no rollback information available\n"))
                 return 1
         finally:
             release(lock, wlock)
 
+    @unfilteredmeth # Until we get a smarter cache management
     def _rollback(self, dryrun, force):
         ui = self.ui
         try:
             args = self.opener.read('undo.desc').splitlines()
             (oldlen, desc, detail) = (int(args[0]), args[1], None)


More information about the Mercurial-devel mailing list