You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Josef Wolf <jw...@raven.inka.de> on 2002/06/12 19:19:28 UTC

Re: [Issue 616] New - does "svn checkout" really need the -d option?

[ ... ]
> + What if we just did away with it, and made checkout syntax
> + look something like this:
> + 
> +     svn checkout http://svn.blah.com/repos/myproj/trunk [DIRNAME]
> + 
> + where if DIRNAME is absent, it defaults to the last component
> + of the url.

So DIRNAME would be "trunk" in the example above? Looks strange to me.
"myproj/trunk" would be better IMHO. This way you would easily get
"myproj/branches/V4.12" etc pp.

-- 
-- Josef Wolf -- jw@raven.inka.de --

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: [Issue 616] New - does "svn checkout" really need the -d option?

Posted by Ben Collins-Sussman <su...@collab.net>.
Josef Wolf <jw...@raven.inka.de> writes:

> [ ... ]
> > + What if we just did away with it, and made checkout syntax
> > + look something like this:
> > + 
> > +     svn checkout http://svn.blah.com/repos/myproj/trunk [DIRNAME]
> > + 
> > + where if DIRNAME is absent, it defaults to the last component
> > + of the url.
> 
> So DIRNAME would be "trunk" in the example above? Looks strange to me.
> "myproj/trunk" would be better IMHO. This way you would easily get
> "myproj/branches/V4.12" etc pp.

There's no way the client or server can tell that the project "begins"
at /myproj/.  They're all just directories.

In our current code, this is how we already behave: if you leave out
the -d option, then 'svn checkout' just creates a working copy with
the same name as the URL's basename.  

Karl is merely suggesting tossing the '-d' switch.  Either checkout
has one or two arguments.  If a 2nd argument is present, it would
treat that 2nd argument as the name of the working copy to create.
It's silly to have a '-d' in there, we were just emulating CVS.




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org