##// END OF EJS Templates
errors: use detailed exit code for non-integer number of diff context lines...
Martin von Zweigbergk -
r49188:67064c23 default
parent child Browse files
Show More
@@ -84,7 +84,7 b' class diffopts(object):'
84 try:
84 try:
85 self.context = int(self.context)
85 self.context = int(self.context)
86 except ValueError:
86 except ValueError:
87 raise error.Abort(
87 raise error.InputError(
88 _(b'diff context lines count must be an integer, not %r')
88 _(b'diff context lines count must be an integer, not %r')
89 % pycompat.bytestr(self.context)
89 % pycompat.bytestr(self.context)
90 )
90 )
@@ -46,7 +46,7 b' invalid --unified'
46
46
47 $ hg diff --nodates -U foo
47 $ hg diff --nodates -U foo
48 abort: diff context lines count must be an integer, not 'foo'
48 abort: diff context lines count must be an integer, not 'foo'
49 [255]
49 [10]
50
50
51
51
52 $ hg diff --nodates -U 2
52 $ hg diff --nodates -U 2
@@ -87,7 +87,7 b' invalid diff.unified'
87
87
88 $ hg --config diff.unified=foo diff --nodates
88 $ hg --config diff.unified=foo diff --nodates
89 abort: diff context lines count must be an integer, not 'foo'
89 abort: diff context lines count must be an integer, not 'foo'
90 [255]
90 [10]
91
91
92 noprefix config and option
92 noprefix config and option
93
93
General Comments 0
You need to be logged in to leave comments. Login now