* bug: hg pull fails on a bitbucket repo
@ 2018-11-28 20:25 Nick Owens
2018-11-28 21:45 ` [9front] " hiro
0 siblings, 1 reply; 8+ messages in thread
From: Nick Owens @ 2018-11-28 20:25 UTC (permalink / raw)
To: 9front
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9front] bug: hg pull fails on a bitbucket repo
2018-11-28 20:25 bug: hg pull fails on a bitbucket repo Nick Owens
@ 2018-11-28 21:45 ` hiro
2018-11-28 23:36 ` Nick Owens
0 siblings, 1 reply; 8+ messages in thread
From: hiro @ 2018-11-28 21:45 UTC (permalink / raw)
To: 9front
> one caveat of updating to newer mercurial is that upstream dropped
> python 2.5 support some years ago.
so then how does your port work then?!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9front] bug: hg pull fails on a bitbucket repo
2018-11-28 21:45 ` [9front] " hiro
@ 2018-11-28 23:36 ` Nick Owens
2018-11-28 23:44 ` hiro
0 siblings, 1 reply; 8+ messages in thread
From: Nick Owens @ 2018-11-28 23:36 UTC (permalink / raw)
To: 9front
you'd want 3.4.1 if you want newer mercurial features, or want to
avoid this bug.
mercurial 3.4.1 was release before they axed python 2.5 support.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9front] bug: hg pull fails on a bitbucket repo
2018-11-28 23:36 ` Nick Owens
@ 2018-11-28 23:44 ` hiro
2018-11-29 0:42 ` Nick Owens
0 siblings, 1 reply; 8+ messages in thread
From: hiro @ 2018-11-28 23:44 UTC (permalink / raw)
To: 9front
fucking hell, so 3.4.1 is also already multiple years old?!
i doubt anybody would like to waste a week updating both python and hg.
also: how often will this game need to be repeated in the future if we
start with this now?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [9front] bug: hg pull fails on a bitbucket repo
2018-11-28 23:44 ` hiro
@ 2018-11-29 0:42 ` Nick Owens
2018-11-29 1:02 ` hiro
0 siblings, 1 reply; 8+ messages in thread
From: Nick Owens @ 2018-11-29 0:42 UTC (permalink / raw)
To: 9front
our hg is approximately 9 years old. 3.4.1 is about 4 years old.
perhaps within another 5 years, more stuff will break. i and a
nontrivial amount of other people use bitbucket for mercurial hosting
and interact with it from 9front, so having it work reliably is pretty
desirable.
On Wed, Nov 28, 2018 at 3:44 PM hiro <23hiro@gmail.com> wrote:
>
> fucking hell, so 3.4.1 is also already multiple years old?!
>
> i doubt anybody would like to waste a week updating both python and hg.
> also: how often will this game need to be repeated in the future if we
> start with this now?
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2018-11-29 9:49 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28 20:25 bug: hg pull fails on a bitbucket repo Nick Owens
2018-11-28 21:45 ` [9front] " hiro
2018-11-28 23:36 ` Nick Owens
2018-11-28 23:44 ` hiro
2018-11-29 0:42 ` Nick Owens
2018-11-29 1:02 ` hiro
2018-11-29 5:35 ` Kurt H Maier
2018-11-29 9:49 ` hiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).