Mercurial > hg
comparison mercurial/posix.py @ 17472:965fbe04fd96
amend: wrap all commit operations in a single transaction
This allows proper recovery of an interrupted amend process.
No changes are made to the logic besides:
- indent operations into a single try-except clause,
- some comment and code wrapping to 80 chars,
- strip logic should not be contained in the transaction and is extracted from
the main code.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 10 Sep 2012 23:44:24 +0200 |
parents | fc24c10424d2 |
children | 9ee25d7b1aed |
comparison
equal
deleted
inserted
replaced
17471:ad1561723dde | 17472:965fbe04fd96 |
---|