[Kde-scm-interest] svn move without history
Andreas Pakulat
apaku at gmx.de
Thu Mar 11 16:37:12 CET 2010
On 11.03.10 16:23:53, Torgny Nyblom wrote:
> On Thursday 11 March 2010 16.16.53 Thiago Macieira wrote:
> > Em Quinta-feira 11. Março 2010, às 06.59.24, Torgny Nyblom escreveu:
> > > On Thursday 11 March 2010 14.32.32 Andreas Pakulat wrote:
> > > > On 11.03.10 14:04:08, Torgny Nyblom wrote:
> > > > > Hi,
> > > > >
> > > > > When converting kdepim[libs] I found a problem I need to address.
> > > > >
> > > > > There is a submodule that began life in a separate branch which was
> > > > > later merged without svn history. This should be handled by manually
> > > > > specifying the branch in a rule (?), but how do I make this code end
> > > > > up in the correct subfolder?
> > > > >
> > > > > That is I have:
> > > > >
> > > > > Branch A/Submodule/files
> > > > > Trunk/
> > > > >
> > > > > Which became
> > > > >
> > > > > Trunk/Submodule/files
> > > > >
> > > > > But with the manual branch rule I get:
> > > > >
> > > > > master/files
> > > > >
> > > > > Should have gotten
> > > > >
> > > > > master/Submodule/files
> > > >
> > > > As far as I understand there's no way to _create_ history that doesn't
> > > > exist in Svn. So you cannot create a relation between master/Submodule
> > > > and brancha/submodule if it wasn't svn cp'ed, but instead was svn
> > > > add'ed. However in master's history you should see those files already
> > > > and that they were added.
> > > >
> > > > To keep the history of brancha/submodule you'll have to create a
> > > > separate repository.
> > >
> > > Ok, thanks for that.
> > >
> > > But how do I get the files (in the separate branch) into the correct
> > > subdir?
> >
> > You can't create history that doesn't exist in SVN, that includes getting
> > files into directories that they aren't in.
>
> Well I wan't to import the files into the same directory as they exit in SVN.
> But my rules add them to the root.
Are you sure? If you have a rule for the branch and trunk then you'll end
up with the files in both trunk/ and trunk/submodule.
(Thats exactly the same situation I asked about yesterday, except that in
my case a real svn mv was done).
Andreas
--
Today is the tomorrow you worried about yesterday.
More information about the Kde-scm-interest
mailing list