( )⚙ D5511 narrow: reuse narrowspec.updateworkingcopy() when narrowing

This is an archive of the discontinued Mercurial Phabricator instance.

narrow: reuse narrowspec.updateworkingcopy() when narrowing
ClosedPublic

Authored by martinvonz on Jan 7 2019, 3:45 AM.

Details

Summary

Similar to the previous patch for widening, but here we also need to
teach updateworkingcopy() to forcefully delete files that are not
recorded in the dirstate as clean. That should be safe because the
narrowing command (e.g. hg tracked --removeinclude) has already
checked that the working copy is clean.

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.