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

Re: adding a set of files at once

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: 2006-02-04 17:58:47 CET

On 2/4/2006 11:33 AM, Angel Tsankov wrote:
>>> Why is it not possible to add a set of files (e.g. by include or
>>> exclude mask) at once. I may only add a single file or whole
>>> directory.
>> Are you using a Cygwin build in a Windows shell? It might assume
>> the shell expands wildcards, and Windows CMD doesn't do that. The
>> regular svn build handles wildcards fine. Or do you mean something
>> different when you say "mask"?
> I have Cygwin installed on my system, but I am not using a Cygwin
> build of SVN. In fact, I installed this one:
> http://subversion.tigris.org/files/documents/15/29065/svn-1.3.0-setup.exe
> Then I created a repository via TortoiseSVN:
> http://prdownloads.sourceforge.net/tortoisesvn/TortoiseSVN-
> Then I tried to find out how to add (i.e. import) only some of the
> files in a folder at once. As I could not do it, I downloaded and
> installed RapidSVN:
> http://rapidsvn.org/download/RapidSVN-0.9.0.exe
> Unfortunately, I this did not help at all. Then I tried the command
> line interface of SVN:
> svn import main.cpp header.h file:///d:/svn_repos/experimental
> svn: Too many arguments to import command
> svn import *.h file:///d:/svn_repos/experimental --message ""
> svn: Too many arguments to import command
> svn import main.cpp file:///d:/svn_repos/experimental/main.c --message
> ""
> Adding main.cpp
> Committed revision 1.
> And, btw, isn't there any way not to specify the name of a file in the
> URL of the repository when importing it? It is almost always
> redundant.

Importing and adding are different operations. Importing is what you do
when you have a non-versioned directory, and you want to turn it into a
versioned one. I can't see that you'd often need to do that for
multiple targets at once. (In fact, I didn't know that it would accept
a file; I thought it only worked on directories.)

What I think you want to do is to *add* your files. Somehow (through an
import or checkout) you get a working copy of a directory from the
repository, then put the new files there, and add them. You won't need
to specify the repository path, because the working copy knows it
(through the .svn files).

Duncan Murdoch

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Feb 4 17:59:51 2006

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.