Repo-Push fails due to svn problems

Bug #304508 reported by Martin Pilkington
4
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

I'm trying to do a repo-push of a project but it keeps failing due to a problem that seems to be something to do with subversion. The project used to be in Subversion a while ago and so I have .svn folders all over the place. I tried deleting the ones it complained about but not it's just coming up with an error saying "Malformed URL for respository'. Here's what gets printed out:

bzr: ERROR: bzrlib.plugins.svn.core.SubversionException: ('Malformed URL for repository', 170000)

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/martinpilkington/.bazaar/plugins/repo_push/__init__.py", line 46, in run
    repo_push(src_repo, dst_repo, pb=pb, overwrite=overwrite)
  File "/Users/martinpilkington/.bazaar/plugins/repo_push/repopush.py", line 90, in repo_push
    branches = list_branches(src_repo)
  File "/Users/martinpilkington/.bazaar/plugins/repo_push/repopush.py", line 20, in list_branches
    branch = br_dir.open_branch()
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/workingtree.py", line 858, in open_branch
    repos = self._find_repository()
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/workingtree.py", line 836, in _find_repository
    return SvnRepository(self, self.get_remote_transport().clone_root(),
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/workingtree.py", line 804, in get_remote_transport
    self._remote_transport = SvnRaTransport(self.svn_url)
  File "/Library/Python/2.5/site-packages/bzrlib/plugins/svn/errors.py", line 151, in convert
    raise convert_error(e)
SubversionException: ('Malformed URL for repository', 170000)

bzr 1.9 on python 2.5.1 (darwin)
arguments: ['/usr/local/bin/bzr', 'repo-push', 'sftp://<path removed for security, I can email it to you if you need it>', '--remember']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_GB.UTF-8'
plugins:
  bzrtools /Library/Python/2.5/site-packages/bzrlib/plugins/bzrtools [1.9.1]
  email /Library/Python/2.5/site-packages/bzrlib/plugins/email [unknown]
  extmerge /Library/Python/2.5/site-packages/bzrlib/plugins/extmerge [unknown]
  launchpad /Library/Python/2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  loom /Library/Python/2.5/site-packages/bzrlib/plugins/loom [1.4.0dev0]
  qbzr /Library/Python/2.5/site-packages/bzrlib/plugins/qbzr [0.9.5]
  rebase /Library/Python/2.5/site-packages/bzrlib/plugins/rebase [0.4.0dev0]
  repo_push /Users/martinpilkington/.bazaar/plugins/repo_push [1.1.0]
  search /Library/Python/2.5/site-packages/bzrlib/plugins/search [1.7.0dev0]
  svn /Library/Python/2.5/site-packages/bzrlib/plugins/svn [0.4.15dev0]
  upload /Library/Python/2.5/site-packages/bzrlib/plugins/upload [0.1.1]
  xmloutput_0_4_5 /Users/martinpilkington/.bazaar/plugins/xmloutput_0_4_5 [0.4.5]

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

Any chance you can post the output of ~/.bzr.log while this error occurs?

Revision history for this message
Martin Pilkington (pilky) wrote :
Download full text (3.9 KiB)

Sure:

Tue 2008-12-02 18:48:58 +0000
0.067 bzr arguments: [u'repo-push', u'sftp://<path removed for security, I can email it to you if you need it>', u'--remember']
0.067 looking for plugins in /Users/martinpilkington/.bazaar/plugins
0.094 looking for plugins in /Library/Python/2.5/site-packages/bzrlib/plugins
0.113 bzr-svn: using Subversion 1.4.4 ()
0.206 encoding stdout as sys.stdout encoding 'UTF-8'
0.465 ssh implementation is OpenSSH
6.505 SFTP.readv(pack-names) 1 offsets => 1 coalesced => 1 requests
6.640 opening SVN RA connection to 'file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/AGRegex.framework'
6.642 Unable to open <bzrlib.transport.local.LocalTransport url=file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/AGRegex.framework/> with Subversion: Unable to open an ra_local session to URL
6.643 opening SVN RA connection to 'file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/backup.bzr'
6.644 Unable to open <bzrlib.transport.local.LocalTransport url=file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/backup.bzr/> with Subversion: Unable to open an ra_local session to URL
6.644 opening SVN RA connection to 'file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/build'
6.645 Unable to open <bzrlib.transport.local.LocalTransport url=file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/build/> with Subversion: Unable to open an ra_local session to URL
6.646 opening SVN RA connection to 'file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/C.tmbundle'
6.646 Unable to open <bzrlib.transport.local.LocalTransport url=file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/C.tmbundle/> with Subversion: Unable to open an ra_local session to URL
6.647 opening SVN RA connection to 'file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/Code%20Collector.xcodeproj'
6.648 Unable to open <bzrlib.transport.local.LocalTransport url=file:///Users/martinpilkington/Personal/M3/Apps/Code%20Collector/Code%20Collector/dev/Code%20Collector.xcodeproj/> with Subversion: Unable to open an ra_local session to URL
6.651 opening SVN RA connection to 'http://www.svn.mcubedsw.com/codecollector/CodeCollector/trunk/Code Collector.xcodeproj'
6.654 Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 893, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 839, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 539, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Users/martinpilkington/.bazaar/plugins/repo_push/__init__.py", line 46, in run
    repo_push(src_repo, dst_repo, pb=pb, overwrite=overwrite)
  File "/Users/martinpilkington/.bazaar/plugins/repo_push/repopush.py", line 90, in repo_push
    branches = list_branches(src_repo)
  File "/Users/martinpilkington/.bazaar/plugins...

Read more...

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

There's a .svn directory still remaining that bzr is trying to open that you'll have to remove first.

The particular host that bzr is trying to resolve does not exist anymore, causing this exception. I've committed a fix to the 0.4 branch that should make that error a bit friendlier.

Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Low
milestone: none → 0.4.16
status: New → Fix Committed
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.