HomePhabricator

tersestatus: avoid modifying tersedict

Authored by dlax.

Description

tersestatus: avoid modifying tersedict

Turn dirnode's methods into generators which can be used to update "tersedict"
in caller. So instead of passing the "tersedict" to be mutated here and there,
it's now clearer where it is updated as it's purely a local variable to
tersedir() function.

While I was here, I renamed _processtersestatus to tersewalk and
_addfilestotersed to iterfilepaths.

Differential Revision: https://phab.mercurial-scm.org/D1043

Details

Committed
dlaxOct 12 2017, 6:32 PM
Differential Revision
D1043: tersestatus: avoid modifying tersedict
Parents
rHG3d6d4b12128e: tersestatus: make methods part of the dirnode class
Branches
Unknown
Tags
Unknown