bzr-svn incorrectly reports "no repository present"

Bug #190331 reported by Brian de Alwis
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

bzr 1.1 on Python 2.4 on MacOSX, Subversion 1.4.6 (patched), using bzr-svn from http://people.samba.org/bzr/jelmer/bzr-svn/stable/ (revno 924).

bzr-svn is wrongly identifying a Subversion repository as not being a repository.

$ bzr svn-branching-scheme svn+https://papyrus.usask.ca/svn/dept/gt/
bzr: ERROR: No repository present: "svn+https://papyrus.usask.ca/svn/dept/gt/"

I get the same result if I use the native Python 2.5.1 with Subversion 1.5 trunk.

I've included version identification, followed by the .bzr.log, followed by the HTTP headers and bodies dumped when setting the Subversion neon-debug-mask=130.

$ bzr version
Bazaar (bzr) 1.1.0
  Python interpreter: /usr/pkg/bin/python2.4 2.4.4.final.0
  Python standard library: /usr/pkg/lib/python2.4
  bzrlib: /usr/pkg/lib/python2.4/site-packages/bzrlib
  Bazaar configuration: /Users/bsd/.bazaar
  Bazaar log file: /Users/bsd/.bzr.log

Copyright 2005, 2006, 2007, 2008 Canonical Ltd.
http://bazaar-vcs.org/

bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.

$ bzr plugins
/Users/bsd/.bazaar/plugins/svn [0.4.8dev0]
 Support for Subversion branches
/usr/pkg/lib/python2.4/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
 Implementation of multiparent diffs for versionedfile-like storage
/usr/pkg/lib/python2.4/site-packages/bzrlib/plugins/launchpad [unknown]
 Launchpad.net integration plugin for Bazaar.

~/.bzr.log
------------------------------------------------
bzr arguments: [u'svn-branching-scheme', u'svn+https://papyrus.usask.ca/svn/dept/gt/']
looking for plugins in /Users/bsd/.bazaar/plugins
looking for plugins in /usr/pkg/lib/python2.4/site-packages/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
encoding stdout as sys.stdin encoding 'UTF-8'
Traceback (most recent call last):
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 806, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 762, in run_bzr
    ret = run(*run_argv)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/bsd/.bazaar/plugins/svn/__init__.py", line 341, in run
    repos = Repository.open(location)
  File "/usr/pkg/lib/python2.4/site-packages/bzrlib/repository.py", line 866, in open
    return control.open_repository()
  File "/Users/bsd/.bazaar/plugins/svn/remote.py", line 91, in open_repository
    raise NoSvnRepositoryPresent(self.root_transport.base)
NoSvnRepositoryPresent: No repository present: "svn+https://papyrus.usask.ca/svn/dept/gt/"

return code 3
------------------------------------------------

HTTP headers and bodies with neon-debug-mask=130
------------------------------------------------
Doing DNS lookup on papyrus.usask.ca...
Running pre_send hooks
compress: Initialization.
compress: Initialization.
Sending request headers:
PROPFIND /svn/dept/gt HTTP/1.1
Host: papyrus.usask.ca
User-Agent: SVN/1.4.6 (r28521) neon/0.26.3
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Content-Length: 300
Content-Type: text/xml
Depth: 0
Accept-Encoding: gzip
Accept-Encoding: gzip

