Ben Collins-Sussman wrote:
>
> On Sep 14, 2005, at 9:41 PM, Kalin KOZHUHAROV wrote:
>
>>
>> want to do:
>> Add to add all unversioned files and subdirs under versioned
>> directory /foo/bar except those
>> mentioned in svn:ignore (for /foo/bar/ directory)
>>
>> tried:
>> svn add --force /foo/bar/*
Me - bad, should have been:
>> tried:
>> svn add /foo/bar/*
>> problem:
>> bails on added files, does not add unversion files in (versioned) /
>> foo/bar/bas/
>>
>> tried:
>> svn add --force /foo/bar/*
>> problem:
>> svn:ignore is _ignored_ on /foo/bar/
>>
>
> How is the second case different than the first case?
Sorry, too much copy-n-paste.
> Did you try just leaving out the '*'? Your shell is expanding it into
> multiple arguments. Instead, try just
>
> svn add --force /foo/bar
This is the second case. Below is a transcript:
kalin@ss /tmp/t1/testforce $ tree
.
`-- L1
|-- ignored
| `-- 2nd
| `-- test
`-- ok
`-- ok2
`-- testok
5 directories, 2 files
kalin@ss /tmp/t1/testforce $ svn st
? L1/ok
kalin@ss /tmp/t1/testforce $ svn propget svn:ignore L1/
ignored
kalin@ss /tmp/t1/testforce $ svn add L1/ --force
A L1/ok
A L1/ok/ok2
A L1/ok/ok2/testok
A L1/ignored
A L1/ignored/2nd
A L1/ignored/2nd/test
kalin@ss /tmp/t1/testforce $ svn ci -m ""
Adding L1/ignored
Adding L1/ignored/2nd
Adding L1/ignored/2nd/test
Adding L1/ok
Adding L1/ok/ok2
Adding L1/ok/ok2/testok
Transmitting file data ..
Committed revision 3.
So, ignored files get added and that is a problem.
Kalin.
--
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 15 05:39:45 2005