tests/test-lfs-serve.t
changeset 40324 6637b079ae45
parent 40313 ef0baff11aea
child 40897 0e21db2458f4
equal deleted inserted replaced
40323:2c0aa02ecd5a 40324:6637b079ae45
   302   $ hg push -q --force
   302   $ hg push -q --force
   303   warning: repository is unrelated
   303   warning: repository is unrelated
   304   $ grep 'lfs' .hg/requires $SERVER_REQUIRES
   304   $ grep 'lfs' .hg/requires $SERVER_REQUIRES
   305   $TESTTMP/server/.hg/requires:lfs
   305   $TESTTMP/server/.hg/requires:lfs
   306 
   306 
   307 TODO: fail more gracefully.
   307   $ hg clone http://localhost:$HGPORT $TESTTMP/client4_clone
   308 
   308   (remote is using large file support (lfs), but it is explicitly disabled in the local configuration)
   309   $ hg clone -q http://localhost:$HGPORT $TESTTMP/client4_clone
   309   abort: repository requires features unknown to this Mercurial: lfs!
   310   abort: HTTP Error 500: Internal Server Error
   310   (see https://mercurial-scm.org/wiki/MissingRequirement for more information)
   311   [255]
   311   [255]
   312   $ grep 'lfs' $TESTTMP/client4_clone/.hg/requires $SERVER_REQUIRES
   312   $ grep 'lfs' $TESTTMP/client4_clone/.hg/requires $SERVER_REQUIRES
   313   grep: $TESTTMP/client4_clone/.hg/requires: $ENOENT$
   313   grep: $TESTTMP/client4_clone/.hg/requires: $ENOENT$
   314   $TESTTMP/server/.hg/requires:lfs
   314   $TESTTMP/server/.hg/requires:lfs
   315   [2]
   315   [2]
   659 
   659 
   660 #if lfsremote-on
   660 #if lfsremote-on
   661   $ cat $TESTTMP/errors.log | grep '^[A-Z]'
   661   $ cat $TESTTMP/errors.log | grep '^[A-Z]'
   662   Traceback (most recent call last):
   662   Traceback (most recent call last):
   663   ValueError: no common changegroup version
   663   ValueError: no common changegroup version
   664   Traceback (most recent call last):
       
   665   ValueError: no common changegroup version
       
   666 #else
   664 #else
   667   $ cat $TESTTMP/errors.log
   665   $ cat $TESTTMP/errors.log
   668 #endif
   666 #endif