pypy: fix overeager pattern matching on mpatchError
Pypy have difference in error reporting.
mpatch: unify mpatchError (
issue5182)
The pure version was mpatch was throwing struct.error or ValueError
for errors, whereas the C version was throwing an "mpatch.mpatchError".
Introducing an mpatch.mpatchError into pure and using it consistently
is fairly easy, but the actual form for it is mercurial.mpatch.mpatchError,
so with this commit, we change the C implementation to match the naming
convention too.
check-code: reject sed ... \\n
This would have caught
142891ab6e89 (fixed by
a5a13eeffc59)
if repcomment didn't make the content of the perl code
opaque to the check.
hideablerevs: expand docstring to warn about possible traps
Sean Farley just wasted multiple hours trying to figure out why his code was
crashing. We update the docstring to make the constraint clearer.