Re: Repository Directory Tree
On Jul 30, 2010, at 11:14, Allen Williams wrote: > 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? svnadmin load --parent-dir lets you add a parent directory into which the contents of the dump will be imported. It does not let you strip out leading directories from the dump. I would just use "svn mv" to move proj1 thru 3 up two levels, then "svn rm" to remove the unwanted var. Alternately, if you insist on purging all record of this mistake from the repository's history, you can fiddle with something like svndumptool.
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
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
> 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
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
Re: Repository Directory Tree
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
On Fri, Sep 10, 2010 at 1:42 AM, Lorenz 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
On Fri, Sep 10, 2010 at 5:57 PM, Nico Kadel-Garcia wrote: > On Fri, Sep 10, 2010 at 1:42 AM, Lorenz 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
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
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
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
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: Nico Kadel-Garcia [mailto:nka...@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 > wrote: > > On Fri, Sep 10, 2010 at 1:42 AM, Lorenz 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
Nico Kadel-Garcia wrote: >On Fri, Sep 10, 2010 at 5:57 PM, Nico Kadel-Garcia wrote: >> On Fri, Sep 10, 2010 at 1:42 AM, Lorenz 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
> -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
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.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! 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