diff -r 0b5e9a625042 -r 36fbd72c2f39 mercurial/scmutil.py --- a/mercurial/scmutil.py Fri Jun 17 16:59:08 2016 +0100 +++ b/mercurial/scmutil.py Fri Jun 17 20:06:09 2016 +0100 @@ -1205,6 +1205,9 @@ return self def __get__(self, obj, type=None): + # if accessed on the class, return the descriptor itself. + if obj is None: + return self # do we need to check if the file changed? if self.name in obj.__dict__: assert self.name in obj._filecache, self.name