This looks fine. The basic change is to the behaviour of
unrecordedChanges, which now returns a conservative over-approximation
of the changes relating to the supplied set of files. Specifically,
extra changes are included from the pending patch.
If the supplied set of files is [] (meaning that all files are
wanted), then there is no over-approximation so call-sites that always
use [] are unaffected.
Call sites that will feed the result into interactive selection are
also unaffected as that does its own filtering.
The only other call sites are in WhatsNew, which is changed by this
patch to refilter the result, and in Changes, which only uses the
unrecordedChanges to translate the list of files supplied into the names
they had before the unrecorded changes.
|