[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: Peter Davis <peter_at_pdavis.cx>
Date: 2002-10-17 05:39:43 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Heh, your use of "--" on a line all alone is making it tough to reply to this
with KMail :)

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?

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.

- --
Peter Davis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9rjD/hDAgUT1yirARAuyHAJwIo+AzRJlg3BPuWcntOQ/RowpNewCdGWzU
+1YIGu1EPfzN5hfyRhbUtEI=
=QEYq
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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:40:26 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.