# HG changeset patch # User Sean Farley # Date 1395678054 18000 # Node ID 78133c7ec2fc247bf64ef295ec733f71bb9c73f9 # Parent cdb1f1923a1ab6ce90170be09c611c47884b2fa9 layouts: add a name property to base diff --git a/hgsubversion/layouts/base.py b/hgsubversion/layouts/base.py --- a/hgsubversion/layouts/base.py +++ b/hgsubversion/layouts/base.py @@ -17,6 +17,12 @@ class BaseLayout(object): "Incomplete layout implementation: %s.%s doesn't implement %s" % (self.__module__, self.__name__, method_name)) + @property + def name(self): + """Return the name of the key for NAME_TO_CLASS so we can easily compute a + stale cache.""" + self.__unimplemented('name') + def localname(self, path): """Compute the local name for a branch located at path.