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

Re: Promote (Not Merge) Branch to Trunk

From: Jamie Jackson <myspamb8_at_gmail.com>
Date: 2007-06-28 17:32:31 CEST

Yes, let's say that the code bases are entirely different. The only way I
know to do it is in two commits (unless I check out the whole tree, delete
the trunk with a client, move the branch to the trunk with a client, then
commit).

So... I guess the heart of my question is: Is it possible, in a
straightforward manner, to effectively *replace* one directory with another
in a single commit?

Hmm, maybe it doesn't even make sense to do this sort of thing. Now that I
think about it, I don't know why I'd want it to suddenly jump from one code
base to another, as it doesn't make sense to link any of the files to past
versions.

...Oh, I guess the reason is that it would violate my "rule" about not
having broken code (in this case, an entirely missing application, albeit
for a single revision) in the trunk.

Thanks,
Jamie

On 6/28/07, Noah Spurrier wrote:
>
> If the code bases are entirely different then you probably don't
> care about the old history, so simply delete the old directory
> svn del ./trunk/foo
> then rename the new one to the old name
> svn mv ./branch/foo_new ./trunk/foo
> Were you looking for something more than that?
>
> Yours,
> Noah
>
> On 2007-06-28 07:39-0400, Jamie Jackson wrote:
> > Is there a way to promote a branch to the trunk in one commit? We do not
> > care to merge, as the code base is entirely different.
> >
> > Thanks,
> > Jamie
>
Received on Thu Jun 28 17:32:45 2007

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.