Mercurial > public > mercurial-scm > hg
comparison rust/hg-core/src/repo.rs @ 46730: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 | 562a676e255a |
children | 12d59eec7f1d |
comparison
equal
deleted
inserted
replaced
46729:6cd9f53aaed8 | 46730:dfd35823635b |
---|---|
59 // Having an absolute path isn’t necessary here but can help code | 59 // Having an absolute path isn’t necessary here but can help code |
60 // elsewhere | 60 // elsewhere |
61 let absolute_root = current_dir()?.join(root); | 61 let absolute_root = current_dir()?.join(root); |
62 if absolute_root.join(".hg").is_dir() { | 62 if absolute_root.join(".hg").is_dir() { |
63 Self::new_at_path(absolute_root, config) | 63 Self::new_at_path(absolute_root, config) |
64 } else if absolute_root.is_file() { | |
65 Err(HgError::unsupported("bundle repository").into()) | |
64 } else { | 66 } else { |
65 Err(RepoError::NotFound { | 67 Err(RepoError::NotFound { |
66 at: root.to_owned(), | 68 at: root.to_owned(), |
67 }) | 69 }) |
68 } | 70 } |