Sending request-line and headers:
Connecting to 128.233.101.20
Sending request body:
Body block (300 bytes):
[<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><version-controlled-configuration xmlns="DAV:"/><resourcetype xmlns="DAV:"/><baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/><repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/></prop></propfind>]
Request sent; retry is 0.
[status-line] < HTTP/1.1 401 Authorization Required
[hdr] Date: Fri, 08 Feb 2008 23:40:33 GMT
Header Name: [date], Value: [Fri, 08 Feb 2008 23:40:33 GMT]
[hdr] Server: Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)
Header Name: [server], Value: [Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)]
[hdr] WWW-Authenticate: Basic realm="CMPT Subversion Repository"
Header Name: [www-authenticate], Value: [Basic realm="CMPT Subversion Repository"]
[hdr] Vary: accept-language,accept-charset
Header Name: [vary], Value: [accept-language,accept-charset]
[hdr] Accept-Ranges: bytes
Header Name: [accept-ranges], Value: [bytes]
[hdr] Keep-Alive: timeout=5, max=100
Header Name: [keep-alive], Value: [timeout=5, max=100]
[hdr] Connection: Keep-Alive
Header Name: [connection], Value: [Keep-Alive]
[hdr] Transfer-Encoding: chunked
Header Name: [transfer-encoding], Value: [chunked]
[hdr] Content-Type: text/html; charset=iso-8859-1
Header Name: [content-type], Value: [text/html; charset=iso-8859-1]
[hdr] Content-Language: en
Header Name: [content-language], Value: [en]
[hdr]
End of headers.
[chunk] < 1e
Got chunk size: 30
Reading 30 bytes of response body.
Got 30 bytes.
Read block (30 bytes):
[<?xml version="1.0" encoding="]
[chunk] < af
Got chunk size: 175
Reading 175 bytes of response body.
Got 10 bytes.
Read block (10 bytes):
[ISO-8859-1]
Reading 165 bytes of response body.
Got 165 bytes.
Read block (165 bytes):
["?>
<!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" lang="]
[chunk] < e
Got chunk size: 14
Reading 14 bytes of response body.
Got 2 bytes.
Read block (2 bytes):
[en]
Reading 12 bytes of response body.
Got 12 bytes.
Read block (12 bytes):
[" xml:lang="]
[chunk] < 13
Got chunk size: 19
Reading 19 bytes of response body.
Got 2 bytes.
Read block (2 bytes):
[en]
Reading 17 bytes of response body.
Got 17 bytes.
Read block (17 bytes):
[">
<head>
<title>]
[chunk] < 3f
Got chunk size: 63
Reading 63 bytes of response body.
Got 24 bytes.
Read block (24 bytes):
[Authentication required!]
Reading 39 bytes of response body.
Got 39 bytes.
Read block (39 bytes):
[</title>
<link rev="made" href="mailto:]
[chunk] < 107
Got chunk size: 263
Reading 263 bytes of response body.
Got 14 bytes.
Read block (14 bytes):
[root@localhost]
Reading 249 bytes of response body.
Got 249 bytes.
Read block (249 bytes):
[" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
    body { color: #000000; background-color: #FFFFFF; }
    a:link { color: #0000CC; }
    p, address {margin-left: 3em;}
    span {font-size: smaller;}
/*]]>*/--></style>
</head>

<body>
<h1>]
[chunk] < 22
Got chunk size: 34
Reading 34 bytes of response body.
Got 24 bytes.
Read block (24 bytes):
[Authentication required!]
Reading 10 bytes of response body.
Got 10 bytes.
Read block (10 bytes):
[</h1>
<p>
]
[chunk] < 52
Got chunk size: 82
Reading 82 bytes of response body.
Got 82 bytes.
Read block (82 bytes):
[

    This server could not verify that you are authorized to access
    the URL "]
[chunk] < a5
Got chunk size: 165
Reading 165 bytes of response body.
Got 12 bytes.
Read block (12 bytes):
[/svn/dept/gt]
Reading 153 bytes of response body.
Got 153 bytes.
Read block (153 bytes):
[".
    You either supplied the wrong credentials (e.g., bad password), or your
    browser doesn't understand how to supply the credentials required.

  ]
[chunk] < 9
Got chunk size: 9
Reading 9 bytes of response body.
Got 9 bytes.
Read block (9 bytes):
[</p>
<p>
]
[chunk] < 72
Got chunk size: 114
Reading 114 bytes of response body.
Got 114 bytes.
Read block (114 bytes):
[

    In case you are allowed to request the document, please
    check your user-id and password and try again.

]
[chunk] < 9
Got chunk size: 9
Reading 9 bytes of response body.
Got 9 bytes.
Read block (9 bytes):
[</p>
<p>
]
[chunk] < 48
Got chunk size: 72
Reading 72 bytes of response body.
Got 72 bytes.
Read block (72 bytes):
[If you think this is a server error, please contact
the <a href="mailto:]
[chunk] < 1f
Got chunk size: 31
Reading 31 bytes of response body.
Got 14 bytes.
Read block (14 bytes):
[root@localhost]
Reading 17 bytes of response body.
Got 17 bytes.
Read block (17 bytes):
[">webmaster</a>.
]
[chunk] < 11
Got chunk size: 17
Reading 17 bytes of response body.
Got 17 bytes.
Read block (17 bytes):
[
</p>

<h2>Error ]
[chunk] < 21
Got chunk size: 33
Reading 33 bytes of response body.
Got 3 bytes.
Read block (3 bytes):
[401]
Reading 30 bytes of response body.
Got 30 bytes.
Read block (30 bytes):
[</h2>
<address>
  <a href="/">]
[chunk] < 23
Got chunk size: 35
Reading 35 bytes of response body.
Got 16 bytes.
Read block (16 bytes):
[papyrus.usask.ca]
Reading 19 bytes of response body.
Got 19 bytes.
Read block (19 bytes):
[</a><br />
  <span>]
[chunk] < 55
Got chunk size: 85
Reading 85 bytes of response body.
Got 50 bytes.
Read block (50 bytes):
[Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)]
Reading 35 bytes of response body.
Got 35 bytes.
Read block (35 bytes):
[</span>
</address>
</body>
</html>
]
[chunk] < 1
Got chunk size: 1
Reading 1 bytes of response body.
Got 1 bytes.
Read block (1 bytes):
[
]
[chunk] < 0
Got chunk size: 0
[hdr]
End of headers.
Running post_send hooks
Running pre_send hooks
compress: Initialization.
compress: Initialization.
Sending request headers:
PROPFIND /svn/dept/gt HTTP/1.1
Host: papyrus.usask.ca
User-Agent: SVN/1.4.6 (r28521) neon/0.26.3
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Content-Length: 300
Content-Type: text/xml
Depth: 0
Accept-Encoding: gzip
Accept-Encoding: gzip
Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxx

Sending request-line and headers:
Sending request body:
Body block (300 bytes):
[<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><version-controlled-configuration xmlns="DAV:"/><resourcetype xmlns="DAV:"/><baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/><repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/></prop></propfind>]
Request sent; retry is 1.
[status-line] < HTTP/1.1 207 Multi-Status
[hdr] Date: Fri, 08 Feb 2008 23:40:33 GMT
Header Name: [date], Value: [Fri, 08 Feb 2008 23:40:33 GMT]
[hdr] Server: Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)
Header Name: [server], Value: [Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)]
[hdr] Content-Length: 680
Header Name: [content-length], Value: [680]
[hdr] Keep-Alive: timeout=5, max=99
Header Name: [keep-alive], Value: [timeout=5, max=99]
[hdr] Connection: Keep-Alive
Header Name: [connection], Value: [Keep-Alive]
[hdr] Content-Type: text/xml; charset="utf-8"
Header Name: [content-type], Value: [text/xml; charset="utf-8"]
[hdr]
End of headers.
Reading 680 bytes of response body.
Got 680 bytes.
Read block (680 bytes):
[<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns1="http://subversion.tigris.org/xmlns/dav/" xmlns:ns0="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
<D:href>/svn/dept/gt/</D:href>
<D:propstat>
<D:prop>
<lp1:version-controlled-configuration><D:href>/svn/dept/!svn/vcc/default</D:href></lp1:version-controlled-configuration>
<lp1:resourcetype><D:collection/></lp1:resourcetype>
<lp3:baseline-relative-path>gt</lp3:baseline-relative-path>
<lp3:repository-uuid>2d47b262-a5da-0310-af36-9ee85df9eb2a</lp3:repository-uuid>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
]
Running post_send hooks
Request ends, status 207 class 2xx, error line:
207 Multi-Status
Running destroy hooks.
Request ends.
Running pre_send hooks
compress: Initialization.
compress: Initialization.
Sending request headers:
PROPFIND /svn/dept/!svn/vcc/default HTTP/1.1
Host: papyrus.usask.ca
User-Agent: SVN/1.4.6 (r28521) neon/0.26.3
Connection: TE
TE: trailers
Content-Length: 111
Content-Type: text/xml
Depth: 0
Accept-Encoding: gzip
Accept-Encoding: gzip
Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxx

Sending request-line and headers:
Sending request body:
Body block (111 bytes):
[<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><checked-in xmlns="DAV:"/></prop></propfind>]
Request sent; retry is 1.
[status-line] < HTTP/1.1 207 Multi-Status
[hdr] Date: Fri, 08 Feb 2008 23:40:33 GMT
Header Name: [date], Value: [Fri, 08 Feb 2008 23:40:33 GMT]
[hdr] Server: Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)
Header Name: [server], Value: [Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)]
[hdr] Content-Length: 401
Header Name: [content-length], Value: [401]
[hdr] Content-Type: text/xml; charset="utf-8"
Header Name: [content-type], Value: [text/xml; charset="utf-8"]
[hdr]
End of headers.
Reading 401 bytes of response body.
Got 401 bytes.
Read block (401 bytes):
[<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
<D:href>/svn/dept/!svn/vcc/default</D:href>
<D:propstat>
<D:prop>
<lp1:checked-in><D:href>/svn/dept/!svn/bln/5126</D:href></lp1:checked-in>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
]
Running post_send hooks
Request ends, status 207 class 2xx, error line:
207 Multi-Status
Running destroy hooks.
Request ends.
Running pre_send hooks
compress: Initialization.
compress: Initialization.
Sending request headers:
PROPFIND /svn/dept/!svn/bln/5126 HTTP/1.1
Host: papyrus.usask.ca
User-Agent: SVN/1.4.6 (r28521) neon/0.26.3
Connection: TE
TE: trailers
Content-Length: 148
Content-Type: text/xml
Depth: 0
Accept-Encoding: gzip
Accept-Encoding: gzip
Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxx

Sending request-line and headers:
Sending request body:
Body block (148 bytes):
[<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><baseline-collection xmlns="DAV:"/><version-name xmlns="DAV:"/></prop></propfind>]
Request sent; retry is 1.
[status-line] < HTTP/1.1 207 Multi-Status
[hdr] Date: Fri, 08 Feb 2008 23:40:33 GMT
Header Name: [date], Value: [Fri, 08 Feb 2008 23:40:33 GMT]
[hdr] Server: Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)
Header Name: [server], Value: [Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)]
[hdr] Content-Length: 458
Header Name: [content-length], Value: [458]
[hdr] Content-Type: text/xml; charset="utf-8"
Header Name: [content-type], Value: [text/xml; charset="utf-8"]
[hdr]
End of headers.
Reading 458 bytes of response body.
Got 458 bytes.
Read block (458 bytes):
[<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:" xmlns:ns0="DAV:">
<D:response xmlns:lp1="DAV:" xmlns:lp3="http://subversion.tigris.org/xmlns/dav/">
<D:href>/svn/dept/!svn/bln/5126</D:href>
<D:propstat>
<D:prop>
<lp1:baseline-collection><D:href>/svn/dept/!svn/bc/5126/</D:href></lp1:baseline-collection>
<lp1:version-name>5126</lp1:version-name>
</D:prop>
<D:status>HTTP/1.1 200 OK</D:status>
</D:propstat>
</D:response>
</D:multistatus>
]
Running post_send hooks
Request ends, status 207 class 2xx, error line:
207 Multi-Status
Running destroy hooks.
Request ends.
bzr: ERROR: No repository present: "svn+https://papyrus.usask.ca/svn/dept/gt/"
ne_session_destroy called.
ne_session_destroy called.
------------------------------------------------

