[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 12:08:03 -0400

Since you're on windows I really suggest installing tortoiseSVN... open your repository with the repo browser and you can drag and drop folder/files around in your repo just like you can your file system in Explorer.

BOb

> -----Original Message-----
> From: Steve Kelley [mailto:skelley_at_sciend.com]
> Sent: Wednesday, April 28, 2010 12:05 PM
> To: Bob Archer
> Cc: Ryan Schmidt; users_at_subversion.apache.org
> Subject: Re: Rearranging archive
>
> Still no go.
>
> D:\archive>svn mkdir file:///d:/archive/crbuild/trunk -m"Create trunk
> directory"
>
> Committed revision 45.
>
> D:\archive>svn mv file:///d:/archive/crbuild/*
> file:///d:/archive/crbuild/trunk
> svn: Path 'file:///d:/archive/crbuild/*' does not exist in revision 45
>
>
> Bob Archer wrote:
> >> 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
> >
> > BOb
> >
> >
> > ------------------------------------------------------------------------
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG - www.avg.com
> > Version: 9.0.814 / Virus Database: 271.1.1/2840 - Release Date: 04/28/10
> 02:27:00
> >
> >
>
> --
> Steve Kelley
> 106 Oklahoma Ave.
> Oak Ridge, TN 37830
> 865 482 7131
Received on 2010-04-28 18:06:56 CEST

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