##// END OF EJS Templates
localrepo: use functools.wraps() in unfilteredmethod decorator...
Augie Fackler -
r45987:4111954c default
parent child Browse files
Show More
@@ -8,6 +8,7 b''
8 8 from __future__ import absolute_import
9 9
10 10 import errno
11 import functools
11 12 import os
12 13 import random
13 14 import sys
@@ -193,6 +194,7 b' def hasunfilteredcache(repo, name):'
193 194 def unfilteredmethod(orig):
194 195 """decorate method that always need to be run on unfiltered version"""
195 196
197 @functools.wraps(orig)
196 198 def wrapper(repo, *args, **kwargs):
197 199 return orig(repo.unfiltered(), *args, **kwargs)
198 200
General Comments 0
You need to be logged in to leave comments. Login now