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

Re: cvs merge from uncommited working copy

From: Max Kirillov <max630_at_mail.ru>
Date: 2006-05-18 03:57:00 CEST

On Wed, May 17, 2006 at 03:26:41PM +0200, Ryan Schmidt wrote:
> On May 17, 2006, at 12:49, Max Kirillov wrote:
>>Is there any possibility to transfer uncommited changes
>>from one working copy to another? Maybe, there is some
>>additional tool doing this?
>
> I don't think so. The merge strategy is that you're
> merging a changeset -- a revision, or set of revisions --
> meaning that revision must exist in the repository (must
> already be committed) to be able to merge it.

It's rather strange - other commands like diff do not make
differences between WC and repositories. I'm sure svn can
get all the needed change information from the working copy.
At least our local svn apologists were surpised it can't do
the merge.

Was the "must be committed" requirement caused by a
political choice, or it is really dictated by design?

> If you insist on doing it your way, you could probably
> make a complete filesystem copy of your working copy of
> the one branch, "svn switch" it to the second branch, use
> this to replace the directory where you originally had
> the second branch in your big working copy, and commit
> the whole thing in one revision. But that seems a bit
> complicated.

Yes, and it cannot treat several files or subdirectories
instead of the whole tree.

I would rather transfer the needed changes by a script -
this does not look very hard to do.

-- 
Max
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 18 04:01:27 2006

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.