Change the representation of "blocks" within the rcs_stream module.
commit1fb35ff3800a0b342e20e034105dfccc0cffacdd
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Mon, 31 May 2010 03:48:24 +0000 (31 03:48 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Mon, 31 May 2010 03:48:24 +0000 (31 03:48 +0000)
treeac58f8958d8078f50a2aec08b1ddb9693e471178
parent3e949980e95d47928f60bd11975cb3acd88767a8
Change the representation of "blocks" within the rcs_stream module.

Represent blocks as 'c'opies and 'r'eplaces, where the replace blocks
can contain both old_lines and new_lines.  Don't bother keeping track
of line numbers, as (with this format) they are only needed on output.
This makes it trivial to implement transformations on blocks.  The
cost is that sometimes "old_lines" is generated when it is not needed.
But it only consists of a list of pointers to lines that are already
in RAM, so it is not much extra work.

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@5128 be7e6eca-30d4-0310-a8e5-ac0d63af7087
cvs2svn_lib/rcs_stream.py