comparison rust/rhg/src/main.rs @ 48091:ba773bd99203

rhg: fall back if subrepos are detected We do not handle subrepos yet, the addition of the support for `-r .` will break if we don't fall back. Differential Revision: https://phab.mercurial-scm.org/D11403
author Raphaël Gomès <rgomes@octobus.net>
date Mon, 13 Sep 2021 15:12:35 +0200
parents b44e1184b7e1
children 9ecf802b06e0
comparison
equal deleted inserted replaced
48090:b44e1184b7e1 48091:ba773bd99203
96 ui, 96 ui,
97 subcommand_args, 97 subcommand_args,
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);
104 blackbox.log_command_end(exit_code( 113 blackbox.log_command_end(exit_code(
105 &result, 114 &result,