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

RE: Question about branching and repository layout

From: Couball, James <james.couball_at_cotelligent.com>
Date: 2003-10-09 20:42:01 CEST

How about if you try svn mkdir
http://kraken/svn/repos/product1/branches/1000 first?

-----Original Message-----
From: Craig L. Ching [mailto:cching@mqsoftware.com]
Sent: Thursday, October 09, 2003 11:38 AM
To: dev@subversion.tigris.org
Subject: Question about branching and repository layout

Hi!

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:

product1/trunk/dir1
product1/trunk/dir2
product1/branches
product1/tags

product2/trunk/dir1
product2/trunk/dir2
product2/branches
product2/tags

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:

product1/branches/1000/dir1

and *sometimes*

product1/branches/1000/dir2

(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!

Cheers,
Craig

--
Craig L. Ching
Chief Product Architect
IBM Certified Specialist, MQSeries
IBM Certified Developer, MQSeries
MQSoftware, Inc.
(952) 345-8720
www.mqsoftware.com 
 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
---------------------------------------------------------------------
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:42:53 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.