[PATCH 06 of 14 clfilter part 1 V2] clfilter: ensure tag logic run unfiltered

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

# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1353954384 -3600
# Node ID d59e5140f90d40baedeb784face8c8e1761de1d0
# Parent  9fccc74aab7bfcd9b5a2394e6f0bc794c7a720c8
clfilter: ensure tag logic run unfiltered

The current tag logic is not aware of filtering. We keep the status-co,
ensuring that the tag cache is computed as before: without any filtering.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -392,10 +392,11 @@ class localrepository(object):
         return 'file:' + self.root
     def hook(self, name, throw=False, **args):
         return hook.hook(self.ui, self, name, throw, **args)
+    @unfilteredmeth
     def _tag(self, names, node, message, local, user, date, extra={}):
         if isinstance(names, str):
             names = (names,)
         branches = self.branchmap()

More information about the Mercurial-devel mailing list