hg webserver breaks bzr format detection

Bug #389745 reported by Duncan McGreggor
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned

Bug Description

This may simply be a usage problem (i.e., I don't know how to use this plugin), but I can't seem to branch (or clone) an hg repo with bzr-hg.

For example executing this:

$ bzr branch http://hg.barryp.org/py-amqplib-devel/ trunk

Results in this (snipped) output:

bzr: ERROR: Unknown bzrdir format: '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
...
</html>

Here's my version info:

$ bzr version
Bazaar (bzr) 1.17dev
  Python interpreter: /usr/bin/python2.4 2.4.5
  Python standard library: /usr/lib/python2.4
  bzrlib: /usr/lib/python2.4/site-packages/bzrlib

$ hg --version
Mercurial Distributed SCM (version 1.0.1)

$ cat /etc/issue
Ubuntu 8.10

$ cd /home/oubiwann/lab/bzr/bzr-hg
$ bzr version-info
revision-id: <email address hidden>
date: 2009-06-18 01:10:44 +0200
build-date: 2009-06-19 19:11:58 -0500
revno: 60
branch-nick: bzr-hg

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: no support for remote repositories

bzr-hg only works on local repositories atm

summary: - Latest bzr and bzr-hg don't seem to work
+ no support for remote repositories
Changed in bzr-hg:
importance: Undecided → Wishlist
status: New → Triaged
Revision history for this message
Larry Gilbert (l2g) wrote :

Until remote repository support is available, might I suggest this short-term "fix"? :-)

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

There is now basic support for remote repositories.

Changed in bzr-hg:
status: Triaged → In Progress
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr-hg:
status: In Progress → Fix Released
status: Fix Released → Triaged
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is caused by the fact that the remote web server returns a non-404 HTML page when we request .bzr/branch-format.

The attached trivial patch works around this problem, but it's not very elegant..

affects: bzr-hg → bzr
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Not really elegant, but I'm not sure what a better workaround would be at the moment. Perhaps we can just handle UnknownFormatError like NotBranchError in the transport prober?

Martin Pool (mbp)
Changed in bzr:
status: Triaged → Confirmed
Revision history for this message
Martin Pool (mbp) wrote :

I think merging Jelmer's patch from #5, which assumes a multi-line format is garbage, along with a comment about why we're doing it, would be ok. But changing the general format detection to keep looking in the case it sees an UnknownFormat is probably better.

summary: - no support for remote repositories
+ hg webserver breaks bzr format detection
Jelmer Vernooij (jelmer)
Changed in bzr:
assignee: Jelmer Vernooij (jelmer) → nobody
importance: Wishlist → Medium
tags: added: foreign probing
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.