( )⚙ D548 context: make parents and text optional in metadataonlyctx

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
Lint Skipped
Unit
Unit Tests Skipped