Re: Multi-ancestor read-tree notes

2005-09-08 Thread Fredrik Kuivinen
On Thu, Sep 08, 2005 at 12:16:05PM -0500, Darrin Thompson wrote: > On Mon, 2005-09-05 at 01:41 -0400, Daniel Barkalow wrote: > > I've got a version of read-tree which accepts multiple ancestors and does > > a merge using information from all of them. > > Do the multiple ancestors have to share a

Re: [PATCH 0/2] A new merge algorithm, take 3

2005-09-08 Thread Fredrik Kuivinen
On Thu, Sep 08, 2005 at 11:27:35AM -0400, Daniel Barkalow wrote: ... > > The two cases my algorithm merges cleanly and git-resolve-script do > > not merge cleanly are 0e396ee43e445cb7c215a98da4e76d0ce354d9d7 and > > 0c168775709faa74c1b87f1e61046e0c51ade7f3. Both of them have two common > > ancest

Re: [PATCH 0/2] A new merge algorithm, take 3

2005-09-07 Thread Fredrik Kuivinen
On Wed, Sep 07, 2005 at 02:33:42PM -0400, Daniel Barkalow wrote: > On Wed, 7 Sep 2005, Fredrik Kuivinen wrote: > > > Of the 500 merge commits that currently exists in the kernel > > repository 19 produces non-clean merges with git-merge-script. The > > four merge cas

[PATCH 2/2] A new merge algorithm

2005-09-07 Thread Fredrik Kuivinen
The new algorithm handles multiple common ancestors in a better way. Signed-off-by: Fredrik Kuivinen <[EMAIL PROTECTED]> --- Makefile |3 git-merge-script | 491 + gitMergeCommon.py | 286

[PATCH 1/2] Add '-i' flag to read-tree to make it ignore whats in the working directory.

2005-09-07 Thread Fredrik Kuivinen
This will be used by the merge code. Signed-off-by: Fredrik Kuivinen <[EMAIL PROTECTED]> --- read-tree.c | 13 +++-- 1 files changed, 11 insertions(+), 2 deletions(-) 12d226103dc278c5d5aaf6b2dc776af3170ed233 diff --git a/read-tree.c b/read-tree.c --- a/read-tree.c +++ b/read-

[PATCH 0/2] A new merge algorithm, take 3

2005-09-07 Thread Fredrik Kuivinen
Hi, Here is the new version of the merge algorithm patch. The major changes compared to the previous patch are: * No more messing around with merge-cache. git-ls-files used to get the unmerged entries instead. * The python code is now contained in two files, git-merge-script and gitMergeComm

Re: [PATCH] Make sure the diff machinery outputs "\ No newline ..." in english

2005-09-04 Thread Fredrik Kuivinen
On Sun, Sep 04, 2005 at 11:48:08AM -0700, Junio C Hamano wrote: > Fredrik Kuivinen <[EMAIL PROTECTED]> writes: > > > In non-english locales diff(1) do sometimes output "\ No newline at end of > > file" in some other language. Set LC_ALL to C before execin

Re: [PATCH] Make git-apply understand "\ No newline at end of file" in non-english locales

2005-09-04 Thread Fredrik Kuivinen
On Sun, Sep 04, 2005 at 12:25:16PM -0700, Junio C Hamano wrote: > Fredrik Kuivinen <[EMAIL PROTECTED]> writes: > > > The message "\ No newline at end of file" which sometimes is produced > > by diff(1) is locale dependent. We can't assume more than that it &

Re: [PATCH] Make git-apply understand "\ No newline at end of file" in non-english locales

2005-09-04 Thread Fredrik Kuivinen
The message "\ No newline at end of file" which sometimes is produced by diff(1) is locale dependent. We can't assume more than that it begins with "\ ". Signed-off-by: Fredrik Kuivinen <[EMAIL PROTECTED]> --- The previous patch wasn't doing the right thing

[PATCH] Make sure the diff machinery outputs "\ No newline ..." in english

2005-09-04 Thread Fredrik Kuivinen
In non-english locales diff(1) do sometimes output "\ No newline at end of file" in some other language. Set LC_ALL to C before execing diff to avoid this behaviour. Signed-off-by: Fredrik Kuivinen <[EMAIL PROTECTED]> --- diff.c |1 + 1 files changed, 1 insertions

[PATCH] Make git-apply understand "\ No newline at end of file" in non-english locales

