Repository Directory Tree

2010-07-30 Thread Allen Williams

My subversion repository is in /var/svn. Somehow (and, yes, I'm new;
I'm evaluating it), I've wound up with the following directory structure
in my subversion repository:

/var/svn/
 var/svn/proj1
 var/svn/proj2
 var/svn/proj3.

In other words, to do a list of the repositories, I have to do:

svn listfile:///var/svn/var/svn

to get my projects listed.

I've tried to do an svnadmin dump and load with --parent-dir, and that
didn't work.  This was the command line sequence after I had made a copy
of the repository in /var/svn.sav:

svnadmin dump /var/svn.sav>   old_repos
rm -r/var/svn/*
svnadmin create /var/svn
svnadmin load --parent-dir / /var/svn<   old_repos

But, even though I had parent-dir as / (to try to eliminate one of the
/var/svn's), I still got /var/svn/var/svn/projects.

What is the way to do this?

TIA,
Allen




Fwd: Repository Directory Tree

2010-09-06 Thread Allen Williams
I send this email out about once a month or so in what is becoming the 
vain hope I'll get a response...


My subversion repository is in /var/svn. Somehow (and, yes, I'm new; I'm 
evaluating it), I've wound up with the following directory structure in 
my subversion repository:


/var/svn/
var/svn/proj1
var/svn/proj2
var/svn/proj3.

In other words, to do a list of the repositories, I have to do:

svn listfile:///var/svn/var/svn

to get my projects listed.

I've tried to do an svnadmin dump and load with --parent-dir, and that
didn't work. This was the command line sequence after I had made a copy
of the repository in /var/svn.sav:

svnadmin dump /var/svn.sav> old_repos
rm -r/var/svn/*
svnadmin create /var/svn
svnadmin load --parent-dir / /var/svn< old_repos

But, even though I had parent-dir as / (to try to eliminate one of the
/var/svn's), I still got /var/svn/var/svn/projects.

What is the way to do this?

TIA,
Allen






RE: Repository Directory Tree

2010-09-07 Thread Allen Williams
I *think* that proj1/2/3 are separate projects inside one repository, but
none of those distinctions were very clear to me (I DID read the manual,
cover to cover).  I certainly understand the concept of the equivalence
between a directory and project (I think), but, to me, anyway, it's not
clear the distinction between a repository and further directory structure.

But now my memory returns: I only created ONE repository, so all those are
projects under that repository.

Thanks for the response!

Allen

-Original Message-
From: Giulio Troccoli [mailto:giulio.trocc...@uk.linedata.com] 
Sent: Monday, September 06, 2010 10:39 AM
To: anw-d...@infoisland.net; users@subversion.apache.org
Subject: RE: Repository Directory Tree







Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03





From: Allen Williams [mailto:a...@csunv.com]
Sent: 06 September 2010 15:28
To: users@subversion.apache.org
Subject: Fwd: Repository Directory Tree


I send this email out about once a month or so in what is becoming
the vain hope I'll get a response...

My subversion repository is in /var/svn. Somehow (and, yes, I'm new;
I'm evaluating it), I've wound up with the following directory structure in
my subversion repository:

/var/svn/
var/svn/proj1
var/svn/proj2
var/svn/proj3.

In other words, to do a list of the repositories, I have to do:

svn listfile:///var/svn/var/svn

to get my projects listed.

I've tried to do an svnadmin dump and load with --parent-dir, and
that
didn't work. This was the command line sequence after I had made a
copy
of the repository in /var/svn.sav:

svnadmin dump /var/svn.sav> old_repos
rm -r/var/svn/*
svnadmin create /var/svn
svnadmin load --parent-dir / /var/svn< old_repos

But, even though I had parent-dir as / (to try to eliminate one of
the
/var/svn's), I still got /var/svn/var/svn/projects.

What is the way to do this?

TIA,
Allen






Is /var/svn one repository and proj1/2/3 directories inside it? or are
proj1/2/3 three separate repositories? How did you create you repository or
repositories?



RE: Repository Directory Tree

2010-09-09 Thread Allen Williams
Giulio-

Thanks for the help and the idea.  I'm traveling right now (hence my
intermittent follow-up on this), but will try it ASAP.  Seems like a good
idea; I will post results one way or another.

Thanks again!!

Also, I'll be going through the rest of the follow-up emails on this, too.
Thanks to all who responded for the help.

Regards,
Allen


-Original Message-
From: Giulio Troccoli [mailto:giulio.trocc...@uk.linedata.com] 
Sent: Tuesday, September 07, 2010 8:20 AM
To: anw-d...@infoisland.net; users@subversion.apache.org
Subject: RE: Repository Directory Tree



>


Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03

-Original Message-----


> From: Allen Williams [mailto:alad...@csunv.com]
> Sent: 07 September 2010 12:24
> To: users@subversion.apache.org
> Subject: RE: Repository Directory Tree
>
> I *think* that proj1/2/3 are separate projects inside one
> repository, but none of those distinctions were very clear to
> me (I DID read the manual, cover to cover).  I certainly
> understand the concept of the equivalence between a directory
> and project (I think), but, to me, anyway, it's not clear the
> distinction between a repository and further directory structure.
>
> But now my memory returns: I only created ONE repository, so
> all those are projects under that repository.
>

So /var/svn is a repository, created with svnadmin create /var/svn. The
project where imported as var/svn/proj1, var/svn/proj2 and var/svn/proj3. So
your projects do live in the var/svn directory in your repository (note
there is no / at the beginning so I'm referring to the repository but a
directory inside your repository).

I would do the following (presuming you're on unix or linux)

- check out the whole thing (it might be too big but maybe not)
 svn checkout file:///var/svn ~/tmp
This will create a new directory called tmp in your home directory whit the
whole of your repository. Insinde ~/tmp you will have var/svn/proj1,
var/svn/proj2 and var/svn/proj3.

- move the projects to the root of your repository
 cd ~/tmp
 svn move var/svn/proj1 proj1
 svn move var/svn/proj2 proj2
 svn move var/svn/proj3 proj3
Since you have used svn command the history will be preserved.

- commit
 svn commit -m"Reorganising the projects"

Done. Now to see a list of your projects 'svn list file:///var/svn' will be
enough.

Giulio