[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Rearranging archive

From: Bob Archer <Bob.Archer_at_amsi.com>
Date: Wed, 28 Apr 2010 11:22:31 -0400

> > Bob Archer wrote:
> > >> Thanks for the response. This I can do. However, what I want is to
> get
> > >> all of the history etc. into the trunk so that it looks like the
> > >> repository was created properly to start with. The svn mkdir and mv
> > >> commands do not work in the repository itself, only in the working
> > copy.
> > >>
> > >
> > > Sure they do... check out svn help mv:
> > >
> > > SRC and DST can both be working copy (WC) paths or URLs:
> > > WC -> WC: move and schedule for addition (with history)
> > > URL -> URL: complete server-side rename.
> > > All the SRCs must be of the same type.
> > >
> > >
> > > The mv will retain all the history.
> > >
> > > If you are on windows you can use the TortoiseSVN repo browser. It
> makes
> > stuff like this very easy.
> > >
> > > BOb
> > > ----------------------------------------------------------------------
> --
> > >
> > >
> > > No virus found in this incoming message.
> > > Checked by AVG - www.avg.com
> > > Version: 9.0.814 / Virus Database: 271.1.1/2839 - Release Date:
> 04/27/10
> > 14:27:00
> > >
> > I've tried that with every combination of file://... I can think of and
> > I keep getting errors. the disk layout is:
> > drive D (Windows XP)
> > d:\archive - normal directory
> > under archive there are multiple repositories, each representing a
> > separate project.
> > I've created a new repository
> > svnadmin create d:\MyArchive
> > I created a directory tree to mirror what I want:
> > d:\temp
> > d:\temp\proj1
> > d:\temp\proj1\trunk
> > d:\temp\proj1\branches
> > d:\temp\proj1\tags
> > d:\temp\proj2
> > d:\temp\proj2\trunk
> > d:\temp\proj2\branches
> > d:\temp\proj2\tags
> > ...
> > From d:\temp I ran
> > svn import . file:///MyArchive
> > svn list file:///MyArchive shows the project files
> >
> > Now, how do I get d:\archive\proj1 into d:\MyArchive\proj1\trunk?
> > Here is what I am getting
> >
> > D:\archive>svn mv file:///archive/proj1 file:///MyArchive/proj1/trunk
> > svn: Source and dest appear not to be in the same repository (src:
> > 'file:///archive/crbuild'; dst: 'file:///MyArchive/crbuild/trunk')
> >
>
> Ok, you can't svn mv from one repo to another. Why do you want another
> repo? Just move within the same repo:
>
> D:\archive>svn mv file:///archive/proj1/* file:///archive/proj1/trunk
>

Also, I think you need to specify the drive letter to. I don't use the file: protocol so not 100% sure... something like:

D:\archive>svn mv file:///d:\archive/proj1/* file:///d:\archive/proj1/trunk

BOb
Received on 2010-04-28 17:21:27 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.