[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_at_skirridsystems.co.uk>
Date: 2007-04-25 00:17:53 CEST

Doucette, Charles wrote:
> We have a typical repository organization
> trunk
> branches
> tags
> we tell people that they should not check out the entire repository,
> because they usually only want the trunk or a particular branch.
> So, they must select trunk in the source URL.
> The question is, what should they put for the destination?
> In our case, our repository is called software.
> So, our typical working directory structure is:
> c:\software\trunk
> C:\software\branches\VMP5_4
> C:\software\branches\VMP5_5_2
> When I decide to checkout the trunk, I'll select the C:\software
> directory in Windows explorer and bring up the context menu TortoiseSVN
> checkout. I'll choose the source URL which ends with trunk, and by
> default the target directory will initially be C:\software.
> I want it to automatically create a subdirectory trunk under repository
> control, and then put the contents of trunk under that.
> Instead, I have to manually create trunk and then checkout into
> C:\software\trunk instead.
> Similarly, when I checkout a branch, I don't want to checkout all of the
> branches.
> Thus, the source URL is always a particular branch. I must select the
> source URL manually.
> Must I also create the target branch folder to match manually also, or
> could it automatically create it too?
> It's probably hard to change how TortoiseSVN works now; but, this does
> not appear to be consistent with the way the command line tool works.
> I just tried this:
> C:\> CD software\branches
> C:\software\branches> svn co svn://<server>/<repos>/branches/VMP5_5_1
> and it created a subdirectory of VMP5_5_1 under source code control.
> I didn't have to create it first.

This is already implemented in the nightly build, although slightly
differently from the command line tool.

In the settings dialog there is a default checkout path and default URL.
You would set the default path to c:\software and the default URL to
svn://server/repos/ On subsequent checkouts, TSVN then generates the
appropriate subdirs.

But it only allows you to link one repository to one folder structure.

Maybe we should extend this functionality a bit, so if the folder you
are checking out into also occurs as a directory name within the URL,
create any intervening subdirs automatically. This would need a checkbox
in the checkout dialog, because it is not necessarily the right
behaviour all the time.


   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 Wed Apr 25 00:18:00 2007

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