[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-16 16:31:19 CEST

Peter Davis <peter@pdavis.cx> writes:
> That makes me think, should import work more like cp and mv? Right now I
> can't even really summarize how to think of import, even with the new syntax
> proposal; something like, "take this URL and copy all of the files under the
> source into it". Should we think of it more simply as "copy this local
> directory into the repository"? In that case, it should really be:
>
> $ svn import SOURCE REPOS-URL/[NEW-ENTRY]
>
> SOURCE could actually be multiple arguments, so
>
> $ svn import ./graphics/bsp/* REPOS-URL
>
> work work essentially the same as
>
> $ cd ./graphics/bsp
> $ svn import . REPOS-URL
>
> If you type the following:
>
> $ svn import ./graphics/bsp REPOS-URL
>
> then you will actually end up with a new directory "bsp/" under REPOS-URL,
> since bsp/ and its contents are the target of the operation. This is as
> opposed to the way import works now and the way it would work under my last
> proposal, where the "bsp/" directory would *not* be created under REPOS-URL;
> only its contents would be copied.
>
> This would make it work exactly the same as "svn copy", only it works with
> non-versioned files/directories. In fact, maybe import should be revamped to
>
> support files as arguments as well.
>
> This would make cp/import a nice complement to checkout/export. With export,
>
> it's just reversed: "Copy the contents of this URL into this local
> directory". Export's arguments represent that thought: "svn export
> REPOS-URL/PATH LOCAL-DESTINATION".
>
> So, what does everyone else think of this? Now that Benjamin has pointed it
> out, this new style actually makes more sense to me.

I think that this makes sense... It seems to me that with each
iteration, we're simplifying the import command more and more--I for
one *loathe* CVS's import command. With CVS, I always wind up grabbing
Karl's book and looking up the damned import syntax because it's so
ass-backwards that my brain refuses to remember it.

End rant.

Anyway, I think that it's a breakthrough to realize that import can
use the same (consistent) syntax that cp and mv use.

+1

-Fitz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 16 16:32:04 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.