clfilter: ensure unfiltered repo have a filtername attribute too
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Mon, 24 Dec 2012 03:05:02 +0100
changeset 18186 d336f53cb2e3
parent 18185 5a047276764e
child 18187 4df8716d32f1
clfilter: ensure unfiltered repo have a filtername attribute too That will allows to use `repo.filtername` for dispatch purpose.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Dec 24 03:04:12 2012 +0100
+++ b/mercurial/localrepo.py	Mon Dec 24 03:05:02 2012 +0100
@@ -147,6 +147,7 @@
                                         'dotencode'))
     openerreqs = set(('revlogv1', 'generaldelta'))
     requirements = ['revlogv1']
+    filtername = None
 
     def _baserequirements(self, create):
         return self.requirements[:]