[PATCH 10 of 14 clfilter part 1 V2] clfilter: ensure changeset creation in the repo is run unfiltered

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


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1353954251 -3600
# Node ID b9ebcec0ad73a39cd0ca90fa96b1cd4127c1f513
# Parent  51e4c7205fa144cd25a426cf27557c141de83712
clfilter: ensure changeset creation in the repo is run unfiltered

this apply to both new commit and applied changegroup.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -1238,10 +1238,11 @@ class localrepository(object):
         if fparent1 != fparent2o and manifest1.flags(fname) != fctx.flags():
             changelist.append(fname)
 
         return fparent1
 
+    @unfilteredmeth
     def commit(self, text="", user=None, date=None, match=None, force=False,
                editor=False, extra={}):
         """Add a new revision to current repository.
 
         Revision information is gathered from the working directory,
@@ -1408,10 +1409,11 @@ class localrepository(object):
         def commithook(node=hex(ret), parent1=hookp1, parent2=hookp2):
             self.hook("commit", node=node, parent1=parent1, parent2=parent2)
         self._afterlock(commithook)
         return ret
 
+    @unfilteredmeth
     def commitctx(self, ctx, error=False):
         """Add a new revision to current repository.
         Revision information is passed via the context argument.
         """
 
@@ -2289,10 +2291,11 @@ class localrepository(object):
             if nodes:
                 self.hook('outgoing', node=hex(nodes[0]), source=source)
 
         return changegroup.unbundle10(util.chunkbuffer(gengroup()), 'UN')
 
+    @unfilteredmeth
     def addchangegroup(self, source, srctype, url, emptyok=False):
         """Add the changegroup returned by source.read() to this repo.
         srctype is a string like 'push', 'pull', or 'unbundle'.  url is
         the URL of the repo where this changegroup is coming from.
 


More information about the Mercurial-devel mailing list