Page MenuHomePhabricator

mergestate: make filename argument optional in _mergestate_base.extras()
ClosedPublic

Authored by pulkit on Oct 10 2020, 4:40 AM.

Details

Summary

Earlier extras() can only be used for getting extra for a file. However at
couple of places in code, we wanted to iterate over all the extras stored with
the mergestate and they were accessing the private _stateextras.

Now, if filename is not passed, we return all the extras.

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

pulkit created this revision.Oct 10 2020, 4:40 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.