From: Ramkumar Ramachandra Date: Thu, 25 Apr 2013 18:23:04 GMT Subject: Re: [PATCH 2/9] remote-hg: remove extra check Message-ID: In-Reply-To: <1366888849-19607-3-git-send-email-felipe.contreras@gmail.com> Felipe Contreras wrote: > diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg > index 5481331..0b7c81f 100755 > --- a/contrib/remote-helpers/git-remote-hg > +++ b/contrib/remote-helpers/git-remote-hg > @@ -332,10 +332,6 @@ def export_ref(repo, name, kind, head): > ename = '%s/%s' % (kind, name) > tip = marks.get_tip(ename) > > - # mercurial takes too much time checking this > - if tip and tip == head.rev(): > - # nothing to do > - return > revs = xrange(tip, head.rev() + 1) I'm surprised these four lines were even there in a previous revision. Again, you changed the meaning: if xrange() returns an empty range, you must return, by extension.