From ebbb7652b8a4746efd70b74cc5575fad5e5809f9 Mon Sep 17 00:00:00 2001 From: Jun Wu Date: Tue, 29 Oct 2024 15:53:48 -0700 Subject: [PATCH] tests: show EagerRepo server -> shallow client clone works Summary: Milestone since D64833694. Demostrate that both the server and client can talk in the git format. Reviewed By: zzl0 Differential Revision: D64948070 fbshipit-source-id: 89018ed95f8c3c1a389636ae93595c1cbc2389f0 --- eden/scm/tests/test-eager-git-exchange.t | 38 ++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 eden/scm/tests/test-eager-git-exchange.t diff --git a/eden/scm/tests/test-eager-git-exchange.t b/eden/scm/tests/test-eager-git-exchange.t new file mode 100644 index 0000000000000..8867624000778 --- /dev/null +++ b/eden/scm/tests/test-eager-git-exchange.t @@ -0,0 +1,38 @@ +#require no-eden + +Test eager repo (client) to eager repo (server) in Git format. + + $ configure modern + +Prepare the server repo: + + $ sl init server-git --config=format.use-eager-repo=True + $ cd server-git + $ drawdag << 'EOS' + > A..E # bookmark master = E + > # bookmark stable = C + > EOS + +Clone to a shallow client repo: + + $ cd + $ sl clone --shallow "test:server-git" client-git + Cloning server-git into $TESTTMP/client-git + Checking out 'master' + 5 files updated + + $ cd client-git + + $ cat E + E (no-eol) + + $ sl log -Gr: -T '{desc} {remotenames}' + @ E remote/master + │ + o D + │ + o C + │ + o B + │ + o A