This is an archive of the discontinued Mercurial Phabricator instance.

undo: file corruption handling
ClosedPublic

Authored by felixmerk on Jul 17 2017, 4:01 PM.
Tags
None
Subscribers

Details

Reviewers
quark
Group Reviewers
Restricted Project
Commits
rFBHGX6cd419e19c1f: undo: file corruption handling
Summary

Basic file corruption handling: if file is corrupted, we nuke our history.
Downside is that we won't be able to undo furter back in case of a corruption,
but considering corruption this is expected.

Diff Detail

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

Event Timeline

felixmerk created this revision.Jul 17 2017, 4:01 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptJul 17 2017, 4:01 PM
felixmerk updated this revision to Diff 319.Jul 19 2017, 5:31 PM
quark accepted this revision.Jul 19 2017, 6:33 PM
quark added a subscriber: quark.
quark added inline comments.
tests/test-undo.t
411

Maybe add --debug checking the debug message to make sure the code path runs.

This revision is now accepted and ready to land.Jul 19 2017, 6:33 PM
felixmerk updated this revision to Diff 327.Jul 19 2017, 8:45 PM
This revision was automatically updated to reflect the committed changes.