Mercurial > hg
comparison mercurial/posix.py @ 33824:158dddc635ff
commit: use context manager with dirstateguard
When I wrote 5ac845ca059a (commit: don't let failed commit with
--addremove update dirstate (issue5645), 2017-07-31), Durham's
609606d21765 (rebase: use one dirstateguard for when using
rebase.singletransaction, 2017-07-20) had not yet landed, so I had to
write it in the old-fashioned way. Now that Durham's patch is in, we
can simplify by using a context manager.
Differential Revision: https://phab.mercurial-scm.org/D406
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 14 Aug 2017 23:26:54 -0700 |
parents | 8cb9e921ef8c |
children | 0fa781320203 |
comparison
equal
deleted
inserted
replaced
33823:5d286eb7009f | 33824:158dddc635ff |
---|