Show More
@@ -1907,7 +1907,7 b' class localrepository(object):' | |||||
1907 | # Wrap old filters not supporting keyword arguments |
|
1907 | # Wrap old filters not supporting keyword arguments | |
1908 | if not pycompat.getargspec(fn)[2]: |
|
1908 | if not pycompat.getargspec(fn)[2]: | |
1909 | oldfn = fn |
|
1909 | oldfn = fn | |
1910 | fn = lambda s, c, **kwargs: oldfn(s, c) |
|
1910 | fn = lambda s, c, oldfn=oldfn, **kwargs: oldfn(s, c) | |
1911 | fn.__name__ = 'compat-' + oldfn.__name__ |
|
1911 | fn.__name__ = 'compat-' + oldfn.__name__ | |
1912 | l.append((mf, fn, params)) |
|
1912 | l.append((mf, fn, params)) | |
1913 | self._filterpats[filter] = l |
|
1913 | self._filterpats[filter] = l |
General Comments 0
You need to be logged in to leave comments.
Login now