mercurial/revlogutils/nodemap.py
changeset 46089 8ff2d8359d0f
parent 45942 89a2afe31e82
child 46113 59fa3890d40a
equal deleted inserted replaced
46088:8837498ae6e0 46089:8ff2d8359d0f
    56             if use_mmap:
    56             if use_mmap:
    57                 data = util.buffer(util.mmapread(fd, data_length))
    57                 data = util.buffer(util.mmapread(fd, data_length))
    58             else:
    58             else:
    59                 data = fd.read(data_length)
    59                 data = fd.read(data_length)
    60     except OSError as e:
    60     except OSError as e:
    61         if e.errno != errno.ENOENT:
    61         if e.errno == errno.ENOENT:
       
    62             return None
       
    63         else:
    62             raise
    64             raise
    63     if len(data) < data_length:
    65     if len(data) < data_length:
    64         return None
    66         return None
    65     return docket, data
    67     return docket, data
    66 
    68