Mercurial > hg
diff rust/rhg/src/commands/debugdata.rs @ 49480:0199712c7a6d
rhg: fallback in `debugdata` if repo has `narrow`
Narrow uses ellipsis nodes and debugdata does not understand them yet.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Mon, 11 Jul 2022 17:44:03 +0200 |
parents | 5ce2aa7c2ad5 |
children | 37bc3edef76f |
line wrap: on
line diff
--- a/rust/rhg/src/commands/debugdata.rs Wed Jul 06 11:46:00 2022 +0200 +++ b/rust/rhg/src/commands/debugdata.rs Mon Jul 11 17:44:03 2022 +0200 @@ -55,6 +55,11 @@ }; let repo = invocation.repo?; + if repo.has_narrow() { + return Err(CommandError::unsupported( + "support for ellipsis nodes is missing and repo has narrow enabled", + )); + } let data = debug_data(repo, rev, kind).map_err(|e| (e, rev))?; let mut stdout = invocation.ui.stdout_buffer();