cstroe / svndumpapi

A Java library for manipulating a Subversion dump file.
GNU Affero General Public License v3.0
5 stars 1 forks source link

ClearRevision calls endChunks() and endNode() for removed nodes #27

Closed cstroe closed 9 years ago

cstroe commented 9 years ago

When clearing a revision, ClearRevision will filter out the consume(SvnNode) and consume(FileContentChunk) calls and not call them on the next consumer. However, there's no logic to keep endChunks() and endNode(SvnNode) from being called on the next consumer.

This will cause a follow up consumer to receive endChunks() and endNode(SvnNode) without the matching consume(...) calls, and will lead to undesired behavior.