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
This commit is contained in:
Jun Wu 2021-04-13 16:35:05 -07:00 committed by Facebook GitHub Bot
parent e7ec72f8f1
commit 917cf2c9bb

View File

@ -48,7 +48,7 @@ pub fn run(opts: StatusOpts, _io: &IO, config: ConfigSet) -> Result<u8> {
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<u8> {
fs::write(
destination.join(".hg/store/requires"),
b"lazytextchangelog\n\
b"lazychangelog\n\
narrowheads\n\
visibleheads\n",
)