Patchwork [07,of,10,V2] clfilter: ensure unfiltered repo have a filtername attribute too

login
register
mail settings
Submitter Pierre-Yves David
Date Dec. 28, 2012, 12:56 a.m.
Message ID <abf14e45d19b7f1e4392.1356656182@yamac.lan>
Download mbox | patch
Permalink /patch/312/
State Superseded, archived
Commit d336f53cb2e315fd7928dc610a06e9e208609222
Headers show

Comments

Pierre-Yves David - Dec. 28, 2012, 12:56 a.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at logilab.fr>
# Date 1356314702 -3600
# Node ID abf14e45d19b7f1e439251999ea5fb25d184b326
# Parent  2734b4065b5c6ac69c46ef0d2aa02678ae8e65ff
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):