Mercurial > public > mercurial-scm > hg-stable
comparison rust/rhg/src/commands/status.rs @ 48550:47f2a82ae3e4
rhg: Fall back to Python if verbose status is requested by config
Differential Revision: https://phab.mercurial-scm.org/D11943
author | Simon Sapin <simon.sapin@octobus.net> |
---|---|
date | Sat, 18 Dec 2021 11:47:03 +0100 |
parents | c9abfb80b4e3 |
children | 20d0d896183e |
comparison
equal
deleted
inserted
replaced
48549:262a38f10427 | 48550:47f2a82ae3e4 |
---|---|
180 } | 180 } |
181 | 181 |
182 let ui = invocation.ui; | 182 let ui = invocation.ui; |
183 let config = invocation.config; | 183 let config = invocation.config; |
184 let args = invocation.subcommand_args; | 184 let args = invocation.subcommand_args; |
185 | |
186 let verbose = !ui.plain() | |
187 && !args.is_present("print0") | |
188 && (config.get_bool(b"ui", b"verbose")? | |
189 || config.get_bool(b"commands", b"status.verbose")?); | |
190 if verbose { | |
191 return Err(CommandError::unsupported( | |
192 "verbose status is not supported yet", | |
193 )); | |
194 } | |
195 | |
185 let all = args.is_present("all"); | 196 let all = args.is_present("all"); |
186 let display_states = if all { | 197 let display_states = if all { |
187 // TODO when implementing `--quiet`: it excludes clean files | 198 // TODO when implementing `--quiet`: it excludes clean files |
188 // from `--all` | 199 // from `--all` |
189 ALL_DISPLAY_STATES | 200 ALL_DISPLAY_STATES |