Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Jan Hudec <bulb@...>, <bazaar-ng@...>, <git@...>, Jakub Narebski <jnareb@...>
Date: Friday, October 20, 2006 - 6:13 pm

On Fri, 2006-10-20 at 11:48 -0700, Linus Torvalds wrote:

I tried this to see what bzr would do.  Here's the critical point where
the first merges are done ("a" is mainline, "b" and "c" are external
branches being merged into "a").

---
jeff@lsblap:~/tmp/linus-file-id/a$ bzr pull ../b
All changes applied successfully.
1 revision(s) pulled.
jeff@lsblap:~/tmp/linus-file-id/a$ bzr pull ../c
bzr: ERROR: These branches have diverged.  Use the merge command to reconcile them.
jeff@lsblap:~/tmp/linus-file-id/a$ bzr merge ../c
Conflict adding file file2.  Moved existing file to file2.moved.
1 conflicts encountered.
jeff@lsblap:~/tmp/linus-file-id/a$ bzr status
added:
  file2
renamed:
  file2 => file2.moved
conflicts:
  Conflict adding file file2.  Moved existing file to file2.moved.
pending merges:
  Jeff Licquia 2006-10-20 commit c of file2
---

file2 and file2.moved have identical contents at this point.  I fixed it
by deleting file2.moved, "bzr resolve file2", and committing.

After this conflict is resolved, merging from b causes conflicts, while
merging from c appears to work fine.  This continues until b merges from
a (and resolves a conflict in a similar manner to a), at which time
merging/pulling works as you'd expect between the branches.  Whenever b
is marked as conflicting before it merges from a, bzr preserves b's
changes by moving b's modified file.

All in all, not ideal, but it seems bzr handles this better than bk.
Certainly, bzr doesn't silently drop anyone's changes, at least.  I
suspect that bzr could improve its handling of this use case, but not,
I'm sure, to Linus's specifications; some of the fun and games does seem
to come from the use of file IDs.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Fri Oct 20, 10:56 am)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Matthieu Moy, (Sat Oct 21, 3:56 am)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Sat Oct 21, 4:36 am)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Matthieu Moy, (Sat Oct 21, 6:09 am)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Sat Oct 21, 6:34 am)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Aaron Bentley, (Fri Oct 20, 11:34 am)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Petr Baudis, (Fri Oct 20, 6:40 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Aaron Bentley, (Fri Oct 20, 7:33 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Fri Oct 20, 12:21 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jan Hudec, (Fri Oct 20, 2:12 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jeff King, (Fri Oct 20, 6:59 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jan Hudec, (Sat Oct 21, 1:40 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Sat Oct 21, 2:42 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Sat Oct 21, 3:21 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Martin Langhoff, (Fri Nov 3, 2:36 am)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Sat Oct 21, 1:51 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jan Hudec, (Sat Oct 21, 3:20 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Fri Oct 20, 3:14 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 2:48 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jeff Licquia, (Fri Oct 20, 6:13 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 7:59 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Junio C Hamano, (Fri Oct 20, 9:26 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Sat Oct 21, 4:40 am)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Robert Collins, (Fri Oct 20, 7:05 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Robert Collins, (Fri Oct 20, 7:15 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jeff Licquia, (Fri Oct 20, 7:39 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Fri Oct 20, 2:47 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 3:00 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Aaron Bentley, (Fri Oct 20, 3:10 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 3:46 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Aaron Bentley, (Fri Oct 20, 4:29 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 4:57 pm)
git-merge-recursive, was Re: [ANNOUNCE] Example Cogito Addon..., Johannes Schindelin, (Fri Oct 20, 10:03 pm)
[PATCH] threeway_merge: if file will not be touched, leave i..., Johannes Schindelin, (Sun Oct 22, 5:04 pm)
Re: [PATCH] threeway_merge: if file will not be touched, lea..., Johannes Schindelin, (Sun Oct 22, 8:48 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Fri Oct 20, 2:35 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Fri Oct 20, 2:46 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Aaron Bentley, (Fri Oct 20, 1:03 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Shawn Pearce, (Fri Oct 20, 1:21 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 1:48 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Shawn Pearce, (Fri Oct 20, 4:53 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Petr Baudis, (Fri Oct 20, 4:23 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, David Lang, (Fri Oct 20, 4:49 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Petr Baudis, (Fri Oct 20, 4:53 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, David Lang, (Fri Oct 20, 4:55 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jon Smirl, (Fri Oct 20, 2:15 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Matthew Hannigan, (Thu Nov 2, 11:43 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, David Lang, (Fri Oct 20, 1:58 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 1:18 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Aaron Bentley, (Fri Oct 20, 1:47 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 2:06 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 2:30 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Aaron Bentley, (Fri Oct 20, 3:04 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 3:31 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Aaron Bentley, (Fri Oct 20, 4:12 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Jakub Narebski, (Fri Oct 20, 1:45 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Linus Torvalds, (Fri Oct 20, 1:59 pm)
Re: [ANNOUNCE] Example Cogito Addon - cogito-bundle, Junio C Hamano, (Fri Oct 20, 4:17 pm)