tests/test-lfs-test-server.t
branchstable
changeset 46343 47b11629a0f2
parent 46116 17a695357270
child 46919 9799ba0abb12
equal deleted inserted replaced
46342:c4787ea85cc7 46343:47b11629a0f2
   418   $ rm ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
   418   $ rm ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
   419   $ rm ../repo1/*
   419   $ rm ../repo1/*
   420 
   420 
   421 TODO: give the proper error indication from `hg serve`
   421 TODO: give the proper error indication from `hg serve`
   422 
   422 
   423   $ hg --repo ../repo1 update -C tip --debug
   423 TODO: reconsider the except base class so that the git and hg errors yield the
       
   424 same exit status.
       
   425 
       
   426   $ hg --repo ../repo1 update -C tip --debug --config ui.detailed-exit-code=False
   424   http auth: user foo, password ***
   427   http auth: user foo, password ***
   425   resolving manifests
   428   resolving manifests
   426    branchmerge: False, force: True, partial: False
   429    branchmerge: False, force: True, partial: False
   427    ancestor: dfca2c9e2ef2+, local: dfca2c9e2ef2+, remote: dfca2c9e2ef2
   430    ancestor: dfca2c9e2ef2+, local: dfca2c9e2ef2+, remote: dfca2c9e2ef2
   428   http auth: user foo, password ***
   431   http auth: user foo, password ***
   458   Content-Length: 7 (git-server !)
   461   Content-Length: 7 (git-server !)
   459   Content-Type: text/plain; charset=utf-8 (git-server !)
   462   Content-Type: text/plain; charset=utf-8 (git-server !)
   460   Date: $HTTP_DATE$ (git-server !)
   463   Date: $HTTP_DATE$ (git-server !)
   461   abort: corrupt remote lfs object: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (git-server !)
   464   abort: corrupt remote lfs object: d11e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998 (git-server !)
   462   abort: LFS server error for "c": Validation error (hg-server !)
   465   abort: LFS server error for "c": Validation error (hg-server !)
   463   [50]
   466   [255]
   464 
   467 
   465 The corrupted blob is not added to the usercache or local store
   468 The corrupted blob is not added to the usercache or local store
   466 
   469 
   467   $ test -f ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
   470   $ test -f ../repo1/.hg/store/lfs/objects/d1/1e1a642b60813aee592094109b406089b8dff4cb157157f753418ec7857998
   468   [1]
   471   [1]