changeset 46743:dfd35823635b

rhg: Fall back to Python for bundle repositories rhg does not support bundles at all, yet. Differential Revision: https://phab.mercurial-scm.org/D10102
author Simon Sapin <simon.sapin@octobus.net>
date Wed, 03 Mar 2021 19:08:27 +0100
parents 6cd9f53aaed8
children 3d692e724d06
files rust/hg-core/src/repo.rs
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rust/hg-core/src/repo.rs	Wed Mar 03 19:02:06 2021 +0100
+++ b/rust/hg-core/src/repo.rs	Wed Mar 03 19:08:27 2021 +0100
@@ -61,6 +61,8 @@
             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(),