mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
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:
parent
e7ec72f8f1
commit
917cf2c9bb
@ -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",
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user