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. |
|
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 |
[ |
|
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 |
[ |
|
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