From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com ([209.85.128.46]) by ewsd; Wed Nov 28 15:25:24 EST 2018 Received: by mail-wm1-f46.google.com with SMTP id r11-v6so1477wmb.2 for <9front@9front.org>; Wed, 28 Nov 2018 12:25:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=offblast-org.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=qmZeHQBdaXkxXOlWa36QvI161XAq0OFdkRQlpF5GgDk=; b=jVl8FmTwfTwbt5KXYT1XOZHSp5/LVbYuQ4NWeneUjEDCEjF77uTaa4s87t4pBiHDlV iaZHIxa40Qig1XDIYyMZZJgmRQi3O1nBMctFZpL0uMZj9ZJGxaSfbYb1agBW5rLbS526 ibFnAQbQJVEZoMxUb0qdC6wFPE1yYTiQk1qBzzE+CVuq63OK0Omg1IY10nh/26JnoGHf wFQld7JKuWN8gnXqs+Kc+EeW4aQprWY4vcrkUScFCzkVBHd6KAvTFAAqKiuRju4srTz3 oRbwdLpD/crM2yFFO4CdiJxLGzje0T5rpyiaMu4eZzSGGxLj4ma2IdXSu/gxGnKnYSxQ U2ug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=qmZeHQBdaXkxXOlWa36QvI161XAq0OFdkRQlpF5GgDk=; b=hgRpN2PuUy9q9Cuka/mToH5AE7Xg7O2ZvMbvS8tS9Xf7VPeofFsqz6RfrptSd7ecWi 8+lHUVofISOg+6lrstudvpanS5LRxCGtGALDvfxFZ9IwBOTzH2UWMp1NtGXkqk5LLsru oqCbsUJhsCHqAvChUhOBcysZcgv4QXkHTwNHAS1xUOQwNYEMjuDxZknBci1OmkXAhsTY XLWQ1cd3vhGKsU4KmB6eKzNFAZQ2OePGvN0Ub6+LEaC58o5RiM+dlTfbtrkPHxhp5x5P dpN1uyT1L26bOe8XzHAnh+h0LHxFk3R19HbuAH1P+DqoikZU9JUiCSpHXHu6wIHciWjB ciJA== X-Gm-Message-State: AA+aEWYQj4P0zdsqsbF8mJ1Sx/UXIET/vuYZk8Ura0sV5A7IpEO27OL2 Jq/19l/wTFJNo2274mABQ84XXhmP2uTPTzydewhiID6Cfps= X-Google-Smtp-Source: AFSGD/UwQFqw+1h32xERBvc0o5hEg4S8iyWDQ3I8Y16KMV2a07RXUkaxtNiHW+QghQDC1qCIlgbNh7fQm3vOXy9hkxU= X-Received: by 2002:a7b:c442:: with SMTP id l2mr4076262wmi.140.1543436720605; Wed, 28 Nov 2018 12:25:20 -0800 (PST) MIME-Version: 1.0 From: Nick Owens Date: Wed, 28 Nov 2018 12:25:09 -0800 Message-ID: Subject: bug: hg pull fails on a bitbucket repo To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: full-stack table event injection framework our hg (which i think is about version 1.4) will fail to pull some bitbucket hg repos. cpu% ramfs cpu% cd /tmp cpu% hg clone -r tip https://bitbucket.org/oridb/mc destination directory: mc requesting all changes adding changesets adding manifests adding file changes added 4988 changesets with 12508 changes to 1680 files updating working directory 1090 files updated, 0 files merged, 0 files removed, 0 files unresolved cpu% cd mc cpu% hg pull pulling from https://bitbucket.org/oridb/mc searching for changes abort: '/mnt/web/0/body' 400 Bad Request: /mnt/web/0/body cpu% hg is issuing a particular request where the resulting URI is over 4096 bytes, and the bitbucket server rejects this with a 400, and the response body claims that this is because a line in the request is too long (the URI). it's about 5200 bytes long in this instance. in ports, there is mercurial 3.4.1 (https://code.9front.org/hg/ports/file/d0100ff1c37e/dev-vcs/mercurial/mkfile) which does not have this problem. in newer hg, the wire protocol seems quite different, but there's also a particular feature where hg can send rpc arguments through split-up http headers rather than all smushed into a URI. there's a few options: update the system hg to mercurial 3.4.1 (or whatever the latest working copy is) and deal with the resulting fallout. cherry-pick code from newer mercurial. ignore the problem. one caveat of updating to newer mercurial is that upstream dropped python 2.5 support some years ago. discuss.