Re: [PATCH 0/4] remote-hg: more improvements
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- May 8, 2014, 01:36 UTC
- Message-ID
- <536adf96f37ec_3caaa612ec69@nysa.notmuch>
- In-Reply-To
- <xmqqha515ebt.fsf@gitster.dls.corp.google.com>
Junio C Hamano wrote:
Show 20 quoted lines
> Junio C Hamano <gitster@pobox.com> writes: > > > Felipe Contreras <felipe.contreras@gmail.com> writes: > > > >> Here's a bunch of tests more, and a fixes for Mercurial v3.0. > > > > I think the discussion with John Keeping hints that we shouldn't be > > rushing fc/remote-helpers-hg-bzr-graduation and this does not appear > > to assume the presense of that series, which is good in order to > > make these fixes jump over them. > > When merged to a place somewhere early between the next and the pu > branches (aka "the jch branch", which is the version I usually use > myself), this seemed to break t5810, so I did today's integration > cycle one more time by excluding this topic and then instead queuing > it near the tip of the pu branch (read: today's 'pu' does not pass > the test suite for me). > > There may be some other changes that this series depends on that I > may have missed that caused this breakage. Can you take a look?
I'm such a bad maintainer and I don't take constructive criticism well why would you expect me to take a look?
As usual, I did more than take a look and I went ahead to manually test with multiple versions of Mercurial. The problem appears with hg < 2.6.
Here's the fix:
--- a/git-remote-hg.py +++ b/git-remote-hg.py @@ -905,7 +905,7 @@ def write_tag(repo, tag, node, msg, author): try: fctx = tip.filectx(f) data = fctx.data() - except error.ManifestLookupError: + except error.LookupError: data = "" content = data + "%s %s\n" % (node, tag) return context.memfilectx(f, content, False, False, None)
-- Felipe Contreras