Re: cg-update with local uncommitted changes

From: Petr Baudis <>
Date: 2005-06-01 01:58:25
Dear diary, on Tue, May 31, 2005 at 12:31:28AM CEST, I got a letter
where Dan Holmsand <> told me that...
> Marcel Holtmann wrote:
> >I also think that it would be great if we cancel the merge if the local
> >changes conflict with the files in the merge. This is how Bitkeeper does
> >it and I think it is the only safe way, because if something fails or
> >rejects we may destroy the local changes.
> I definitely agree (been bitten by patching gone wild a couple of times...).
> This patch would make cg-merge and cg-admin-uncommit refuse to do 
> anything if there are conflicting uncommitted changes. Note: this only 
> applies to fast-forward merging, as cg-merge otherwise bails out if 
> there are *any* uncommitted changes (which is perhaps going to far).

Well, non-fast-forward cg-merge will do cg-commit and it would blend the
unrelated previously uncommitted changes into that, which is not what
you want.

> [PATCH] Make tree_timewarp safe, by refusing to handle conflicts.
> Signed-off-by: Dan Holmsand <>

I don't really think this makes any sense. What do you then do when you
want to do some merging of the local uncommitted changes and upstream

How have you been bitten, and how could we destroy the local changes?
You get rejects and patch will be pretty vocal about it, so then you
just go and resolve them. The correct direction is to make it do a
three-way merge, not make it do no merge at all.

				Petr "Pasky" Baudis
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at
Received on Wed Jun 01 01:59:02 2005

This archive was generated by hypermail 2.1.8 : 2005-06-01 01:59:03 EST