changeset 1449:6463dae16c33

meta: check for revmap existence locally This was the last non-documentaiton reference to the meta layer in the map layer, so it now feels very clear to me that the check should just live at the svnmeta level.
author Augie Fackler <raf@durin42.com>
date Mon, 06 Jun 2016 00:54:49 -0400
parents cbad7285cbeb
children 3c4fbf59e503
files hgsubversion/maps.py hgsubversion/svnmeta.py
diffstat 2 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgsubversion/maps.py
+++ b/hgsubversion/maps.py
@@ -433,10 +433,6 @@ class RevMap(dict):
             raise hgutil.Abort('revmap too new -- please upgrade')
         return f
 
-    @classmethod
-    def exists(cls, meta):
-        return os.path.exists(meta.revmap_file)
-
     @util.gcdisable
     def _load(self):
         lastpulled = self.lastpulled
--- a/hgsubversion/svnmeta.py
+++ b/hgsubversion/svnmeta.py
@@ -351,7 +351,7 @@ class SVNMeta(object):
 
     @property
     def revmapexists(self):
-        return maps.RevMap.exists(self)
+        return os.path.exists(self.revmap_file)
 
     def fixdate(self, date):
         if date is not None: