[prev in list] [next in list] [prev in thread] [next in thread]
List: subversion-issues
Subject: [Issue 4234] New - svndumpfilter exclude --targets wants pathname to start with '/'
From: jeyanthan_cn () tigris ! org
Date: 2012-09-25 11:03:40
Message-ID: iz4234 () subversion ! tigris ! org
[Download RAW message or body]
http://subversion.tigris.org/issues/show_bug.cgi?id=4234
Issue #|4234
Summary|svndumpfilter exclude --targets wants pathname to star
|t with '/'
Component|subversion
Version|trunk
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|svndumpfilter
Assigned to|issues@subversion
Reported by|jeyanthan_cn
------- Additional comments from jeyanthan_cn@tigris.org Tue Sep 25 04:03:40 -0700 2012 -------
I came across a bug with svndumpfilter.
When svndumpfilter exclude command accepts path prefixes starting with either /<pathname>
or just <pathname>, I expect it to work the same way when we use with --targets option.
For Eg :
Both of the following command works fine when we directly provide the
path prefix
$ cat sample.dump | svndumpfilter exclude /tags > filtered4.dump
$ cat sample.dump | svndumpfilter exclude tags > filtered4.dump
However, when we use targets, it seems to be a must to prefix all the path prefixed with
a / which is not mentioned anywhere in the documentation as well.
http://svnbook.red-bean.com/en/1.7/svn.ref.svndumpfilter.commands.c.exclude.html
http://svnbook.red-
bean.com/en/1.7/svn.ref.svndumpfilter.html#svn.ref.svndumpfilter.sw.targets
We had to lookup other sites to identify '/' was required in the
--targets filename being provided for the svndumpfilter to exclude those.
The following is how I verified in my Apache SVN 1.7.4. Paul confirmed that it still
occurs with a trunk build @1384889
========
WORKING:
========
$ cat omit.txt
/tags
$ cat sample.dump | svndumpfilter exclude --targets /tmp/omit.txt >
filtered3.dump
Excluding prefixes:
'/tags'
Revision 0 committed as 0.
[...snip...]
Revision 40 committed as 40.
Dropped 1 node:
'/tags'
==============
NOT WORKING :
==============
$ cat omit.txt
tags
$ cat sample.dump | svndumpfilter exclude --targets /tmp/omit.txt >
filtered2.dump
Excluding prefixes:
'tags'
Revision 0 committed as 0.
[...snip...]
Revision 40 committed as 40.
------------------
and the tags directory is not dropped. I wish this to be fixed to make it work in either
ways.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=463&dsMessageId=3010063
To unsubscribe from this discussion, e-mail: [issues-unsubscribe@subversion.tigris.org].
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic