hgext/eol.py
changeset 31417 4cffaf8c4853
parent 31328 ab45421285d0
child 31775 8181f378b073
equal deleted inserted replaced
31416:1527ffe65f9f 31417:4cffaf8c4853
   221         for node in nodes:
   221         for node in nodes:
   222             try:
   222             try:
   223                 if node is None:
   223                 if node is None:
   224                     # Cannot use workingctx.data() since it would load
   224                     # Cannot use workingctx.data() since it would load
   225                     # and cache the filters before we configure them.
   225                     # and cache the filters before we configure them.
   226                     data = repo.wfile('.hgeol').read()
   226                     data = repo.wvfs('.hgeol').read()
   227                 else:
   227                 else:
   228                     data = repo[node]['.hgeol'].data()
   228                     data = repo[node]['.hgeol'].data()
   229                 return eolfile(ui, repo.root, data)
   229                 return eolfile(ui, repo.root, data)
   230             except (IOError, LookupError):
   230             except (IOError, LookupError):
   231                 pass
   231                 pass