tests/test-narrow-exchange.t
changeset 40623 7c5a922be068
parent 39489 f1186c292d03
child 42897 d7304434390f
equal deleted inserted replaced
40622:d2c997b8001f 40623:7c5a922be068
       
     1 #testcases lfs-on lfs-off
       
     2 
       
     3 #if lfs-on
       
     4   $ cat >> $HGRCPATH <<EOF
       
     5   > [extensions]
       
     6   > lfs =
       
     7   > EOF
       
     8 #endif
     1 
     9 
     2   $ . "$TESTDIR/narrow-library.sh"
    10   $ . "$TESTDIR/narrow-library.sh"
     3 
    11 
     4 create full repo
    12 create full repo
     5 
    13 
   199   added 1 changesets with 0 changes to 0 files
   207   added 1 changesets with 0 changes to 0 files
   200   new changesets * (glob)
   208   new changesets * (glob)
   201   (run 'hg update' to get a working copy)
   209   (run 'hg update' to get a working copy)
   202 TODO: this should tell the user that their narrow clone does not have the
   210 TODO: this should tell the user that their narrow clone does not have the
   203 necessary content to be able to push to the target
   211 necessary content to be able to push to the target
   204   $ hg push ssh://user@dummy/narrow2
   212 
       
   213 TODO: lfs shouldn't abort like this
       
   214   $ hg push ssh://user@dummy/narrow2 || true
   205   pushing to ssh://user@dummy/narrow2
   215   pushing to ssh://user@dummy/narrow2
   206   searching for changes
   216   searching for changes
   207   remote: adding changesets
   217   remote: adding changesets
   208   remote: adding manifests
   218   remote: adding manifests
   209   remote: adding file changes
   219   remote: adding file changes
   210   remote: added 1 changesets with 0 changes to 0 files
   220   remote: added 1 changesets with 0 changes to 0 files
       
   221   remote: error: pretxnchangegroup.lfs hook raised an exception: data/inside2/f.i@f59b4e021835: no match found (lfs-on !)
       
   222   remote: transaction abort! (lfs-on !)
       
   223   remote: rollback completed (lfs-on !)
       
   224   remote: abort: data/inside2/f.i@f59b4e021835: no match found! (lfs-on !)
       
   225   abort: stream ended unexpectedly (got 0 bytes, expected 4) (lfs-on !)