Patchwork [3,of,6,V3] clfilter: ensure unfiltered repo have a filtername attribute too

login
register
mail settings
Submitter Pierre-Yves David
Date Jan. 1, 2013, 10:14 p.m.
Message ID <c568793f897554b8f8b0.1357078481@yamac.lan>
Download mbox | patch
Permalink /patch/342/
State Accepted
Commit d336f53cb2e315fd7928dc610a06e9e208609222
Headers show

Comments

Pierre-Yves David - Jan. 1, 2013, 10:14 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1356314702 -3600
# Node ID c568793f897554b8f8b0a05cf6cfc94c58d2c6e3
# Parent  db187f83ff0cdc760998f8e66ef75a000d9a804e
clfilter: ensure unfiltered repo have a filtername attribute too

That will allows to use `repo.filtername` for dispatch purpose.

Patch

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -145,10 +145,11 @@  class localrepository(object):
     supportedformats = set(('revlogv1', 'generaldelta'))
     supported = supportedformats | set(('store', 'fncache', 'shared',
                                         'dotencode'))
     openerreqs = set(('revlogv1', 'generaldelta'))
     requirements = ['revlogv1']
+    filtername = None
 
     def _baserequirements(self, create):
         return self.requirements[:]
 
     def __init__(self, baseui, path=None, create=False):