On Sep 29, 2010, at 09:12, Edward Ned Harvey wrote: >> From: Rice Yeh [mailto:rice...@gmail.com] >> >> I am trying to separate my project a-project into a-project/trunk and >> a-project/branches. First, I like to move a-project to a-project/trunk. >> But this is not allowed since trunk is inside a-project. I might first >> move a-project to tmp and then move tmp to a-project/trunk. But the tmp >> directory is created in repository and this seems not elegant. Is there >> a clean way to do this? > > First, ensure everyone has done all their commits. You're about to modify > every file, so you would cause conflicts for any un-committed changes people > may have. > > cd a-project > svn mkdir trunk > svn mv * trunk
Well, that would try to move the new trunk into trunk too, wouldn't it? I think you have to selectively "svn mv" each individual item that is not trunk into trunk. And then, as I said before, you'll have to take care of any properties you might have set on "." (svn:ignore, perhaps?), by which I mean you'd have to delete those properties on "." and set them again on "trunk". > svn commit -m 'moved to trunk' > > And then everyone does "svn update"