Related branches

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

The http support of the 0.4 branch is broken at the moment. It appears to have regressed, partially because it is impossible to write tests for it.

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

any of the releases should work fine

Revision history for this message
Brian de Alwis (slyguy) wrote :

I tried 0.4.7 and 0.4.6 but both failed in the same way.

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

Can you post the output of "svn info https://papyrus.usask.ca/svn/dept/gt/" ?

Revision history for this message
Brian de Alwis (slyguy) wrote :
Download full text (44.6 KiB)

----------------------------------------------
$ svn info https://papyrus.usask.ca/svn/dept/gt/
Path: gt
URL: https://papyrus.usask.ca/svn/dept/gt
Repository Root: https://papyrus.usask.ca/svn/dept
Repository UUID: 2d47b262-a5da-0310-af36-9ee85df9eb2a
Revision: 5126
Node Kind: directory
Last Changed Author: bsd178
Last Changed Rev: 5050
Last Changed Date: 2008-01-31 16:55:14 -0600 (Thu, 31 Jan 2008)
----------------------------------------------

This is with the debug messages:
----------------------------------------------
$ svn info https://papyrus.usask.ca/svn/dept/gt/
Doing DNS lookup on papyrus.usask.ca...
Running pre_send hooks
compress: Initialization.
compress: Initialization.
Sending request headers:
PROPFIND /svn/dept/gt HTTP/1.1
Host: papyrus.usask.ca
User-Agent: SVN/1.4.6 (r28521) neon/0.26.3
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Content-Length: 300
Content-Type: text/xml
Depth: 0
Accept-Encoding: gzip
Accept-Encoding: gzip

