This is an archive of the discontinued Mercurial Phabricator instance.

context: make parents and text optional in metadataonlyctx
ClosedPublic

Authored by quark on Aug 28 2017, 8:42 PM.

Details

Summary

The metadataonlyctx is to copy an existing context with some minor metadata
changes. If the caller only wants to change "extra", or "user", ideally it
does not have to read and pass "parents" and "text" information.

This patch makes "parents" and "text" optionally to convenient callers.

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.