Mercurial > public > mercurial-scm > hg-stable
diff tests/test-lfs-test-server.t @ 37762:7269b87f817c
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.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 14 Apr 2018 18:50:45 -0400 |
parents | 31a4ea773369 |
children | ab04972a33ef |
line wrap: on
line diff
--- a/tests/test-lfs-test-server.t Mon Apr 16 23:39:30 2018 -0400 +++ b/tests/test-lfs-test-server.t Sat Apr 14 18:50:45 2018 -0400 @@ -616,7 +616,7 @@ Cat will prefetch blobs in a group $ rm -rf .hg/store/lfs `hg config lfs.usercache` - $ hg cat --debug -r 1 a b c + $ hg cat --debug -r 1 a b c nonexistent http auth: user foo, password *** http auth: user foo, password *** Status: 200 @@ -681,6 +681,7 @@ THIS-IS-LFS lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store ANOTHER-LARGE-FILE + nonexistent: no such file in rev dfca2c9e2ef2 Revert will prefetch blobs in a group