[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svndumpfilter --targets file requires leading slash

From: Galen Seitz <galens_at_seitzassoc.com>
Date: Tue, 21 Aug 2012 13:05:29 -0700

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
galens_at_seitzassoc.com
Received on 2012-08-21 23:17:37 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.