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

RE: Branch/switch/merge question

From: Edward Ned Harvey (svn4) <svn4_at_nedharvey.com>
Date: Thu, 28 Nov 2013 14:51:57 +0000

> From: Les Mikesell [mailto:lesmikesell_at_gmail.com]
> Not sure what you mean about with sparse and recursive checkouts or
> why you'd start with /. If there is one project in the repository
> you would normally just check out /trunk. Or with multiple projects,
> /project_name/trunk.

... see below...

> You can have multiple checkouts that don't really affect each other,

Yes, that's what I'm talking about. I know I can do this:
mkdir trunk ; svn co $URL/trunk trunk
mkdir eharvey; svn co $URL/branches/eharvey eharvey

But I prefer to do this:
svn co --depth=immediates $URL
svn update --set-depth infinity project/trunk
svn update --set-depth immediates project/branches
svn update --set-depth infinity project/branches/eharvey

Because in the latter "sparse" checkout, all the directories retain some context about the directories around them, and I can issue a single "svn update" at the top level in order to update both, and I won't get confused about the path relation between two independent checkouts, while I'm browsing around my local filesystem, and stuff like that.

But as far as branching/merging is concerned, it's functionally equivalent.
Received on 2013-11-28 15:53:59 CET

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

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