mercurial/localrepo.py
changeset 17994 8899bf48116a
parent 17993 1a6f8820eb71
child 17995 a5d85476da6e
equal deleted inserted replaced
17993:1a6f8820eb71 17994:8899bf48116a
    20 
    20 
    21 class storecache(filecache):
    21 class storecache(filecache):
    22     """filecache for files in the store"""
    22     """filecache for files in the store"""
    23     def join(self, obj, fname):
    23     def join(self, obj, fname):
    24         return obj.sjoin(fname)
    24         return obj.sjoin(fname)
       
    25 
       
    26 def unfilteredmeth(orig):
       
    27     """decorate method that always need to be run on unfiltered version"""
       
    28     def wrapper(repo, *args, **kwargs):
       
    29         return orig(repo.unfiltered(), *args, **kwargs)
       
    30     return wrapper
    25 
    31 
    26 MODERNCAPS = set(('lookup', 'branchmap', 'pushkey', 'known', 'getbundle'))
    32 MODERNCAPS = set(('lookup', 'branchmap', 'pushkey', 'known', 'getbundle'))
    27 LEGACYCAPS = MODERNCAPS.union(set(['changegroupsubset']))
    33 LEGACYCAPS = MODERNCAPS.union(set(['changegroupsubset']))
    28 
    34 
    29 class localpeer(peer.peerrepository):
    35 class localpeer(peer.peerrepository):