This is an archive of the discontinued Mercurial Phabricator instance.

synthrepo: create filectx instance in 'filectxfn' callback
ClosedPublic

Authored by martinvonz on Dec 12 2017, 5:19 PM.

Details

Summary

I would like to pass the memctx to the memfilectx constructor, but
it's not available where we currently create the memfilectx. It is
available in the 'filectxfn' callback, so let's create the memfilectx
there instead. A later patch will start actually passing the memctx.

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.Dec 12 2017, 5:19 PM
yuja accepted this revision.Dec 13 2017, 7:36 AM
This revision is now accepted and ready to land.Dec 13 2017, 7:36 AM
This revision was automatically updated to reflect the committed changes.