Mercurial > hg
view tests/test-locale.t @ 48682:cdb0d857afe2
dirstate: use a context manager when writing the dirstate
This make sure the file is closed in a timely manner.
We define a lambda for the file opening. It might seems a bit overkill here but
a future changeset will need to do more of those.
Differential Revision: https://phab.mercurial-scm.org/D12122
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 31 Jan 2022 08:23:54 +0100 |
parents | afcad425a0b6 |
children |
line wrap: on
line source
$ LANG=nonexistent LC_ALL=nonexistent LANGUAGE=nonexistent hg version -q Mercurial Distributed SCM (version *) (glob)