##// END OF EJS Templates
statichttprepo: use a context manager to handle a file descriptor...
statichttprepo: use a context manager to handle a file descriptor I'm not sure if this should be reduced to `vfs.exists()`. That would seem to be equivalent code (since the result of the read is ignored, so we can't tell if the file actually has content, which has been the state of things going back to 98b6c3dde237), but this is at least safer file descriptor handling.
Matt Harbison -
r52791:15985415 default
Show More
Name Size Modified Last Commit Author
/ mercurial / defaultrc
__init__.py Loading ...
mergetools.rc Loading ...