Sending request-line and headers:
Connecting to 128.233.101.20
Sending request body:
Body block (300 bytes):
[<?xml version="1.0" encoding="utf-8"?><propfind xmlns="DAV:"><prop><version-controlled-configuration xmlns="DAV:"/><resourcetype xmlns="DAV:"/><baseline-relative-path xmlns="http://subversion.tigris.org/xmlns/dav/"/><repository-uuid xmlns="http://subversion.tigris.org/xmlns/dav/"/></prop></propfind>]
Request sent; retry is 0.
[status-line] < HTTP/1.1 401 Authorization Required
[hdr] Date: Sat, 09 Feb 2008 01:17:00 GMT
Header Name: [date], Value: [Sat, 09 Feb 2008 01:17:00 GMT]
[hdr] Server: Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)
Header Name: [server], Value: [Apache/2.2.4 (Mandriva Linux/PREFORK-6.3mdv2007.1)]
[hdr] WWW-Authenticate: Basic realm="CMPT Subversion Repository"
Header Name: [www-authenticate], Value: [Basic realm="CMPT Subversion Repository"]
[hdr] Vary: accept-language,accept-charset
Header Name: [vary], Value: [accept-language,accept-charset]
[hdr] Accept-Ranges: bytes
Header Name: [accept-ranges], Value: [bytes]
[hdr] Keep-Alive: timeout=5, max=100
Header Name: [keep-alive], Value: [timeout=5, max=100]
[hdr] Connection: Keep-Alive
Header Name: [connection], Value: [Keep-Alive]
[hdr] Transfer-Encoding: chunked
Header Name: [transfer-encoding], Value: [chunked]
[hdr] Content-Type: text/html; charset=iso-8859-1
Header Name: [content-type], Value: [text/html; charset=iso-8859-1]
[hdr] Content-Language: en
Header Name: [content-language], Value: [en]
[hdr]
End of headers.
[chunk] < 1e
Got chunk size: 30
Reading 30 bytes of response body.
Got 30 bytes.
Read block (30 bytes):
[<?xml version="1.0" encoding="]
[chunk] < af
Got chunk size: 175
Reading 175 bytes of response body.
Got 10 bytes.
Read block (10 bytes):
[ISO-8859-1]
Reading 165 bytes of response body.
Got 165 bytes.
Read block (165 bytes):
["?>
<!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" lang="]
[chunk] < e
Got chunk size: 14
Reading 14 bytes of response body.
Got 2 bytes.
Read block (2 bytes):
[en]
Reading 12 bytes of response body.
Got 12 bytes.
Read block (12 bytes):
[" xml:lang="]
[chunk] < 13...

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

Does running "bzr svn-branching-scheme svn+https://papyrus.usask.ca/svn/dept" work ok?

Revision history for this message
Brian de Alwis (slyguy) wrote : Re: [Bug 190331] Re: bzr-svn incorrectly reports "no repository present"

On 8-Feb-2008, at 7:42 PM, Jelmer Vernooij wrote:
> Does running "bzr svn-branching-scheme
> svn+https://papyrus.usask.ca/svn/dept" work ok?

Well kind of -- it seems to retrieve the right data and then sends a
request for the log report for the 1000 revisions and then seems to
hang (presumably while the server tries to process it). (I've
appended the last part of the log below.)

(I've noticed that Subversion 1.5 trunk will eventually time out
whereas Subversion 1.4.6 doesn't seem to time out.)

------------------------------
Running pre_send hooks
compress: Initialization.
compress: Initialization.
Sending request headers:
REPORT /svn/dept/!svn/bc/5126 HTTP/1.1
Host: papyrus.usask.ca
User-Agent: SVN/1.4.6 (r28521) neon/0.26.3
Connection: TE
TE: trailers
Content-Length: 210
Content-Type: text/xml
Accept-Encoding: gzip
Accept-Encoding: gzip
Authorization: xxxxxxxxxxxxxxxxxxxxxxxxxx

Sending request-line and headers:
Sending request body:
Body block (210 bytes):
[<S:log-report xmlns:S="svn:"><S:start-revision>0</S:start-
revision><S:end-revision>5126</S:end-revision><S:limit>1000</
S:limit><S:discover-changed-paths/><S:strict-node-history/><S:path></
S:path></S:log-report>]
Request sent; retry is 1.
------------------------------

--
  Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
       "Amusement to an observing mind is study." - Benjamin Disraeli

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

Fixed in bzr.

Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Low
milestone: none → 0.4.8
status: New → Fix Committed
Revision history for this message
Brian de Alwis (slyguy) wrote :

I'm encountering an error trying the fix out: your addition calls
Repository.open_containing(), but this method doesn't seem to exist in
bzr 1.1 or bzr.dev (error output below). Is the following patch the
right fix?

------------------------------
$ bzr diff
=== modified file '__init__.py'
--- __init__.py 2008-02-09 20:20:56 +0000
+++ __init__.py 2008-02-09 22:07:06 +0000
@@ -342,13 +342,16 @@
         from bzrlib.msgeditor import edit_commit_message
         from bzrlib.repository import Repository
         from bzrlib.trace import info
+ from bzrlib.bzrdir import BzrDir
         from repository import SvnRepository
         from scheme import scheme_from_branch_list
         def scheme_str(scheme):
             if scheme is None:
                 return ""
             return "".join(map(lambda x: x+"\n", scheme.to_lines()))
- repos = Repository.open_containing(location)[0]
+ bzrdir = BzrDir.open_containing(location)[0]
+ branch = bzrdir.open_branch()
+ repos = branch.repository
         if not isinstance(repos, SvnRepository):
             raise BzrCommandError("Not a Subversion repository: %s" %
location)
         if repository_wide:
------------------------------

Error message:
------------------------------
$ /usr/pkg/bin/python2.4 /scratch/dev/bzr.dev/bzr svn-branching-scheme
svn+https://papyrus.usask.ca/svn/dept/gt/
bzr: ERROR: exceptions.AttributeError: type object 'Repository' has no
attribute 'open_containing'

Traceback (most recent call last):
  File "/scratch/dev/bzr.dev/bzrlib/commands.py", line 834, in
run_bzr_catch_errors
    return run_bzr(argv)
  File "/scratch/dev/bzr.dev/bzrlib/commands.py", line 790, in run_bzr
    ret = run(*run_argv)
  File "/scratch/dev/bzr.dev/bzrlib/commands.py", line 492, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/bsd/.bazaar/plugins/svn/__init__.py", line 351, in run
    repos = Repository.open_containing(location)[0]
AttributeError: type object 'Repository' has no attribute
'open_containing'

bzr 1.2.0.dev.0 on python 2.4.4.final.0 (darwin)
arguments: ['/scratch/dev/bzr.dev/bzr', 'svn-branching-scheme', 'svn
+https://papyrus.usask.ca/svn/dept/gt/']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_CA.UTF-8'
plugins:
  automv /Users/bsd/.bazaar/plugins/automv [unknown]
  launchpad /scratch/dev/bzr.dev/bzrlib/plugins/launchpad
[unknown]
  svn /Users/bsd/.bazaar/plugins/svn [0.4.8dev0]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
------------------------------

--
Brian de Alwis | Software Practices Lab | UBC | http://www.cs.ubc.ca/~bsd/
      "Amusement to an observing mind is study." - Benjamin Disraeli

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

Whoops, it should be fixed properly now. Your fix is not correct since it assumes the specified URL refers to a branch, which is not necessarily always true.

Jelmer Vernooij (jelmer)
Changed in bzr-svn:
status: Fix Committed → Fix Released
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.