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

Question about branching and repository layout

From: Craig L. Ching <cching_at_mqsoftware.com>
Date: 2003-10-09 20:37:33 CEST


Been lurking for a year or so and I'm now getting serious about switching away from CVS to Subversion. I have set up a test repository on RH Linux 8.0 with subversion 0.30 installed from the RPMs provided on the subversion site. I have a Windows 2000 client with 0.30 installed from the Windows installer also provided on the subversion site. Not sure if that information matters or not, but there you go. I have a repository with the following layout:



Essentially we have multiple top-level directories (dir1 and dir2) that make up our products (product1 and product2).

When a developer is assigned a defect, they are to create a branch with the defect number in the name, so let's say they have been assigned defect 1000. They would create a branch based on that number so you'd have a layout like this:


and *sometimes*


(you're not always required to build dir2 if your change is local to dir1).

But subversion doesn't *seem* to allow this (remember, I'm a newbie here). In other words, I do this:

$ svn copy http://kraken/svn/repos/product1/trunk/dir1 \
           http://kraken/svn/repos/product1/branches/1000/dir1 \
           -m"Branching for defect 1000"

and get the following error:

svn: HTTP Path Not Found
svn: PROPFIND request failed on '/svn/repos/!svn/bc/9/product1/branches/1000'
svn: '/svn/repos/!svn/bc/9/product1/branches/1000' path not found

If, however, I do this:

$ svn copy http://kraken/svn/repos/product1/trunk/dir1 \
           http://kraken/svn/repos/product1/branches/1000 \
           -m"Branching for defect 1000"

It works, but it dumps the contents of dir1 directly into the directory 1000, not what I want. It seems that the parent directory must exist. Is there anyway to change this behavior? You can see the problem I could potentially have when svn dumps dir1 and dir2 directly into the branch directory (1000 in this case). BTW, since I've been watching subversion and played with it early on and finally am now serious about it, I'm extremely impressed with the progress made to date. Keep up the good work!


Craig L. Ching
Chief Product Architect
IBM Certified Specialist, MQSeries
IBM Certified Developer, MQSeries
MQSoftware, Inc.
(952) 345-8720
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 9 20:38:19 2003

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.