##// END OF EJS Templates
rhg: fall back if subrepos are detected...
Raphaël Gomès -
r48891:ba773bd9 default
parent child Browse files
Show More
@@ -98,6 +98,15 b' fn main_with_result('
98 config,
98 config,
99 repo,
99 repo,
100 };
100 };
101
102 if let Ok(repo) = repo {
103 // We don't support subrepos, fallback if the subrepos file is present
104 if repo.working_directory_vfs().join(".hgsub").exists() {
105 let msg = "subrepos (.hgsub is present)";
106 return Err(CommandError::unsupported(msg));
107 }
108 }
109
101 let blackbox = blackbox::Blackbox::new(&invocation, process_start_time)?;
110 let blackbox = blackbox::Blackbox::new(&invocation, process_start_time)?;
102 blackbox.log_command_start();
111 blackbox.log_command_start();
103 let result = run(&invocation);
112 let result = run(&invocation);
@@ -370,3 +370,12 b' The blackbox extension is supported'
370 $ cat .hg/blackbox.log.1
370 $ cat .hg/blackbox.log.1
371 ????/??/?? ??:??:??.??? * @d3873e73d99ef67873dac33fbcc66268d5d2b6f4 (*)> (rust) files (glob)
371 ????/??/?? ??:??:??.??? * @d3873e73d99ef67873dac33fbcc66268d5d2b6f4 (*)> (rust) files (glob)
372
372
373 Subrepos are not supported
374
375 $ touch .hgsub
376 $ $NO_FALLBACK rhg files
377 unsupported feature: subrepos (.hgsub is present)
378 [252]
379 $ rhg files
380 a
381 $ rm .hgsub
General Comments 0
You need to be logged in to leave comments. Login now