HomePhabricator

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

Authored by martinvonz.

Description

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

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.

Differential Revision: https://phab.mercurial-scm.org/D6565

Details

Committed
martinvonzJun 21 2019, 12:33 PM
Differential Revision
D6565: drawdag: don't crash when writing copy info to changesets
Parents
rHG84aff7e20c55: merge with stable
Branches
Unknown
Tags
Unknown