##// END OF EJS Templates
dirstate: use open/read of vfs(opener) explicitly instead of read...
FUJIWARA Katsunori -
r25227:fd0f9191 default
parent child Browse files
Show More
@@ -326,7 +326,11 class dirstate(object):
326 self._map = {}
326 self._map = {}
327 self._copymap = {}
327 self._copymap = {}
328 try:
328 try:
329 st = self._opener.read(self._filename)
329 fp = self._opener.open(self._filename)
330 try:
331 st = fp.read()
332 finally:
333 fp.close()
330 except IOError, err:
334 except IOError, err:
331 if err.errno != errno.ENOENT:
335 if err.errno != errno.ENOENT:
332 raise
336 raise
General Comments 0
You need to be logged in to leave comments. Login now