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

Re: checking out a branch - is similarly named target folder created automatically?

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-04-27 23:02:39 CEST

On 27/04/07, Stefan Küng <tortoisesvn@gmail.com> wrote:
> Simon Large wrote:
>
> >> If you right-click on a folder for checkout, you then enter an URL, TSVN
> >> tries to 'guess' the foldername for the checkout from the URL (at least
> >> in the nightly builds).
> >
> > I don't think so. I just installed last nights and tried it.
> > 1. Create C:\temp\doc
> > 2. Right click and SVN checkout
> > 3. Browse to
> > http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/doc/source/dtd/docbook41
> >
> > in repobrowser.
> > 4. Checkout path remains unchanged at C:\temp\doc. I had hoped that it
> > would auto-complete to C:\temp\doc\source\dtd\docbook41
>
> First: I said "if you then ENTER an URL" (if you manually enter the URL,
> it works).
> Second: how would the checkout dialog know that it should enter
> /source/dtd/docbook41 and not just /dtd/docbook41 or simply docbook41 to
> the path you right-clicked on?

To me there are only 3 reasonable alternatives:
1. Do nothing - just use the path the user started with regardless of matching.
2. Append just the last folder - /dockbook41
3. Append everything back to the matching folder
Anything else is less obvious and would need to be edited manually.

Also, I think it is next to impossible to guess which of these the
user wants to do, so doing this automatically is not such a good idea.

My original suggestion of a button is not so good as the text label is
hard to make small enough to fit on the button, so another way is to
use 3 radio buttons.
(*) Selected folder
( ) + last dir of URL
( ) + all sub-dirs of URL

You would have to store the original path selected, rather than just
reading it back from the edit box, otherwise you cannot switch between
the 3 options. If there is no matching component in the URL, option 3
is disabled. If you edit the path manually, the option jumps to option
1 and whatever you are entering becomes the stored original path, as
if you had got there from a right-click in a folder.

> If you edit the URL manually, the checkout path will be adjusted to
> c:\temp\doc\docbook41
>
> And as of revision 9244, the same happens if you change the URL with the
> repobrowser.

+1 for consistency between manual and repo-browser.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Apr 27 23:02:45 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.

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