This is an archive of the discontinued Mercurial Phabricator instance.

shelve: drop unnecessary backup of dirstate for phase-based case
ClosedPublic

Authored by martinvonz on Dec 5 2018, 6:44 PM.

Details

Summary

Regular shelve has a hack using an uncommitted transaction that's then
aborted at the end of the operation. It preserves the dirstate across
the abort, however, by saving a backup copy of it. Phase-based shelve
instead commits the transaction, so the hack shouldn't be necessary
there.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.