##// END OF EJS Templates
rhg: propogate error coming from HgError::Abort to CommandError...
Pulkit Goyal -
r48200:7954ee2d default
parent child Browse files
Show More
@@ -69,6 +69,12 b' impl From<HgError> for CommandError {'
69 HgError::UnsupportedFeature(message) => {
69 HgError::UnsupportedFeature(message) => {
70 CommandError::unsupported(message)
70 CommandError::unsupported(message)
71 }
71 }
72 HgError::Abort {
73 message,
74 detailed_exit_code,
75 } => {
76 CommandError::abort_with_exit_code(message, detailed_exit_code)
77 }
72 _ => CommandError::abort(error.to_string()),
78 _ => CommandError::abort(error.to_string()),
73 }
79 }
74 }
80 }
@@ -220,7 +220,6 b' Testing --config:'
220 $ hg --cwd c --config paths.quuxfoo=bar paths | grep quuxfoo > /dev/null && echo quuxfoo
220 $ hg --cwd c --config paths.quuxfoo=bar paths | grep quuxfoo > /dev/null && echo quuxfoo
221 quuxfoo
221 quuxfoo
222 TODO: add rhg support for detailed exit codes
222 TODO: add rhg support for detailed exit codes
223 #if no-rhg
224 $ hg --cwd c --config '' tip -q
223 $ hg --cwd c --config '' tip -q
225 abort: malformed --config option: '' (use --config section.name=value)
224 abort: malformed --config option: '' (use --config section.name=value)
226 [10]
225 [10]
@@ -236,7 +235,6 b' TODO: add rhg support for detailed exit '
236 $ hg --cwd c --config .b= tip -q
235 $ hg --cwd c --config .b= tip -q
237 abort: malformed --config option: '.b=' (use --config section.name=value)
236 abort: malformed --config option: '.b=' (use --config section.name=value)
238 [10]
237 [10]
239 #endif
240
238
241 Testing --debug:
239 Testing --debug:
242
240
General Comments 0
You need to be logged in to leave comments. Login now