changeset 1438:59d4b24a0f47

BaseMap: no longer store a reference to the meta object There's no longer anything that uses it outside __init__.
author Augie Fackler <raf@durin42.com>
date Sun, 05 Jun 2016 22:29:34 -0400
parents 43df01d36f22
children ab15749252b0
files hgsubversion/maps.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/maps.py
+++ b/hgsubversion/maps.py
@@ -14,7 +14,6 @@ class BaseMap(dict):
     '''A base class for the different type of mappings: author, branch, and
     tags.'''
     def __init__(self, meta):
-        self.meta = meta
         super(BaseMap, self).__init__()
         self._ui = meta.ui
 
@@ -26,7 +25,7 @@ class BaseMap(dict):
         # 'authormap' for the config option
         self.mapname = self.__class__.__name__.lower()
         self.mapfilename = self.mapname + '_file'
-        self._filepath = self.meta.__getattribute__(self.mapfilename)
+        self._filepath = meta.__getattribute__(self.mapfilename)
         self.load(self._filepath)
 
         # append mappings specified from the commandline