Re: git and bzr

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nicholas Allen <nick.allen@...>
Cc: Jakub Narebski <jnareb@...>, <bazaar-ng@...>, <git@...>
Date: Tuesday, November 28, 2006 - 5:26 pm

> 

Ok - I got curious and decided to install git and try this myself.

In this test I had a file hello.txt that got renamed to hello1.txt in
one branch and hello2.txt in another. Then I merged the changes between
the 2 branches.

Here is how it looked after the merge in bzr:

 bzr status
renamed:
  hello2.txt => hello1.txt
conflicts:
  Path conflict: hello2.txt / hello1.txt
pending merges:
  Nicholas Allen 2006-11-28 Renamed hello to hello1


and here's how it looked in git:
git status
#
# Changed but not updated:
#   (use git-update-index to mark for commit)
#
#       unmerged: hello.txt
#       unmerged: hello1.txt
#       unmerged: hello2.txt
#       modified: hello2.txt
#
nothing to commit

So git is not telling me that I have a conflict due to the same file
being renamed differently in 2 branches - well at least not in a way I
can comprehend anyway! Whereas bzr made this very clear. Also, in git I
ended up with 2 files:

 ls
hello1.txt  hello2.txt

whereas in bzr there was only one file and I just had to decide which
name it was to be given to resolve the conflict.

I'm not sure how I should resolve the conflict in git but that's
probably just because I am not familiar with it yet and the message it
gave was not comprehensible or helpful to me in the slightest. In bzr it
was very easy and repeatably merging caused no trouble at all - the name
conflict had to be resolved only once.

While it was good that git detected my file rename (although this was
not hard as the contents did not change at all) the process in bzr was
*much* smoother and more user friendly than it was it git. When you have
conflicts I think it's especially important that the RCS inform you of
what is really happening so you do not make mistakes. Bzr was much more
informative than git was and told me exactly why there was a conflict
and made it easy to resolve it.

This situation is a pretty common one and it seems to me that git's
content based approach is not as useful in this case as the file
identity approach that bzr uses.


Nick

-
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: git and bzr, Jakub Narebski, (Tue Nov 28, 2:06 pm)
Re: git and bzr, Nicholas Allen, (Tue Nov 28, 4:37 pm)
Re: git and bzr, Martin Langhoff, (Tue Nov 28, 5:40 pm)
Re: git and bzr, Nicholas Allen, (Tue Nov 28, 5:26 pm)
Re: git and bzr, Linus Torvalds, (Tue Nov 28, 5:49 pm)
Re: git and bzr, Nicholas Allen, (Tue Nov 28, 6:00 pm)
Re: git and bzr, Linus Torvalds, (Tue Nov 28, 6:25 pm)
Re: git and bzr, Johannes Schindelin, (Wed Nov 29, 6:52 am)
Re: git and bzr, Linus Torvalds, (Wed Nov 29, 1:29 pm)
Re: git and bzr, Marko Macek, (Wed Nov 29, 2:54 pm)
Re: git and bzr, Andreas Ericsson, (Thu Nov 30, 8:25 am)
Re: git and bzr, Theodore Tso, (Thu Nov 30, 4:01 pm)
Re: git and bzr, Linus Torvalds, (Wed Nov 29, 4:45 pm)
Re: git and bzr, Carl Worth, (Wed Nov 29, 8:05 pm)
Re: git and bzr, Raimund Bauer, (Thu Nov 30, 2:59 am)
Re: git and bzr, Andreas Ericsson, (Thu Nov 30, 8:45 am)
Re: git and bzr, Johannes Schindelin, (Thu Nov 30, 6:19 am)
Re: git and bzr, Nguyen Thai Ngoc Duy, (Thu Nov 30, 7:25 am)
Re: git and bzr, Johannes Schindelin, (Thu Nov 30, 8:23 am)
Re: git and bzr, Nguyen Thai Ngoc Duy, (Thu Nov 30, 5:01 am)
Re: git and bzr, Alan Chandler, (Thu Nov 30, 5:30 am)
Re: git and bzr, Steven Grimm, (Thu Nov 30, 5:39 am)
Re: git and bzr, Alan Chandler, (Thu Nov 30, 4:31 am)
Re: git and bzr, Carl Worth, (Thu Nov 30, 3:17 am)
Re: git and bzr, Carl Worth, (Wed Nov 29, 8:08 pm)
Re: git and bzr, Johannes Schindelin, (Wed Nov 29, 4:07 pm)
Re: git and bzr, Jakub Narebski, (Wed Nov 29, 4:49 pm)
Re: git and bzr, Nicholas Allen, (Tue Nov 28, 6:46 pm)
Re: git and bzr, Linus Torvalds, (Tue Nov 28, 6:41 pm)
Re: git and bzr, Nicholas Allen, (Tue Nov 28, 6:48 pm)
Re: git and bzr, Johannes Schindelin, (Wed Nov 29, 6:49 am)
Re: git and bzr, Jon Loeliger, (Wed Nov 29, 4:37 pm)
Re: git and bzr, Jakub Narebski, (Wed Nov 29, 7:01 am)
Re: git and bzr, Shawn Pearce, (Tue Nov 28, 5:53 pm)
Re: git and bzr, Linus Torvalds, (Tue Nov 28, 6:13 pm)
Re: git and bzr, Nicholas Allen, (Tue Nov 28, 3:11 pm)
Re: git and bzr, Andy Parkins, (Tue Nov 28, 3:40 pm)
Re: git and bzr, Nicholas Allen, (Tue Nov 28, 2:58 pm)