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

Re: RFC: import create parent directories

From: David Kimdon <dwhedon_at_debian.org>
Date: 2002-05-04 07:21:13 CEST

Fri, May 03, 2002 at 08:59:06AM -0500 wrote:
> David Kimdon <dwhedon@debian.org> writes:
>
> > I'm writing some scripts that use Subversion and I'd like 'svn import'
> > to be able to create parents. That is I'd like :
> >
> > $ svn import file:///var/svn/hello/trunk
> >
> > to work even if file:///var/svn/hello doesn't already exist. (CVS does
> > this by default, FWIW)
>
> You're aware that 'svn import' already has the ability to create a
> single directory that doesn't yet exist, if you give it a 3rd arg?
> Obviously, though, this isn't the 'mkdir -p' behavior you're talking
> about. I guess right now you just have to do a lot of 'svn mkdir
> URL' commands before importing.

right. Knowing which directories have to be created is difficult as
well. At present I can do some mkdir's and ignore errors (as long as
the errors are 'directory already exists'), or else do some sort of
'svn co -n' on the directories to see if they exist, or even some
svnadmin commands to see inside the repository.

> If CVS does this by default, then I guess maybe we should too....?

It would be nice since it makes it easier to control the structure of
the repository.

-David

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 4 07:23:51 2002

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

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