# HG changeset patch # User Augie Fackler # Date 1465173929 14400 # Node ID 066c08918060d0af78bbb41b96879f6535044a4a # Parent 48beb467b2e51d60c65b5e792195c4bcd827679a BaseMap: record filename on self._filename This will make it a little easier to insist all paths be passed in explicitly. diff --git a/hgsubversion/maps.py b/hgsubversion/maps.py --- a/hgsubversion/maps.py +++ b/hgsubversion/maps.py @@ -26,7 +26,8 @@ class BaseMap(dict): # 'authormap' for the config option self.mapname = self.__class__.__name__.lower() self.mapfilename = self.mapname + '_file' - self.load(self.meta.__getattribute__(self.mapfilename)) + self._filepath = self.meta.__getattribute__(self.mapfilename) + self.load(self._filepath) # append mappings specified from the commandline clmap = util.configpath(self._ui, self.mapname) @@ -107,7 +108,7 @@ class BaseMap(dict): return writing = False - mapfile = self.meta.__getattribute__(self.mapfilename) + mapfile = self._filepath if path != mapfile: writing = open(mapfile, 'a')