Re: [PATCH] Add new git-remote-hd helper
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Oct 17, 2012, 18:33 UTC
- Message-ID
- <CAMP44s2-BCuA5v7jE8S3d-Gg+DxKf6Yte9MvTDBDr4jEkLKZ9g@mail.gmail.com>
- In-Reply-To
- <CAGdFq_i4c=ei4ni5bv9nNEbCfNG4sbRkqyip2voW17GhkRAKPQ@mail.gmail.com>
On Wed, Oct 17, 2012 at 8:18 PM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
Show 9 quoted lines
> On Wed, Oct 17, 2012 at 11:12 AM, Felipe Contreras > <felipe.contreras@gmail.com> wrote: >> But fine, lets remove the tests out of the equation (150 lines), the >> number of lines of code still exceeds 3000. > > I don't think it's fair to just look at LOC, git-remote-hg when it was > just parsing was fairly simple. Most of the current code is our copy > of the python fast-import library which is only used to support > pushing to mercurial.
Well, as a rule of thumb more code means more places for bugs to hide. It is also quite frankly rather difficult to navigate; very spaghetti-like. I have the feeling I can implement the same fast-import functionality in a much simpler way, but for now I want to concentrate on fetching, and hopefully making it easy for people to actually use it.
I would like to cooperate as much as possible, but as I said, I would rewrite a lot of that code. And also, I'm not even sure which repository contains the latest version of this code. I've seen a couple of them that are quite different, and none which are based on a recent version of git.
Cheers.
-- Felipe Contreras