hgext/convert/hg.py
changeset 15069 650d81a313cb
parent 14556 517e1d88bf7e
child 15193 a84e3ed661cb
--- a/hgext/convert/hg.py	Thu Sep 01 12:29:24 2011 +0200
+++ b/hgext/convert/hg.py	Thu Sep 08 10:20:42 2011 +0200
@@ -70,10 +70,10 @@
             self.wlock.release()
 
     def revmapfile(self):
-        return os.path.join(self.path, ".hg", "shamap")
+        return self.repo.join("shamap")
 
     def authorfile(self):
-        return os.path.join(self.path, ".hg", "authormap")
+        return self.repo.join("authormap")
 
     def getheads(self):
         h = self.repo.changelog.heads()
@@ -364,8 +364,7 @@
 
     def converted(self, rev, destrev):
         if self.convertfp is None:
-            self.convertfp = open(os.path.join(self.path, '.hg', 'shamap'),
-                                  'a')
+            self.convertfp = open(self.repo.join('shamap'), 'a')
         self.convertfp.write('%s %s\n' % (destrev, rev))
         self.convertfp.flush()