Hi,

I'm seeing what appears to me to be inconsistent or undocumented
behavior when using the --targets option of svndumpfilter.  If I want
to remove a given path, the following works as expected:
$ svndumpfilter exclude --drop-empty-revs path/to/delete < in > out

This also works:
$ cat > foo
path/to/delete
$ svndumpfilter exclude --drop-empty-revs `cat foo` < in > out

However, if I use the same file with the --targets option, the
specified path is not deleted:
$ svndumpfilter exclude --drop-empty-revs --targets foo < in > out

After some experimentation, I discovered that when using the --targets
option, the leading slash on the path is required.  This works:
$ cat > foo
/path/to/delete
$ svndumpfilter exclude --drop-empty-revs --targets foo < in > out

If the requirement for the leading slash is the intended behavior, it
would be helpful if this were documented.  I didn't see any mention of
it in my searches.  As a side note, the documentation for
svndumpfilter isn't clear as to the preferred position for options.
  svndumpfilter exclude PATH_PREFIX...
Should they appear before or after the subcommand?  They appear to
work in either position.


I'm using svndumpfilter version 1.6.11 (r934486) from CentOS 5.8.

thanks,
galen
-- 
Galen Seitz
gal...@seitzassoc.com

Reply via email to