# HG changeset patch # User Simon Sapin # Date 2021-03-03 18:08:27 # Node ID dfd35823635b494d1c7e40d13a2a4b736e31a159 # Parent 6cd9f53aaed8ad1a982185a8c299c45374c3bb58 rhg: Fall back to Python for bundle repositories rhg does not support bundles at all, yet. Differential Revision: https://phab.mercurial-scm.org/D10102 diff --git a/rust/hg-core/src/repo.rs b/rust/hg-core/src/repo.rs --- a/rust/hg-core/src/repo.rs +++ b/rust/hg-core/src/repo.rs @@ -61,6 +61,8 @@ impl Repo { let absolute_root = current_dir()?.join(root); if absolute_root.join(".hg").is_dir() { Self::new_at_path(absolute_root, config) + } else if absolute_root.is_file() { + Err(HgError::unsupported("bundle repository").into()) } else { Err(RepoError::NotFound { at: root.to_owned(),