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

RE: How to ignore before importing ?

From: de Boer Ingo <I.deBoer_at_polytec.de>
Date: 2006-01-11 16:58:10 CET

Hi Ryan,

thanks for the hint. In the end I thought of this kind of
solution but couldn't find the right turn.

But... Why is it so complicated ? Why don't they just implemented
this feature? I think this is what almost everybody wants to do,
like

$ svn import -exclude "*.obj *.o" .

It would makes thinks easier, I'd say.

thanks again & greets
  Ingo

> -----Original Message-----
> From: Ryan Schmidt [mailto:subversion-2006Q1@ryandesign.com]
> Sent: Wednesday, January 11, 2006 1:16 PM
> To: de Boer Ingo
> Cc: users@subversion.tigris.org
> Subject: Re: How to ignore before importing ?
>
>
> On Jan 11, 2006, at 12:29, de Boer Ingo wrote:
>
> > I create the repository and I want to import my project to the
> > repository.
> > But I didn't clean the project, so all the unwanted files
> are still
> > there,
> > like *.obj (intermediate object files). And I don't want to
> clean it.
> > I want to import all the files from the project, except for the
> > *.obj files.
> > But how ? I know there is a global config file which I don't wanna
> > use.
> >
> > From the import help I read
> > "-F [--file] arg : read data from file ARG"
> >
> > What is the content of the arg file ? Can I exclude the
> files there ?
> > I didn't find any detailed docu about "-F"
>
> -F / --file is for specifying your commit message in a file, as
> opposed to specifying it directly on the command line via -m / --
> message or entering it interactively if you use none of these
> switches. It is not related to excluding files.
>
>
> Since you don't want to use the global config file, you could try a
> so-called in-place import. Create an empty directory in your
> repository, where your files will eventually go. For example:
>
> $ svnadmin create http://svn.example.org/fooproject/trunk
>
> Now go into the directory you were going to import, and check this
> empty directory out over the top of it:
>
> $ cd /directory/with/all/your/files/in/it
> $ svn co http://svn.example.org/fooproject/trunk .
>
> You can now selectively "svn add" the things you want to add, then
> check it in.
>
> Before that, you can also add svn:ignore properties to
> directories as
> desired.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 11 17:06:49 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.