diff --git a/tests/test-narrow-exchange.t b/tests/test-narrow-exchange.t index d2c997b8001ff5fff0ae3d042362f321a707dd55_dGVzdHMvdGVzdC1uYXJyb3ctZXhjaGFuZ2UudA==..7c5a922be068f7337a53c7508c9d24a7a7bda0ec_dGVzdHMvdGVzdC1uYXJyb3ctZXhjaGFuZ2UudA== 100644 --- a/tests/test-narrow-exchange.t +++ b/tests/test-narrow-exchange.t @@ -1,3 +1,11 @@ +#testcases lfs-on lfs-off + +#if lfs-on + $ cat >> $HGRCPATH <<EOF + > [extensions] + > lfs = + > EOF +#endif $ . "$TESTDIR/narrow-library.sh" @@ -201,10 +209,12 @@ (run 'hg update' to get a working copy) TODO: this should tell the user that their narrow clone does not have the necessary content to be able to push to the target - $ hg push ssh://user@dummy/narrow2 + +TODO: lfs shouldn't abort like this + $ hg push ssh://user@dummy/narrow2 || true pushing to ssh://user@dummy/narrow2 searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 0 changes to 0 files @@ -205,6 +215,11 @@ pushing to ssh://user@dummy/narrow2 searching for changes remote: adding changesets remote: adding manifests remote: adding file changes remote: added 1 changesets with 0 changes to 0 files + remote: error: pretxnchangegroup.lfs hook raised an exception: data/inside2/f.i@f59b4e021835: no match found (lfs-on !) + remote: transaction abort! (lfs-on !) + remote: rollback completed (lfs-on !) + remote: abort: data/inside2/f.i@f59b4e021835: no match found! (lfs-on !) + abort: stream ended unexpectedly (got 0 bytes, expected 4) (lfs-on !)