Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
37761:ff6b0a20849d | 37762:7269b87f817c |
---|---|
614 ../archive/d | 614 ../archive/d |
615 | 615 |
616 Cat will prefetch blobs in a group | 616 Cat will prefetch blobs in a group |
617 | 617 |
618 $ rm -rf .hg/store/lfs `hg config lfs.usercache` | 618 $ rm -rf .hg/store/lfs `hg config lfs.usercache` |
619 $ hg cat --debug -r 1 a b c | 619 $ hg cat --debug -r 1 a b c nonexistent |
620 http auth: user foo, password *** | 620 http auth: user foo, password *** |
621 http auth: user foo, password *** | 621 http auth: user foo, password *** |
622 Status: 200 | 622 Status: 200 |
623 Content-Length: 608 (git-server !) | 623 Content-Length: 608 (git-server !) |
624 Content-Length: 670 (hg-server !) | 624 Content-Length: 670 (hg-server !) |
679 THIS-IS-LFS | 679 THIS-IS-LFS |
680 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store | 680 lfs: found 31cf46fbc4ecd458a0943c5b4881f1f5a6dd36c53d6167d5b69ac45149b38e5b in the local lfs store |
681 THIS-IS-LFS | 681 THIS-IS-LFS |
682 lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store | 682 lfs: found d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 in the local lfs store |
683 ANOTHER-LARGE-FILE | 683 ANOTHER-LARGE-FILE |
684 nonexistent: no such file in rev dfca2c9e2ef2 | |
684 | 685 |
685 Revert will prefetch blobs in a group | 686 Revert will prefetch blobs in a group |
686 | 687 |
687 $ rm -rf .hg/store/lfs | 688 $ rm -rf .hg/store/lfs |
688 $ rm -rf `hg config lfs.usercache` | 689 $ rm -rf `hg config lfs.usercache` |