Previously, they raised a naked RuntimeError. This change should be
harmless because nobody seems to catch these exceptions specifically.
* lib/vclib/ccvs/rcsparse/default.py (_TokenStream.match): Raise
RCSExpected exception in the case of a mismatch.
* lib/vclib/ccvs/rcsparse/texttools.py (_mxTokenStream.match): Raise
RCSExpected exception in the case of a mismatch.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@1724 8cb11bc2-c004-0410-86c3-e597b4017df7
* ccvs/__init__.py: the package is 'vclib' rather than 'versionlib'
* rcsparse/texttools.py: the string module is needed
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@493 8cb11bc2-c004-0410-86c3-e597b4017df7
* __init__.py: revise the import tests to just end up with an exported
function named "parse" to parse an RCS file. move the test/debug
functions to the new debug.py module.
* common.py: add mising imports. move DebugSink and DumpSink classes
to the new debug.py module. tweak the RCSExpected class a bit to
call the init method for its parent. move the Parser class here,
expecting subclasses to set the .stream_class attribute.
* default.py: toss the 'time' import and import 'common' as a module,
rather than getting all symbols from it. clarify where the
CHUNK_SIZE value comes from. use common._Parser, but leave the
parse_rcs_admin() method until we fix the token parsing for proper
":" handling.
* texttools.py: use 'common' as a module, rather than grabbing
symbols. clarify CHUNK_SIZE. use common._Parser
* debug.py: shift DebugSink, DumpSink, and some utility funcs here.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@480 8cb11bc2-c004-0410-86c3-e597b4017df7
separate commit, where we can actually see/record diffs more easily).
* pythparse.py was renamed to default.py: "pyth" is a funny
abbreviation, "parse" is redundant with the "rcsparse" package name.
this is intended as the default/fallback parser, so "default" is good.
* textparse.py was renamed to texttools.py: "text" is too generic.
"texttools" describes the basis of the module better.
git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@479 8cb11bc2-c004-0410-86c3-e597b4017df7