hgext/convert/gnuarch.py
changeset 11134 33010ff1fd6f
parent 10938 02d6149a480b
child 11986 d2796a3cb816
--- a/hgext/convert/gnuarch.py	Sun May 09 21:49:57 2010 +0200
+++ b/hgext/convert/gnuarch.py	Sun May 09 21:52:34 2010 +0200
@@ -54,7 +54,6 @@
         self.changes = {}
         self.parents = {}
         self.tags = {}
-        self.modecache = {}
         self.catlogparser = Parser()
         self.locale = locale.getpreferredencoding()
         self.archives = []
@@ -142,16 +141,9 @@
         if not os.path.exists(os.path.join(self.tmppath, name)):
             raise IOError
 
-        data, mode = self._getfile(name, rev)
-        self.modecache[(name, rev)] = mode
-
-        return data
-
-    def getmode(self, name, rev):
-        return self.modecache[(name, rev)]
+        return self._getfile(name, rev)
 
     def getchanges(self, rev):
-        self.modecache = {}
         self._update(rev)
         changes = []
         copies = {}