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

Re: changing DIR structure of SVN dump

From: Shaaa <shaolinfinest_at_gmail.com>
Date: Wed, 11 Jan 2012 15:07:02 +0000

> I think where you're saying "repos" above you mean "project" or "directory". It still seems tht your repository is just /var/svn/repos.

The repos is /var/svn/repos but it has a hb folder, which holds all
the obsolete files and that dir holds another dir with the new
project. Which two of the below would be ideal method of managing
several projects:

method 1:
/var/svn/repos/project1
/var/svn/repos/project2
/var/svn/repos/project3

method 2:
/var/svn/project1
/var/svn/project2
/var/svn/project3

The former are directories/projects within the main repository and in
the case of the latter, each project is its own repository

On 11/01/2012, Ryan Schmidt <subversion-2012a_at_ryandesign.com> wrote:
>
> On Jan 11, 2012, at 07:11, Shaaa wrote:
>
>> Thank you for your informative reply. I have managed to overcome the
>> initial problem, however I do have a new problem.
>>
>> Basically, this is the current path to my repos:
>> svn list file:///var/svn/repos/hb/trunk/chi
>>
>> I want to change it to conform to the 'standardised' structure. At the
>> moment it is a complete mess. /var/svn/repos/hb has a tonne of
>> obselete files, then you have a trunk within a trunk which is
>> basically a different project and should be in its own directory
>> instead of being a sub directory of an obselete project.
>>
>> So to clean up the structure I have done the following:
>>
>> Ive created a new directory:
>> svn mkdir file:///var/svn/repos/chi
>>
>> and moved the other repos to the new directory:
>> svn move file:///var/svn/repos/hb/trunk/chi
>> file:///var/svn/repos/chi/trunk
>
> I think where you're saying "repos" above you mean "project" or "directory".
> It still seems that your repository is just /var/svn/repos.
>
>
>> now I take a dump of the repos which will be taken to the new server
>> svnadmin dump /var/svn/repos/ > svn.dump
>>
>> Now I try to filter and extract *only* the chi project
>> (file:///var/svn/repos/chi).
>> svndumpfilter include chi < dump > dump.filtered
>>
>> Doing this however, gives me the following error:
>> svndumpfilter: Invalid copy source path '/trunk/chi'
>
>
> You will need to "include" every path "chi" was ever known as, not just the
> path it's at in the HEAD revision.
>
>
>
Received on 2012-01-11 16:07:43 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.