parser: move prettyformat() function from revset module
I want to use it in doctests that I'll add by future patches. Also, it can
be used in "hg debugfileset" command.
fileset: move validation of incomplete parsing to parse() function
fileset.parse() should be responsible for all parsing errors as well.
revset: move validation of incomplete parsing to parse() function
revset.parse() should be responsible for all parsing errors. Perhaps it wasn't
because 'revset.parse' was not a real function when the validation code was
added at
ffcb7e4d719f.
match: fix bug in match.visitdir()
There was a bug in my recent change to visitdir (
8545bd381504) due to
the stored generator being iterated over twice. Making the generator into a
list at the start fixes this.
error: derive RevlogError from HintException instead of Exception
This will allow us to now pass hints into this exception.
error: refactor common hint-pattern into a common base class
I'm about to make another exception class require hints, so third
strike and you refactor.