Page MenuHomePhabricator

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

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



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

rHG Mercurial
Automatic diff as part of commit; lint not applicable.
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.