git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Test failures in contrib/remote-helpers

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Nov 11, 2012, 19:50 UTC
Message-ID
<CAMP44s14J_D_pZuRL4zrc1iphxf7tnFuA4Vpx7d1JTDUts84uw@mail.gmail.com>
In-Reply-To
<CALkWK0k9trxx8NC1GWw-yYzBKhFchrvg2JLeBtyoAkokmv9A0w@mail.gmail.com>

On Sun, Nov 11, 2012 at 1:48 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:

Show 8 quoted lines
> Felipe Contreras wrote:
>> On Sun, Nov 11, 2012 at 11:32 AM, Ramkumar Ramachandra
>> <artagnon@gmail.com> wrote:
>>> I'm experiencing test failures in contrib/remote-helpers.
>>
>> Which are your versions of hg, and bzr?
>
> Mercurial Distributed SCM (version 1.9.1)
I can reproduce the issue, this fixes it for versions up to 1.8:
--- a/contrib/remote-helpers/git-remote-hg
+++ b/contrib/remote-helpers/git-remote-hg
@@ -294,7 +294,7 @@ def export_ref(repo, name, kind, head):
     if tip and tip == head.rev():
         # nothing to do
         return
-    revs = repo.revs('%u:%u' % (tip, head))
+    revs = xrange(tip, head.rev() + 1)
     count = 0

     revs = [rev for rev in revs if not marks.is_marked(rev)]

I don't think it makes sense to aim anything lower.
-- 
Felipe Contreras
Previous: Ramkumar RamachandraNext: Felipe Contreras
Message 4 of 6 in “Test failures in contrib/remote-helpers”
  1. Ramkumar RamachandraNov 11, 2012
  2. Felipe ContrerasNov 11, 2012
  3. Ramkumar RamachandraNov 11, 2012
  4. Felipe ContrerasNov 11, 2012
  5. Felipe ContrerasNov 13, 2012
  6. Ramkumar RamachandraNov 13, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.