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

Re: Making import syntax consistant with mv, cp, export

From: B. W. Fitzpatrick <fitz_at_red-bean.com>
Date: 2002-10-17 05:46:36 CEST

Peter Davis <peter@pdavis.cx> writes:

> On Wednesday 16 October 2002 13:33, B. W. Fitzpatrick wrote:
> > If we have directory with one file in it like this:
> >
> > /home/fitz/docs/svn/client/somefile.txt
> >
> > Here are some scenarios:
> >
> > $ cd /home/fitz/docs
> > $ svn import . http://svn.collab.net/repos/testdocs/trunk
> >
> > The above would give you
> >
> > http://svn.collab.net/repos/testdocs/trunk/somefile.txt
>
> That's not what I had in mind. What happend to the ./svn/client/ folders?

Aww crap. Totally spaced.
 
> Just imagine what would happen if you replaced "svn import" with "cp -a": the
  
> last path element and everything underneath it is copied into the
> destination. Since the last (and only) path element is ".", everything in
> ./* is copied directly into trunk/, including parent directories.
 
> If you had used "svn/client" instead of ".", you would end up with
> "http://.../trunk/client/somefile.txt".
 
> I don't think there has to be any complex special-cases. If you've used UNIX
> cp (or for that matter, svn cp), then you'll understand it.

OK. I think I get it now.

-Fitz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 17 05:47:15 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.