hgext/convert/gnuarch.py
changeset 39909 5fe0b880200e
parent 39838 28626957395a
child 43072 058c2468b2f5
equal deleted inserted replaced
39908:803b7569c9ea 39909:5fe0b880200e
   221             self._parsechangeset(changeset, rev)
   221             self._parsechangeset(changeset, rev)
   222 
   222 
   223     def _getfile(self, name, rev):
   223     def _getfile(self, name, rev):
   224         mode = os.lstat(os.path.join(self.tmppath, name)).st_mode
   224         mode = os.lstat(os.path.join(self.tmppath, name)).st_mode
   225         if stat.S_ISLNK(mode):
   225         if stat.S_ISLNK(mode):
   226             data = os.readlink(os.path.join(self.tmppath, name))
   226             data = util.readlink(os.path.join(self.tmppath, name))
   227             if mode:
   227             if mode:
   228                 mode = 'l'
   228                 mode = 'l'
   229             else:
   229             else:
   230                 mode = ''
   230                 mode = ''
   231         else:
   231         else: