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

login
register
mail settings
Submitter Pierre-Yves David
Date Dec. 26, 2012, 8:33 p.m.
Message ID <529cac3f16ce8da6e09f.1356553982@yamac.local>
Download mbox | patch
Permalink /patch/303/
State Superseded, archived
Commit d336f53cb2e315fd7928dc610a06e9e208609222
Headers show

Comments

Pierre-Yves David - Dec. 26, 2012, 8:33 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1356314702 -3600
# Node ID 529cac3f16ce8da6e09f672090f1242aa2748e3d
# Parent  ba744239ad1bfdce8e87de573e5dc191d0a7db06
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):