Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1J4fKQ-0004Lj-7L for mharc-grub-devel@gnu.org; Tue, 18 Dec 2007 11:29:58 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4fKN-0004Lc-Lk for grub-devel@gnu.org; Tue, 18 Dec 2007 11:29:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4fKM-0004LQ-4j for grub-devel@gnu.org; Tue, 18 Dec 2007 11:29:54 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4fKL-0004LN-WA for grub-devel@gnu.org; Tue, 18 Dec 2007 11:29:54 -0500 Received: from c60.cesmail.net ([216.154.195.49]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1J4fKL-0004yX-Eg for grub-devel@gnu.org; Tue, 18 Dec 2007 11:29:53 -0500 Received: from unknown (HELO epsilon2) ([192.168.1.60]) by c60.cesmail.net with ESMTP; 18 Dec 2007 11:29:52 -0500 Received: from pool-71-175-122-139.phlapa.east.verizon.net (pool-71-175-122-139.phlapa.east.verizon.net [71.175.122.139]) by webmail.spamcop.net (Horde MIME library) with HTTP; Tue, 18 Dec 2007 11:29:52 -0500 Message-ID: <20071218112952.1yxfdh3vkk08s044@webmail.spamcop.net> Date: Tue, 18 Dec 2007 11:29:52 -0500 From: Pavel Roskin To: The development of GRUB 2 , "Yoshinori K. Okuji" References: <1196963148.15804.44.camel@dv> <47670FF4.9070701@casema.nl> <20071217202057.ygvk8pyyowsok04g@webmail.spamcop.net> <200712180357.38552.okuji@enbug.org> In-Reply-To: <200712180357.38552.okuji@enbug.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Subject: Re: Switching to git? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Dec 2007 16:29:56 -0000 Hello! Quoting "Yoshinori K. Okuji" : > I bet that you under-estimate the pain of migrating to another SCM. I have > experienced such migrations twice, and they were always a pain, something > that nobody wants to repeat. I went through some migrations (CVS to Subversion and CVS to git), and =20 it's not a trivial task, but it's not a big deal for other developers =20 who are not doing the migration. > Some reasons: > > - The repository will be temporarily down (negligible in a long term). Yes, negligible. > - All developers are forced to install new software and learn it (always a > pain). We can alleviate it by switching to software that is already widely =20 used, so that the time invested into learning can be used on other =20 projects. Mercusial and git are good examples, as they are used in =20 many other projects. Monotone and darcs are not so popular; learning =20 them would give less benefits. > - All local (pending) changes in working copies become very hard to merge > (extremely painful). Actually, the great thing about git (especially when used with StGIT) =20 is that the changes can sit in the local tree without any problem. =20 CVS, on the other hand, doesn't allow any organization of the local =20 changes. They can be exported to a diff file and applied to the new =20 repository, perhaps as more than one patch. > - It is hard to re-select yet another SCM later, because old software is > usually better supported for migrations, i.e. it's not cheap to migrate ba= ck > and forth (very painful). That's true, but only to a degree. Any serious contender would have =20 to support migration from git. Mercurial had it from the first months =20 if not days of development. I don't see why we would need to migrate from git. It's good for =20 Linux, which is a much bigger project. It's under development, which =20 mean that it will improve. Speaking of CVS, since it doesn't record the changesets, migrating =20 from it to anything will require some guesswork. > Since Robert was in a hurry so much, I had to stop it immediately with ver= y > terse words. I am sorry about that, but please do not make a haste. I have > discussed (and objected to) possibilities to move to another SCM in the IR= C, > the mailing list, etc., but it seems that people forget my words at every > time. It's sad to me, as I must repeat the same thing again and again. I didn't know that. > First of all, this is not a hurry at all. CVS is far from nice, but it has > worked well for GRUB for the past 10 years, and we haven't had any critica= l > problem with it. This is because GRUB is a very simple project from the > viewpoint of source code management. The problem is, some patches need to be split into series. For =20 example, one patch prepares ground, the other makes the radical =20 switch, the third carries on some simplifications that become possible. People who learned working with patch series are annoyed by a version =20 control system that doesn't provide facilities for that. Another problem is bisecting bugs. git makes is possible in a simple, =20 effective and formal way, so that I don't have to look at the dates in =20 the changelog and guess where the next test point should be. I'm not =20 aware of any other version control system providing that feature. The =20 bisecting facility is important to assure code quality. Finally, things like grub4dos should not be forks, they should be =20 branches. This would give then a better exposure. CVS branch support =20 is pathetic, and the same applies to Subversion, although for =20 different reasons. > You might be excited with technical innovations, but please don't forget t= hat > it costs to change things. Note that I don't mean that we should't change, > but that we must be a bit more conservative with regard to SCM. Since we a= re > not developing SCM itself, we should consider carefully pros and cons, bef= ore > making an action. I see serious advantages when it comes to attracting developers, =20 fixing existing bugs and improving future changes. > Ok, now about the git. As Tom=C3=A1=C5=A1 pointed out, the lack of portabi= lity is > regression from CVS. If you think, for example, grub4dos is important, why > can you choose git? I understand you are concerned about for Windows portability, not about DOS. git works with Cygwin, and it's not an unrealistic requirement. =20 Looking at the amount of recent changes in git for things like newline =20 conversion, I'm sure that they come from the developers actually =20 working on Windows. An active development community assures code =20 quality and minimal bit rot. > Besides the portability, I don't like the merging algorithm. If my knowled= ge > is not completely outdated yet, git still uses 3-way merging, right? I don= 't > describe the math here, as it is (a little) documented in the revctrl wiki= : > > http://revctrl.org/CategoryMergeAlgorithm > > As long as git uses this naive algorithm, I am not willing to use it. No, git uses recursive merge by default. But I don't see why it's important= . > CVS's merging algorithm is also very simple and stupid, but it is not a bi= g > problem, because CVS is centralized. When getting distributed, things get = far > more complicated and critical, since there are so many corner cases where = one > cannot see in a centralized SCM. I'm afraid I don't understand this argument. Linux trees are merged =20 all the time, and nothing particularly bad happens. GRUB should heve =20 less corener cases, not more. > These are the requirements for a new SCM in the context of GRUB from my po= int > of view: > > - Free Software (definitely!) > - Good merging algorithm (if distributed) > - Good web interface (as good as viewvc) > - Commit notification by email at the server side > - Good portability (as good as CVS) All this is present in git. > - Ability to track changes efficiently, i.e. annotation (probably =20 > supported by > most SCMs) I don't know what it means. > - Usable interface (not like arch) > - Good user document (like svnbook) git is very close, although the work is underway > - No conflict in a (main) repository (not like monotone) I think it's a policy issue. In any case, I don't see it as a problem =20 with git. > Other features are not so important, since GRUB is small. > > Here are some examples: > > - Subversion (+ svk) is good enough, if we only sometimes want to work > offline. > > - Bazaar looks good, if we believe that their claim is all correct. I agree, but in both cases developers will have to learn something =20 they won't be using elsewhere, unlike git. Last time I tries svk, it was adding some useless (for other =20 developers) annotations to the commit messages, so I thought it would =20 be impolite to others to commit directly from svk to the main =20 repository. StGIT keeps all marks to itself. --=20 Regards, Pavel Roskin