mercurial/patch.py
changeset 52640 24ee91ba9aa8
parent 52379 c921c23a9681
child 52643 5cc8deb96b48
equal deleted inserted replaced
52639:9db77d46de79 52640:24ee91ba9aa8
  2021     """
  2021     """
  2022     pos = 0
  2022     pos = 0
  2023     try:
  2023     try:
  2024         pos = lr.fp.tell()
  2024         pos = lr.fp.tell()
  2025         fp = lr.fp
  2025         fp = lr.fp
  2026     except IOError:
  2026     except OSError:
  2027         fp = stringio(lr.fp.read())
  2027         fp = stringio(lr.fp.read())
  2028     gitlr = linereader(fp)
  2028     gitlr = linereader(fp)
  2029     gitlr.push(firstline)
  2029     gitlr.push(firstline)
  2030     gitpatches = readgitpatch(gitlr)
  2030     gitpatches = readgitpatch(gitlr)
  2031     fp.seek(pos)
  2031     fp.seek(pos)