You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Allen Williams <an...@csunv.com> on 2010/09/06 14:27:46 UTC
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
RE: Repository Directory Tree
Posted by Allen Williams <al...@csunv.com>.
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.Troccoli@uk.linedata.com]
Sent: Tuesday, September 07, 2010 8:20 AM
To: anw-dist@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:aladdin@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
RE: [SOLVED] Repository Directory Tree
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
> It sounds like good advice. At least for the first few, I
> will check them out in an empty directory and compare them,
> then clear out the old directory and check them out into the
> one I really want to use.
Once you have compared the two trees, you don't need to check out again. Simply delete the old tree and renamed the new one. Each working copy is self-contained and can be copied, renamed or moved.
Linedata Limited
Registered Office: 85 Gracechurch St., London, EC3V 0AA
Registered in England and Wales No 3475006 VAT Reg No 710 3140 03
RE:[SOLVED] Repository Directory Tree
Posted by "Williams, Allen" <aw...@harris.com>.
-----Original Message-----
From: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com]
Sent: Mon 9/13/2010 12:33 PM
To: anw-dist@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: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com]
> > Sent: Monday, September 13, 2010 3:52 AM
> > To: anw-dist@infoisland.net; users@subversion.apache.org
> > Subject: RE: Repository Directory Tree
> >
> > Please don't top post. On this ML the net-etiquette requires you to
> > post your reply at the bottom
> > >
> >
> >
> > 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: Aladdin [mailto:aladdin@csunv.com]
> > > Sent: 12 September 2010 19:56
> > > To: users@subversion.apache.org
> > > Subject: RE: Repository Directory Tree
> > >
> > > Oops! Sorry- should ALWAYS RTFM!! I used " svn up NetDataSvc
> > > --force", and it *seemed* to work!
> > >
> > > Is this what I should have done, and now will need to do for each
> > > project I check out for the first time after doing this?
> > >
> > > Regards,
> > > Allen
> > >
> > > > -----Original Message-----
> > > > From: Aladdin [mailto:aladdin@csunv.com]
> > > > Sent: Sunday, September 12, 2010 2:48 PM
> > > > To: 'Giulio Troccoli'; users@subversion.apache.org
> > > > Subject: RE: Repository Directory Tree
> > > >
> > > > Giulio,
> > > >
> > > > That seemed to work well, except now when I try to checkout
> > > one of my
> > > > projects, I get this:
> > > >
> > > > anw-dev:/home/anw/TechProjects# svn co
> file:///var/svn/NetDataSvc .
> > > > svn: Failed to add directory 'NotUsed': an unversioned
> directory
> > > > of the same name already exists
> > > >
> > > > "NotUsed" contains, as the name implies, a couple of C++
> > > and .h source
> > > > files that I'm not currently using but wanted to hang on
> > > to. It is a
> > > > subdirectory under NetDataSvc.
> >
> > From the error message I guess /home/anw/TechProjects was not empty
> > when you tried the checkout. Using the --force option you have
> > overwritten the content of /home/anw/TechProjects/NotUsed with
> > whatever it was in the repository (it should have left
> untouched all
> > those files that are not in the repository).
> >
> > I don't know whether that was what you should have done. Maybe, or
> > maybe not. Only you can be the judge of that, because you know what
> > was in that directory before you check your working copy
> out. As per
> > having to do use --force every time, I wouldn't think so. I
> mean, you
> > would need to make a judgement call if you already have a NotUsed
> > directory, but if you do everytime, I would question why you do. I
> > personally would check out a fresh new working copy in a non, yet,
> > existing directory.
> >
> > G
>
> Sorry about the top post. I'm also active on another mailing
> list regarding dovecot where you are *supposed* to top post.
> Again maybe I should have RTFM'd!
It's ok :-) Now you know
> OK- I think I understand. What the directory had in it was a
> copy of what I put into the repository; I hadn't made any
> changes since it went it went in, so it should be fine. All
> other directories similarly; so, if I understand correctly,
> if I delete them all first or just use --force to check them
> out, it should be the same.
> I'm not 100%. As I said I'm a bit uncomfortable in using the --force option. I'd rather check > out in a new directory.
>
> G
It sounds like good advice. At least for the first few, I will check them out in an empty directory and compare them, then clear out the old directory and check them out into the one I really want to use.
Thanks for all the help!!
Allen
RE: Repository Directory Tree
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
> >
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: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com]
> > Sent: Monday, September 13, 2010 3:52 AM
> > To: anw-dist@infoisland.net; users@subversion.apache.org
> > Subject: RE: Repository Directory Tree
> >
> > Please don't top post. On this ML the net-etiquette requires you to
> > post your reply at the bottom
> > >
> >
> >
> > 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: Aladdin [mailto:aladdin@csunv.com]
> > > Sent: 12 September 2010 19:56
> > > To: users@subversion.apache.org
> > > Subject: RE: Repository Directory Tree
> > >
> > > Oops! Sorry- should ALWAYS RTFM!! I used " svn up NetDataSvc
> > > --force", and it *seemed* to work!
> > >
> > > Is this what I should have done, and now will need to do for each
> > > project I check out for the first time after doing this?
> > >
> > > Regards,
> > > Allen
> > >
> > > > -----Original Message-----
> > > > From: Aladdin [mailto:aladdin@csunv.com]
> > > > Sent: Sunday, September 12, 2010 2:48 PM
> > > > To: 'Giulio Troccoli'; users@subversion.apache.org
> > > > Subject: RE: Repository Directory Tree
> > > >
> > > > Giulio,
> > > >
> > > > That seemed to work well, except now when I try to checkout
> > > one of my
> > > > projects, I get this:
> > > >
> > > > anw-dev:/home/anw/TechProjects# svn co
> file:///var/svn/NetDataSvc .
> > > > svn: Failed to add directory 'NotUsed': an unversioned
> directory
> > > > of the same name already exists
> > > >
> > > > "NotUsed" contains, as the name implies, a couple of C++
> > > and .h source
> > > > files that I'm not currently using but wanted to hang on
> > > to. It is a
> > > > subdirectory under NetDataSvc.
> >
> > From the error message I guess /home/anw/TechProjects was not empty
> > when you tried the checkout. Using the --force option you have
> > overwritten the content of /home/anw/TechProjects/NotUsed with
> > whatever it was in the repository (it should have left
> untouched all
> > those files that are not in the repository).
> >
> > I don't know whether that was what you should have done. Maybe, or
> > maybe not. Only you can be the judge of that, because you know what
> > was in that directory before you check your working copy
> out. As per
> > having to do use --force every time, I wouldn't think so. I
> mean, you
> > would need to make a judgement call if you already have a NotUsed
> > directory, but if you do everytime, I would question why you do. I
> > personally would check out a fresh new working copy in a non, yet,
> > existing directory.
> >
> > G
>
> Sorry about the top post. I'm also active on another mailing
> list regarding dovecot where you are *supposed* to top post.
> Again maybe I should have RTFM'd!
It's ok :-) Now you know
> OK- I think I understand. What the directory had in it was a
> copy of what I put into the repository; I hadn't made any
> changes since it went it went in, so it should be fine. All
> other directories similarly; so, if I understand correctly,
> if I delete them all first or just use --force to check them
> out, it should be the same.
I'm not 100%. As I said I'm a bit uncomfortable in using the --force option. I'd rather check out in a new directory.
G
RE: Repository Directory Tree
Posted by Aladdin <al...@csunv.com>.
> -----Original Message-----
> From: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com]
> Sent: Monday, September 13, 2010 3:52 AM
> To: anw-dist@infoisland.net; users@subversion.apache.org
> Subject: RE: Repository Directory Tree
>
> Please don't top post. On this ML the net-etiquette requires you to
> post your reply at the bottom
> >
>
>
> 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: Aladdin [mailto:aladdin@csunv.com]
> > Sent: 12 September 2010 19:56
> > To: users@subversion.apache.org
> > Subject: RE: Repository Directory Tree
> >
> > Oops! Sorry- should ALWAYS RTFM!! I used " svn up
> > NetDataSvc --force", and it *seemed* to work!
> >
> > Is this what I should have done, and now will need to do for
> > each project I check out for the first time after doing this?
> >
> > Regards,
> > Allen
> >
> > > -----Original Message-----
> > > From: Aladdin [mailto:aladdin@csunv.com]
> > > Sent: Sunday, September 12, 2010 2:48 PM
> > > To: 'Giulio Troccoli'; users@subversion.apache.org
> > > Subject: RE: Repository Directory Tree
> > >
> > > Giulio,
> > >
> > > That seemed to work well, except now when I try to checkout
> > one of my
> > > projects, I get this:
> > >
> > > anw-dev:/home/anw/TechProjects# svn co file:///var/svn/NetDataSvc .
> > > svn: Failed to add directory 'NotUsed': an unversioned directory of
> > > the same name already exists
> > >
> > > "NotUsed" contains, as the name implies, a couple of C++
> > and .h source
> > > files that I'm not currently using but wanted to hang on
> > to. It is a
> > > subdirectory under NetDataSvc.
>
> From the error message I guess /home/anw/TechProjects was not empty
> when you tried the checkout. Using the --force option you have
> overwritten the content of /home/anw/TechProjects/NotUsed with whatever
> it was in the repository (it should have left untouched all those files
> that are not in the repository).
>
> I don't know whether that was what you should have done. Maybe, or
> maybe not. Only you can be the judge of that, because you know what was
> in that directory before you check your working copy out. As per having
> to do use --force every time, I wouldn't think so. I mean, you would
> need to make a judgement call if you already have a NotUsed directory,
> but if you do everytime, I would question why you do. I personally
> would check out a fresh new working copy in a non, yet, existing
> directory.
>
> G
Sorry about the top post. I'm also active on another mailing list regarding
dovecot where you are *supposed* to top post. Again maybe I should have
RTFM'd!
OK- I think I understand. What the directory had in it was a copy of what I
put into the repository; I hadn't made any changes since it went it went in,
so it should be fine. All other directories similarly; so, if I understand
correctly, if I delete them all first or just use --force to check them out,
it should be the same.
Thanks a bunch-
Allen
RE: Repository Directory Tree
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
Please don't top post. On this ML the net-etiquette requires you to post your reply at the bottom
>
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: Aladdin [mailto:aladdin@csunv.com]
> Sent: 12 September 2010 19:56
> To: users@subversion.apache.org
> Subject: RE: Repository Directory Tree
>
> Oops! Sorry- should ALWAYS RTFM!! I used " svn up
> NetDataSvc --force", and it *seemed* to work!
>
> Is this what I should have done, and now will need to do for
> each project I check out for the first time after doing this?
>
> Regards,
> Allen
>
> > -----Original Message-----
> > From: Aladdin [mailto:aladdin@csunv.com]
> > Sent: Sunday, September 12, 2010 2:48 PM
> > To: 'Giulio Troccoli'; users@subversion.apache.org
> > Subject: RE: Repository Directory Tree
> >
> > Giulio,
> >
> > That seemed to work well, except now when I try to checkout
> one of my
> > projects, I get this:
> >
> > anw-dev:/home/anw/TechProjects# svn co file:///var/svn/NetDataSvc .
> > svn: Failed to add directory 'NotUsed': an unversioned directory of
> > the same name already exists
> >
> > "NotUsed" contains, as the name implies, a couple of C++
> and .h source
> > files that I'm not currently using but wanted to hang on
> to. It is a
> > subdirectory under NetDataSvc.
RE: Repository Directory Tree
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
Please don't top post. On this ML the net-etiquette requires you to post your reply at the bottom
>
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: Aladdin [mailto:aladdin@csunv.com]
> Sent: 12 September 2010 19:56
> To: users@subversion.apache.org
> Subject: RE: Repository Directory Tree
>
> Oops! Sorry- should ALWAYS RTFM!! I used " svn up
> NetDataSvc --force", and it *seemed* to work!
>
> Is this what I should have done, and now will need to do for
> each project I check out for the first time after doing this?
>
> Regards,
> Allen
>
> > -----Original Message-----
> > From: Aladdin [mailto:aladdin@csunv.com]
> > Sent: Sunday, September 12, 2010 2:48 PM
> > To: 'Giulio Troccoli'; users@subversion.apache.org
> > Subject: RE: Repository Directory Tree
> >
> > Giulio,
> >
> > That seemed to work well, except now when I try to checkout
> one of my
> > projects, I get this:
> >
> > anw-dev:/home/anw/TechProjects# svn co file:///var/svn/NetDataSvc .
> > svn: Failed to add directory 'NotUsed': an unversioned directory of
> > the same name already exists
> >
> > "NotUsed" contains, as the name implies, a couple of C++
> and .h source
> > files that I'm not currently using but wanted to hang on
> to. It is a
> > subdirectory under NetDataSvc.
>From the error message I guess /home/anw/TechProjects was not empty when you tried the checkout. Using the --force option you have overwritten the content of /home/anw/TechProjects/NotUsed with whatever it was in the repository (it should have left untouched all those files that are not in the repository).
I don't know whether that was what you should have done. Maybe, or maybe not. Only you can be the judge of that, because you know what was in that directory before you check your working copy out. As per having to do use --force every time, I wouldn't think so. I mean, you would need to make a judgement call if you already have a NotUsed directory, but if you do everytime, I would question why you do. I personally would check out a fresh new working copy in a non, yet, existing directory.
G
RE: Repository Directory Tree
Posted by Aladdin <al...@csunv.com>.
Oops! Sorry- should ALWAYS RTFM!! I used " svn up NetDataSvc --force", and
it *seemed* to work!
Is this what I should have done, and now will need to do for each project I
check out for the first time after doing this?
Regards,
Allen
> -----Original Message-----
> From: Aladdin [mailto:aladdin@csunv.com]
> Sent: Sunday, September 12, 2010 2:48 PM
> To: 'Giulio Troccoli'; users@subversion.apache.org
> Subject: RE: Repository Directory Tree
>
> Giulio,
>
> That seemed to work well, except now when I try to checkout one of my
> projects, I get this:
>
> anw-dev:/home/anw/TechProjects# svn co file:///var/svn/NetDataSvc .
> svn: Failed to add directory 'NotUsed': an unversioned directory of the
> same
> name already exists
>
> "NotUsed" contains, as the name implies, a couple of C++ and .h source
> files
> that I'm not currently using but wanted to hang on to. It is a
> subdirectory
> under NetDataSvc.
>
> > -----Original Message-----
> > From: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com]
> > Sent: Tuesday, September 07, 2010 8:20 AM
> > To: anw-dist@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:aladdin@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
>
>
RE: Repository Directory Tree
Posted by Aladdin <al...@csunv.com>.
Giulio,
That seemed to work well, except now when I try to checkout one of my
projects, I get this:
anw-dev:/home/anw/TechProjects# svn co file:///var/svn/NetDataSvc .
svn: Failed to add directory 'NotUsed': an unversioned directory of the same
name already exists
"NotUsed" contains, as the name implies, a couple of C++ and .h source files
that I'm not currently using but wanted to hang on to. It is a subdirectory
under NetDataSvc.
> -----Original Message-----
> From: Giulio Troccoli [mailto:Giulio.Troccoli@uk.linedata.com]
> Sent: Tuesday, September 07, 2010 8:20 AM
> To: anw-dist@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:aladdin@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
Re: Repository Directory Tree
Posted by Lorenz <lo...@yahoo.com>.
Nico Kadel-Garcia wrote:
>On Fri, Sep 10, 2010 at 5:57 PM, Nico Kadel-Garcia <nk...@gmail.com> wrote:
>> On Fri, Sep 10, 2010 at 1:42 AM, Lorenz <lo...@yahoo.com> wrote:
>>[...]
>>> if you don't want to check-out the whole repository, and are working
>>> from the command line anyway, you can use svnmucc to do the
>>> restructuring in one commit without a working copy.
>>>
>>> svnmucc mv url1 url2 mv url3 url4 ...
>>> --
>>
>What's wrong with this syntax to do the move without a checkout?
>
> svn move [URLOFREPO]/var/svn/proj1 [URLOFREPO/proj1
nothing, just pointing out that it possible do to the rearrangement
without a WC directly in the repo in one revision.
For complicated rearrangements I would prefere the WC method myself,
because I can revert/redo as long as I want until I'm satisfied -
before commiting.
--
Lorenz
RE: Repository Directory Tree
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
>
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: Nico Kadel-Garcia [mailto:nkadel@gmail.com]
> Sent: 10 September 2010 23:01
> To: Lorenz
> Cc: users@subversion.apache.org
> Subject: Re: Repository Directory Tree
>
> On Fri, Sep 10, 2010 at 5:57 PM, Nico Kadel-Garcia
> <nk...@gmail.com> wrote:
> > On Fri, Sep 10, 2010 at 1:42 AM, Lorenz <lo...@yahoo.com> wrote:
> >> Giulio Troccoli wrote:
> >>>[...]
> >>>- 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"
> >>
> >> if you don't want to check-out the whole repository, and
> are working
> >> from the command line anyway, you can use svnmucc to do the
> >> restructuring in one commit without a working copy.
> >>
> >> svnmucc mv url1 url2 mv url3 url4 ...
> >> --
> >
> > What, exactly, is wrong with:
> >
>
> Gahh, web interface messed with my use of tabs in typing:
>
> What's wrong with this syntax to do the move without a checkout?
>
> svn move [URLOFREPO]/var/svn/proj1 [URLOFREPO/proj1
Nothing at all. I personally prefer to do all my restructuring in a working copy and commit once I'm happy, that's why I suggested that way.
G
RE: Repository Directory Tree
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
>
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: Nico Kadel-Garcia [mailto:nkadel@gmail.com]
> Sent: 10 September 2010 23:01
> To: Lorenz
> Cc: users@subversion.apache.org
> Subject: Re: Repository Directory Tree
>
> On Fri, Sep 10, 2010 at 5:57 PM, Nico Kadel-Garcia
> <nk...@gmail.com> wrote:
> > On Fri, Sep 10, 2010 at 1:42 AM, Lorenz <lo...@yahoo.com> wrote:
> >> Giulio Troccoli wrote:
> >>>[...]
> >>>- 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"
> >>
> >> if you don't want to check-out the whole repository, and
> are working
> >> from the command line anyway, you can use svnmucc to do the
> >> restructuring in one commit without a working copy.
> >>
> >> svnmucc mv url1 url2 mv url3 url4 ...
> >> --
> >
> > What, exactly, is wrong with:
> >
>
> Gahh, web interface messed with my use of tabs in typing:
>
> What's wrong with this syntax to do the move without a checkout?
>
> svn move [URLOFREPO]/var/svn/proj1 [URLOFREPO/proj1
Nothing at all. I personally prefer to do all my restructuring in a working copy and commit once I'm happy, that's why I suggested that way.
G
Re: Repository Directory Tree
Posted by Lorenz <lo...@yahoo.com>.
Nico Kadel-Garcia wrote:
>On Fri, Sep 10, 2010 at 5:57 PM, Nico Kadel-Garcia <nk...@gmail.com> wrote:
>> On Fri, Sep 10, 2010 at 1:42 AM, Lorenz <lo...@yahoo.com> wrote:
>>[...]
>>> if you don't want to check-out the whole repository, and are working
>>> from the command line anyway, you can use svnmucc to do the
>>> restructuring in one commit without a working copy.
>>>
>>> svnmucc mv url1 url2 mv url3 url4 ...
>>> --
>>
>What's wrong with this syntax to do the move without a checkout?
>
> svn move [URLOFREPO]/var/svn/proj1 [URLOFREPO/proj1
nothing, just pointing out that it possible do to the rearrangement
without a WC directly in the repo in one revision.
For complicated rearrangements I would prefere the WC method myself,
because I can revert/redo as long as I want until I'm satisfied -
before commiting.
--
Lorenz
Re: Repository Directory Tree
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Fri, Sep 10, 2010 at 5:57 PM, Nico Kadel-Garcia <nk...@gmail.com> wrote:
> On Fri, Sep 10, 2010 at 1:42 AM, Lorenz <lo...@yahoo.com> wrote:
>> Giulio Troccoli wrote:
>>>[...]
>>>- 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"
>>
>> if you don't want to check-out the whole repository, and are working
>> from the command line anyway, you can use svnmucc to do the
>> restructuring in one commit without a working copy.
>>
>> svnmucc mv url1 url2 mv url3 url4 ...
>> --
>
> What, exactly, is wrong with:
>
Gahh, web interface messed with my use of tabs in typing:
What's wrong with this syntax to do the move without a checkout?
svn move [URLOFREPO]/var/svn/proj1 [URLOFREPO/proj1
Re: Repository Directory Tree
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Fri, Sep 10, 2010 at 1:42 AM, Lorenz <lo...@yahoo.com> wrote:
> Giulio Troccoli wrote:
>>[...]
>>- 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"
>
> if you don't want to check-out the whole repository, and are working
> from the command line anyway, you can use svnmucc to do the
> restructuring in one commit without a working copy.
>
> svnmucc mv url1 url2 mv url3 url4 ...
> --
What, exactly, is wrong with:
Re: Repository Directory Tree
Posted by Lorenz <lo...@yahoo.com>.
Giulio Troccoli wrote:
>[...]
>- 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"
if you don't want to check-out the whole repository, and are working
from the command line anyway, you can use svnmucc to do the
restructuring in one commit without a working copy.
svnmucc mv url1 url2 mv url3 url4 ...
--
Lorenz
RE: Repository Directory Tree
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
>
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:aladdin@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
RE: Repository Directory Tree
Posted by Allen Williams <al...@csunv.com>.
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.Troccoli@uk.linedata.com]
Sent: Monday, September 06, 2010 10:39 AM
To: anw-dist@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:anw@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
Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
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:anw@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: Fwd: Repository Directory Tree
Posted by Nico Kadel-Garcia <nk...@gmail.com>.
On Mon, Sep 6, 2010 at 10:47 AM, Stefan Sperling <st...@elego.de> wrote:
> On Mon, Sep 06, 2010 at 10:27:46AM -0400, Allen Williams wrote:
>> 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.
Whare are the "db" subdirectories? Do you have 3 different working
repositories, one at /var/svn/proj1, another at /var/svn/proj2,
another at /var/svn/proj3?
Remember, whatever the location of your Subversion repository, it's
just a location of a database, one that can be located with a URL used
by clients. It's name is actually arbitrary: it's association with a
particular, and with branches and tags and a trunk under it, is
entirely by convention. Any association with a particular project or
set of projects is by your convention, it is not hardcoded anywhere
except in your client configurations, that can be updated and altered
with the "svn switch" command.
>> In other words, to do a list of the repositories, I have to do:
>
> Here you say "repositories"
>
>>
>> svn listfile:///var/svn/var/svn
>>
>> to get my projects listed.
>
> ... and here you say "projects". What do you really mean?
>
> svn list does not give you a list of repositories.
> It gives you a list of folders inside of *a* repostitory.
> So it looks like there is only one repository here, directly in /var/svn.
> Inside of that repository, you have a versioned directory also called var/svn.
> And inside there you have your proj1, proj2, and proj3 folders.
That's how I'd interpret it. The switch of syntax from "/var/svn/" to
the syntax of "var/svn/proj1" is very confusing. Does our friendly
original poster mean that inside of his repo at file:///var/svn/, he
has subdirectories for his pojects called var/svn/proj1,
var/svn/proj2, var/svn/proj3, or something else equally outre?
>> 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
And this is just..... oddness. That "rm -r/svn/* obviously would not
work, due to the missing space between the "-r" and its targets.
>> 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.
Ohh, deaar. OK, you've devinitely got subdirectories in your
repository at var/svn/project1, var/svn/projects, etc.
>>
>> What is the way to do this?
>
> You want to remove the leading /var/svn components from all paths
> in the dump file. See here:
> http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering
> The part that starts with:
> "At this point, you have to make a decision.
> Each of your dump files will create a valid repository, but will
> preserve the paths exactly as they were in the original repository."
> is the interesting part you should read especially carefully.
Yeah..... I think you've got it. Unfortunately, this can create
serious historical preservation issues if code has started out in
"higher level" directories and been migrated around.
Allen? How bad would it be to simply move aside /var/svn/, export its
contents, and create a clean new repository with the structure you
want? I've often found it far simpler to set a cut-off date, notify
users of the rebuild, and switch to a clean new layout with a clean
new repo. It creates issues for people with un-integrated local
changes, but it can be a lot simpler than getting cute with dumping
and re-arranging components. A simple "README.txt" at the top of the
repository, and setting it to read-only mode in an "archive" location,
can be your savior here.
RE: Fwd: Repository Directory Tree
Posted by Jon Foster <Jo...@cabot.co.uk>.
Stefan Sperling wrote:
> On Mon, Sep 06, 2010 at 10:27:46AM -0400, Allen Williams wrote:
> > 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.
> >
[snip]
> >
> > 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?
>
> You want to remove the leading /var/svn components from all paths
> in the dump file. See here:
> http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html
> #svn.reposadmin.maint.filtering
> The part that starts with:
> "At this point, you have to make a decision.
> Each of your dump files will create a valid repository, but will
> preserve the paths exactly as they were in the original repository."
> is the interesting part you should read especially carefully.
>
> Stefan
I'm wondering if svndumptool could do this automatically. (Maybe
'svndumptool merge -o out.dump -i in.dump -r var/svn/proj1 proj1' ?)
But I haven't tried it. See:
http://svn.borg.ch/svndumptool/
Kind regards,
Jon
**********************************************************************
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Cabot Communications Ltd.
If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.
Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232
Co. Registered in England number 02817269
Please contact the sender if you believe you have received this email in error.
**********************************************************************
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Re: Fwd: Repository Directory Tree
Posted by Stefan Sperling <st...@elego.de>.
On Mon, Sep 06, 2010 at 10:27:46AM -0400, Allen Williams wrote:
> 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:
Here you say "repositories"
>
> svn listfile:///var/svn/var/svn
>
> to get my projects listed.
... and here you say "projects". What do you really mean?
svn list does not give you a list of repositories.
It gives you a list of folders inside of *a* repostitory.
So it looks like there is only one repository here, directly in /var/svn.
Inside of that repository, you have a versioned directory also called var/svn.
And inside there you have your proj1, proj2, and proj3 folders.
>
> 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?
You want to remove the leading /var/svn components from all paths
in the dump file. See here:
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.maint.html#svn.reposadmin.maint.filtering
The part that starts with:
"At this point, you have to make a decision.
Each of your dump files will create a valid repository, but will
preserve the paths exactly as they were in the original repository."
is the interesting part you should read especially carefully.
Stefan