scmutil: teach the file prefetch hook to handle multiple commits
The remainder of the commands that need prefetch deal with multiple revisions. I initially coded this as a separate hook, but then it needed a list of files to handle `diff` and `grep`, so it didn't seem worth keeping them separate. Not every matcher will emit bad file messages (some are built from a list of files that are known to exist). But it seems better to filter this in one place than to push this on either each caller or each hook implementation.
Showing
- hgext/lfs/wrapper.py 10 additions, 6 deletionshgext/lfs/wrapper.py
- mercurial/archival.py 2 additions, 1 deletionmercurial/archival.py
- mercurial/cmdutil.py 9 additions, 7 deletionsmercurial/cmdutil.py
- mercurial/merge.py 6 additions, 3 deletionsmercurial/merge.py
- mercurial/scmutil.py 14 additions, 3 deletionsmercurial/scmutil.py
- mercurial/subrepo.py 2 additions, 1 deletionmercurial/subrepo.py
- tests/test-lfs-test-server.t 2 additions, 1 deletiontests/test-lfs-test-server.t
Loading
Please register or sign in to comment