Mercurial > hg
comparison mercurial/rewriteutil.py @ 35973:4d66993bdcff
revlog: add a _datareadfp context manager for data access needs
The helper handles:
1) is there a file handle already open that we shall just reuse,
2) is the revlog inlined or not.
Using a context manager for all read access will help setting up file pointer
caching in later changesets.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Mon, 05 Feb 2018 17:57:29 +0100 |
parents | 490df753894d |
children | 8c6329fa6038 |
comparison
equal
deleted
inserted
replaced
35972:82afb1a5ed94 | 35973:4d66993bdcff |
---|