RE: Repository Directory Tree

2010-09-12 Thread Aladdin
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.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





RE: Repository Directory Tree

2010-09-12 Thread Aladdin
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:alad...@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.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
> 
> 





RE: Repository Directory Tree

2010-09-13 Thread Aladdin


> -Original Message-
> From: Giulio Troccoli [mailto:giulio.trocc...@uk.linedata.com]
> Sent: Monday, September 13, 2010 3:52 AM
> To: anw-d...@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:alad...@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:alad...@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