2005-09-04 Thread Fredrik Kuivinen
The message "\ No newline at end of file" which sometimes is produced by diff(1) is locale dependent. We can't assume more than that it begins with "\ ". Signed-off-by: Fredrik Kuivinen <[EMAIL PROTECTED]> --- For example, given two files, "foo" and &quo

Re: Moved files and merges

2005-09-03 Thread Fredrik Kuivinen
On Sat, Sep 03, 2005 at 11:46:53AM -0700, Junio C Hamano wrote: [lots of good stuff] I obviously misunderstood the complexity of this merge case. Thank you for the explanation. - Fredrik - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED

Re: Moved files and merges

2005-09-03 Thread Fredrik Kuivinen
On Sat, Sep 03, 2005 at 01:25:50AM -0700, Junio C Hamano wrote: > Junio C Hamano <[EMAIL PROTECTED]> writes: > > > "H. Peter Anvin" <[EMAIL PROTECTED]> writes: > > > >> I currently have two klibc trees, > > > > I cloned them to take a look. You_do_ seem to have a lot of > > renames. > > Well, I

Re: [PATCH] A new merge algorithm, take 2

2005-08-28 Thread Fredrik Kuivinen
On Sat, Aug 27, 2005 at 10:23:23PM -0700, Junio C Hamano wrote: > Fredrik Kuivinen <[EMAIL PROTECTED]> writes: > > > The main changes compared to the previous version are: > > > > * Lots of clean up. > > * Some of the scripts have been renamed to better match

[PATCH] A new merge algorithm, take 2

2005-08-27 Thread Fredrik Kuivinen
tory SP is a single space and NUL is \0. An empty SHA1 is represented as '' and an empty mode is represented with '0'. This flag is nice to have when you have a merge-script which needs to keep some state between different cache ent

Re: [RFC, PATCH] A new merge algorithm (EXPERIMENTAL)

2005-08-26 Thread Fredrik Kuivinen
On Fri, Aug 26, 2005 at 06:08:33PM -0700, Junio C Hamano wrote: > Linus Torvalds <[EMAIL PROTECTED]> writes: > > > On Fri, 26 Aug 2005, Fredrik Kuivinen wrote: > >> > >> In real numbers it is as follows: In Linus' kernel tree there are > >> 5996 c

Re: [RFC, PATCH] A new merge algorithm (EXPERIMENTAL)

2005-08-26 Thread Fredrik Kuivinen
On Fri, Aug 26, 2005 at 04:48:32PM -0400, Daniel Barkalow wrote: > On Fri, 26 Aug 2005, Fredrik Kuivinen wrote: > > > I will try to describe how the algorithm works. The problem with the > > usual 3-way merge algorithm is that we sometimes do not have a unique > > common

[RFC, PATCH] A new merge algorithm (EXPERIMENTAL)

2005-08-26 Thread Fredrik Kuivinen
in the merge logic worth the advantages of correctly handling some strange (but real life) merge cases? - Fredrik [1] http://www.gelato.unsw.edu.au/archives/git/0504/2279.html [2] http://www.gelato.unsw.edu.au/archives/git/0508/8072.html, and the follow-up discussion. [3] http://www.g

[ANNOUNCE] (H)gct 0.2

2005-08-21 Thread Fredrik Kuivinen
Version 0.2 of (H)gct, a GUI enabled commit tool, has been released and can be downloaded from http://www.cyd.liu.se/~freku045/gct/gct-0.2.tar.gz There is also a Git repository for (H)gct at http://www.cyd.liu.se/users/~freku045/gct/gct.git/ (and a gitweb for this repository is available at http:/

Re: [ANNOUNCE] Gct-0.1, a GUI enabled Git commit tool

2005-07-20 Thread Fredrik Kuivinen
On Wed, Jul 20, 2005 at 01:58:11AM +0200, Petr Baudis wrote: > Dear diary, on Fri, Jul 15, 2005 at 02:46:42AM CEST, I got a letter > where Fredrik Kuivinen <[EMAIL PROTECTED]> told me that... > > Hi, > > Hello from a lazy reader who didn't actually try it, > &g

[ANNOUNCE] Gct-0.1, a GUI enabled Git commit tool

2005-07-14 Thread Fredrik Kuivinen
Python 2.3, Qt 3.3.4 and PyQt 2.13. Other fairly recent versions may or may not work. - Fredrik Kuivinen - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html