This is an archive of the discontinued Mercurial Phabricator instance.

changelog: abort on attempt to write wdir revision
ClosedPublic

Authored by martinvonz on Aug 26 2017, 1:29 AM.

Details

Summary

Similar to the previous patch which prevented writing the null
revision to any revlog, but this is for the wdir revision.

Thanks to Jun for pointing this out.

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.

Event Timeline

martinvonz created this revision.Aug 26 2017, 1:29 AM
quark accepted this revision.Aug 26 2017, 11:58 AM
yuja added a subscriber: yuja.Aug 28 2017, 9:40 AM

Perhaps this could be handled by revlog.py. I've already added several
wdir hacks to it.

durin42 accepted this revision.Aug 28 2017, 2:44 PM
durin42 added a subscriber: durin42.

I like yuya's suggestion, but this seems like it stands to prevent bugs now, so I'll land it and we can continue with a followup in the revlog layer.

This revision is now accepted and ready to land.Aug 28 2017, 2:44 PM
This revision was automatically updated to reflect the committed changes.