Mercurial > hg
comparison mercurial/mdiff.py @ 48365:67064c238ae7
errors: use detailed exit code for non-integer number of diff context lines
Differential Revision: https://phab.mercurial-scm.org/D11826
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 19 Nov 2021 15:38:36 -0800 |
parents | d4ba4d51f85f |
children | 6000f5b25c9b |
comparison
equal
deleted
inserted
replaced
48364:220506bb213e | 48365:67064c238ae7 |
---|---|
82 setattr(self, k, v) | 82 setattr(self, k, v) |
83 | 83 |
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 ) |
91 | 91 |
92 def copy(self, **kwargs): | 92 def copy(self, **kwargs): |