From users-return-5520-daniel=haxx.se@subversion.apache.org Wed Oct 20 18:22:49 2010 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on giant.haxx.se X-Spam-Level: X-Spam-Status: No, score=-1.5 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by giant.haxx.se (8.14.3/8.14.3/Debian-9.1) with SMTP id o9KGMmiO023911 for ; Wed, 20 Oct 2010 18:22:48 +0200 Received: (qmail 13849 invoked by uid 500); 20 Oct 2010 16:22:39 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 13842 invoked by uid 99); 20 Oct 2010 16:22:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 16:22:39 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS Received-SPF: pass (nike.apache.org: domain of andy.levy@gmail.com designates 209.85.213.43 as permitted sender) Received: from [209.85.213.43] (HELO mail-yw0-f43.google.com) (209.85.213.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 16:22:31 +0000 Received: by ywc21 with SMTP id 21so2240444ywc.16 for ; Wed, 20 Oct 2010 09:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Nkp4vJeTKqGbgmu3Szosjra6O2XGIJLLJs/qGLQtO/w=; b=mbLx0PP68VprDp47SPJygc6/GYs4ah0+ln+hQU/2LhG6Tpx777J+g3eLicnxgn/CA5 0GFFwLyUuQ6p76YbxJRu/CB9nZhlxrC6DJ1nM+TxW5Df5FKaw0IsBgK0PgqoV4vGcP8T nmj3Vw86S4i5S6jnudf3torDSclMXrf63xJxw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=obB01ZP87lKPGOiv4HwCDSDogGwBZQwy3W0Z9ga2DQjDq7bWe2x2sg/FbFL+BJUPOr HRA+ecoSr8dSy3GclhnRUpHasTAUuS6xe1WeS2tRbN9dk5NHR3gOKHaXy/JlMSY9iVxo vyyxGI5DChiWj124jZ7RFBUWgDbRU15FY8SJ4= Received: by 10.239.155.207 with SMTP id j15mr10099hbc.191.1287591728894; Wed, 20 Oct 2010 09:22:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.157.148 with HTTP; Wed, 20 Oct 2010 09:21:28 -0700 (PDT) In-Reply-To: References: From: Andy Levy Date: Wed, 20 Oct 2010 12:21:28 -0400 Message-ID: Subject: Re: Having a path name after specifying repository location To: Tech Geek Cc: Subversion Users Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.3.5 (giant.haxx.se [80.67.6.50]); Wed, 20 Oct 2010 18:22:49 +0200 (CEST) X-Friend: Nope On Wed, Oct 20, 2010 at 12:11, Andy Levy wrote: > On Mon, Oct 18, 2010 at 20:52, Tech Geek wrote: >> Hi, >> >> My repository path is /var/lib/svn for the SVN server. However I encount= ered >> a unique situation as follow: >> >> The following works: >> #svnadmin create=A0 /var/lib/svn/projectA >> >> From a svn client: >> #svn co http://svnserver/svn/projectA=A0projectA >> >> >> However the following does NOT work: >> #mkdir /var/lib/svn/projectB/ >> #sudo svnadmin create=A0 /var/lib/svn/projectB/partA >> #sudo svnadmin create=A0 /var/lib/svn/projectB/partB >> >> From a svn client: >> #svn co http://svnserver/svn/projectB/partA=A0partB >> >> Is it true that all the directories directly under /var/lib/svn/ should = be >> an *actual* repository? > > No, they will not be a single, unified repository. You have created > two separate repositories, =A0/var/lib/svn/projectB/partA and > /var/lib/svn/projectB/partB > >> Can't we have some=A0pathname like "ProjectB" under >> /var/lib/svn/ and then have repositories (like PartA and PartB)=A0under = it >> without changing the root path of the repository which is /var/lib/svn? > > Subversion does not support "nesting" like this. Your repository must > be an immediate child directory of /var/lib/svn . Edit: I should have specified this as "the path you have set as your SVNParentPath" >> How do you overcome this situation? I want PartA and PartB to be separat= e >> SVN repository but I do not want to place them under /var/lib/svn/ direc= tory >> because they beloing to ProjectB and in future other projects like Proje= ctD >> could have PartA and PartB in the same manner. > > If PartA & PartB are part of the same project, why are they in > separate repositories in the first place? > > A more conventional approach would be: > > /var/lib/svn/ProjectB > /var/lib/svn/ProjectD > > And then PartA & PartB would be paths *inside* the ProjectB repository > - not distinct repositories themselves. > The other way you could do this, if you insist upon PartA & PartB being separate repositories, is to have a different block for each project, and specify SVNParentPath as /var/lib/svn/ProjectB . Then you could have PartA & PartB set up as separate repositories - albeit with a lot more management overhead as you add projects/repositories, and potentially more confusion.