comparison tests/test-extension.t @ 29373:36fbd72c2f39

scmutil: allow access to filecache descriptor on class To make it easier to patch the wrapped function, make it possible to access the filecache descriptor directly on the class (rather than have to use ClassObject.__dict__['attributename']). Returning `self` when the first argument to `__get__` is `None` makes the descriptor behave the same way `property` objects do.
author Martijn Pieters <mjpieters@fb.com>
date Fri, 17 Jun 2016 20:06:09 +0100
parents a3e5e1fb257c
children fcaf20175b1b
comparison
equal deleted inserted replaced
29372:0b5e9a625042 29373:36fbd72c2f39