narrow: reuse narrowspec.updateworkingcopy() when narrowing
ClosedPublic

Authored by martinvonz on Mon, Jan 7, 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.