comparison tests/test-lfs-test-server.t @ 35504:6bb940de4c4c

lfs: add the 'lfs' requirement in the changegroup transaction introducing lfs A hook like this is how largefiles manages to do the same. Largefiles uses a changegroup hook, but this uses pretxnchangegroup because that actually causes the transaction to rollback in the unlikely event that writing the requirements out fails. Sadly, the requires file itself isn't rolled back if a subsequent hook fails, but that seems trivial. Now that commit, changegroup and convert are covered, I don't think there's any way to get an lfs repo without the requirement. The grep exit code is blotted out of some test-lfs-serve.t tests now showing the requirement, because run-tests.py doesn't support conditionalizing the exit code.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 23 Dec 2017 23:51:40 -0500
parents 417e8e040102
children e8f80529abeb
comparison
equal deleted inserted replaced
35503:bbcd2e478391 35504:6bb940de4c4c
51 * a (glob) 51 * a (glob)
52 adding changesets 52 adding changesets
53 adding manifests 53 adding manifests
54 adding file changes 54 adding file changes
55 added 1 changesets with 1 changes to 1 files 55 added 1 changesets with 1 changes to 1 files
56 calling hook pretxnchangegroup.lfs: hgext.lfs.checkrequireslfs
56 57
57 Clear the cache to force a download 58 Clear the cache to force a download
58 $ rm -rf `hg config lfs.usercache` 59 $ rm -rf `hg config lfs.usercache`
59 $ cd ../repo2 60 $ cd ../repo2
60 $ hg update tip -v 61 $ hg update tip -v