rust/rhg/src/commands/status.rs
changeset 48409 005ae1a343f8
parent 48391 b80e5e75d51e
child 48422 000130cfafb6
--- a/rust/rhg/src/commands/status.rs	Fri Dec 03 14:36:40 2021 +0100
+++ b/rust/rhg/src/commands/status.rs	Tue Nov 16 11:53:58 2021 +0000
@@ -191,6 +191,13 @@
     let no_status = args.is_present("no-status");
 
     let repo = invocation.repo?;
+
+    if repo.has_sparse() || repo.has_narrow() {
+        return Err(CommandError::unsupported(
+            "rhg status is not supported for sparse checkouts or narrow clones yet"
+        ));
+    }
+
     let mut dmap = repo.dirstate_map_mut()?;
 
     let options = StatusOptions {