Page MenuHomePhabricator

drawdag: don't crash when writing copy info to changesets

Authored by martinvonz on Jun 21 2019, 1:01 PM.



When writing copies to the changeset, localrepo.commitctx() will call
ctx.p1copies() and ctx.p2copies(). These crashed on simplecommitctx
because they ended up trying to access the manifest. drawdag doesn't
support copies at all, so we can simply override the methods to return
empty dicts.

Diff Detail

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

Event Timeline

martinvonz created this revision.Jun 21 2019, 1:01 PM
pulkit accepted this revision.Jun 22 2019, 9:22 AM
This revision is now accepted and ready to land.Jun 22 2019, 9:22 AM