From 917cf2c9bb1d4593ec2639f76b193686ba2487d1 Mon Sep 17 00:00:00 2001 From: Jun Wu Date: Tue, 13 Apr 2021 16:35:05 -0700 Subject: [PATCH] hgcommands: use lazy commit hash backend Summary: The lazy backend can now (partially) support the non-full IdMap segment clone. Reviewed By: sfilipco Differential Revision: D27581488 fbshipit-source-id: 51eded6acdbe82d22f5bb73eb4a715e2c22f4d75 --- eden/scm/lib/hgcommands/src/commands/debug/segmentclone.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eden/scm/lib/hgcommands/src/commands/debug/segmentclone.rs b/eden/scm/lib/hgcommands/src/commands/debug/segmentclone.rs index 3f39a325e7..5c31b75565 100644 --- a/eden/scm/lib/hgcommands/src/commands/debug/segmentclone.rs +++ b/eden/scm/lib/hgcommands/src/commands/debug/segmentclone.rs @@ -48,7 +48,7 @@ pub fn run(opts: StatusOpts, _io: &IO, config: ConfigSet) -> Result { let edenapi_client = edenapi::Builder::from_config(&config)?.build()?; let clone_data = edenapi_client - .full_idmap_clone_data_blocking(reponame.clone(), None) + .clone_data_blocking(reponame.clone(), None) .context("error cloning segmented changelog")?; let namedag_path = IndexedLogNameDagPath(destination.join(".hg/store/segments/v1")); @@ -97,7 +97,7 @@ pub fn run(opts: StatusOpts, _io: &IO, config: ConfigSet) -> Result { fs::write( destination.join(".hg/store/requires"), - b"lazytextchangelog\n\ + b"lazychangelog\n\ narrowheads\n\ visibleheads\n", )