Mercurial > hgsubversion
changeset 1446:2eba84031a78
RevMap: no longer take a meta
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Mon, 06 Jun 2016 00:51:41 -0400 |
parents | 5dbc6356a0d3 |
children | a6fa4f3aa826 |
files | hgsubversion/maps.py hgsubversion/svnmeta.py |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgsubversion/maps.py +++ b/hgsubversion/maps.py @@ -349,10 +349,10 @@ class RevMap(dict): VERSION = 1 - def __init__(self, meta): + def __init__(self, revmap_path, lastpulled_path): dict.__init__(self) - self._filepath = meta.revmap_file - self._lastpulled_file = os.path.join(meta.metapath, 'lastpulled') + self._filepath = revmap_path + self._lastpulled_file = lastpulled_path self._hashes = None self.firstpulled = 0
--- a/hgsubversion/svnmeta.py +++ b/hgsubversion/svnmeta.py @@ -345,7 +345,8 @@ class SVNMeta(object): @property def revmap(self): if self._revmap is None: - self._revmap = maps.RevMap(self) + self._revmap = maps.RevMap( + self.revmap_file, os.path.join(self.metapath, 'lastpulled')) return self._revmap @property