Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#494889: fetching from static-http://... broken

0 views
Skip to first unread message

Jeroen van Wolffelaar

unread,
Aug 12, 2008, 5:50:13 PM8/12/08
to
Package: mercurial
Version: 1.0.1-3
Severity: important

Using etch (version 0.9.1-1+etch1):

[jeroen@mordor]/tmp$ hg clone static-http://buildd.debian.org/~jeroen/status
requesting all changes
adding changesets
adding manifests
adding file changes
added 16 changesets with 30 changes to 10 files
10 files updated, 0 files merged, 0 files removed, 0 files unresolved
[jeroen@mordor]/tmp$

Using lenny (version 1.0.1-3)
[jeroen@eee]/tmp$ hg clone static-http://buildd.debian.org/~jeroen/status
abort: 'http://buildd.debian.org/~jeroen/status' does not appear to be an hg repository!
[jeroen@eee]/tmp$

This is not documented in the Debian changelog (the upstream changelog
is missing), and even if this feature is intentionally discontinued, the
hg command should report so and not fail with the "no repo found" error
message.

Thanks,
--Jeroen

--
Jeroen van Wolffelaar
Jer...@wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Thomas Arendsen Hein

unread,
Aug 13, 2008, 3:10:11 AM8/13/08
to
* Jeroen van Wolffelaar <jer...@wolffelaar.nl> [20080812 23:46]:

> Using etch (version 0.9.1-1+etch1):
>
> [jeroen@mordor]/tmp$ hg clone static-http://buildd.debian.org/~jeroen/status
> requesting all changes
> adding changesets
> adding manifests
> adding file changes
> added 16 changesets with 30 changes to 10 files
> 10 files updated, 0 files merged, 0 files removed, 0 files unresolved
> [jeroen@mordor]/tmp$
>
> Using lenny (version 1.0.1-3)
> [jeroen@eee]/tmp$ hg clone static-http://buildd.debian.org/~jeroen/status
> abort: 'http://buildd.debian.org/~jeroen/status' does not appear to be an hg repository!
> [jeroen@eee]/tmp$
>
> This is not documented in the Debian changelog (the upstream changelog
> is missing), and even if this feature is intentionally discontinued, the
> hg command should report so and not fail with the "no repo found" error
> message.

The feature is not discontinued, there is "just" a bug.

The automatic tests did not catch this problem, as it only appears
when the server uses the old repository layout without the store
directory, compare e.g.
http://hg.intevation.org/kolab/kuudecode/.hg/ (old layout)
with http://hg.intevation.org/argh/.hg/ (new layout)

"hg clone static-http://hg.intevation.org/kolab/kuudecode/" works
while "hg clone static-http://hg.intevation.org/argh/" yields the
same error as you reported.

A quick workaround for you is to clone your repository and move this
clone back in the old place. Of course old hg clients won't be able
to clone the new layout via static-http, only the usual network
protocol stayed compatible.

Regards,
Thomas

--
tho...@intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

Thomas Arendsen Hein

unread,
Aug 13, 2008, 3:30:15 AM8/13/08
to
* Thomas Arendsen Hein <tho...@intevation.de> [20080813 08:55]:

> The automatic tests did not catch this problem, as it only appears
> when the server uses the old repository layout without the store
> directory, compare e.g.
> http://hg.intevation.org/kolab/kuudecode/.hg/ (old layout)
> with http://hg.intevation.org/argh/.hg/ (new layout)
>
> "hg clone static-http://hg.intevation.org/kolab/kuudecode/" works
> while "hg clone static-http://hg.intevation.org/argh/" yields the
> same error as you reported.
>
> A quick workaround for you is to clone your repository and move this
> clone back in the old place. Of course old hg clients won't be able
> to clone the new layout via static-http, only the usual network
> protocol stayed compatible.

This problem was introduced by changeset 6605a03cbf87 which fixes
http://www.selenic.com/mercurial/bts/issue965
(hg clone static-http does not work for empty repos)

I'll take a look at how to fix this.

Thomas Arendsen Hein

unread,
Oct 19, 2008, 4:30:08 PM10/19/08
to
* Thomas Arendsen Hein <tho...@intevation.de> [20080813 09:14]:

> This problem was introduced by changeset 6605a03cbf87 which fixes
> http://www.selenic.com/mercurial/bts/issue965
> (hg clone static-http does not work for empty repos)

I just pushed the fix for this problem to crew-stable:
http://hg.intevation.org/mercurial/crew-stable/rev/98b6c3dde237

You can apply this patch to the Debian package.

Regards,
Thomas Arendsen Hein

Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998

0 new messages