Crashed when trying to import an svn repository

Bug #310063 reported by Vadim Peretokin
2
Affects Status Importance Assigned to Milestone
Bazaar
Invalid
Undecided
Unassigned
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

vadi@ubuntu:~/Programs/Mudlet2$ bzr svn-import --help
Purpose: Convert a Subversion repository to a Bazaar repository.
Usage: bzr svn-import FROM_LOCATION [TO_LOCATION]

Options:
  --all Convert all revisions, even those not in current branch
                    history (forbids --standalone).
  -v, --verbose Display more information.
  --standalone Create standalone branches.
  -q, --quiet Only display errors and warnings.
  --trees Create working trees.
  --keep Don't delete branches removed in Subversion.
  --prefix=ARG Only consider branches of which path starts with prefix.
  --incremental Import revisions incrementally.
  --scheme=ARG Branching scheme (none, trunk, etc). Default: auto.
  -h, --help Show help message.

Description:
  To save disk space, only branches will be created by default
  (no working trees). To create a tree for a branch, run "bzr co" in
  it.

From: plugin "svn"
vadi@ubuntu:~/Programs/Mudlet2$ bzr co svn-import https://mudlet.svn.sourceforge.net/svnroot/mudlet
bzr: ERROR: Not a branch: "/home/vadi/Programs/Mudlet2/svn-import/".
vadi@ubuntu:~/Programs/Mudlet2$ bzr svn-import https://mudlet.svn.sourceforge.net/svnroot/mudlet
Initialising Subversion metadata cache in /home/vadi/.bazaar/svn-cache/458d04d4-e695-4b81-9072-6f8dd6aa0114
bzr: ERROR: exceptions.AttributeError: 'SvnCheckout' object has no attribute 'create_repository'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 299, in run
    keep=keep, incremental=incremental)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/convert.py", line 162, in convert_repository
    target_repos = get_dir("").create_repository(shared=True)
AttributeError: 'SvnCheckout' object has no attribute 'create_repository'

bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'svn-import', 'https://mudlet.svn.sourceforge.net/svnroot/mudlet']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_CA.UTF-8'
plugins:
  avahi /usr/lib/python2.5/site-packages/bzrlib/plugins/avahi [0.3.0dev0]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.13]
*** 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.
vadi@ubuntu:~/Programs/Mudlet2$ bzr svn-import svn+https://mudlet.svn.sourceforge.net/svnroot/mudlet
The svn+ syntax is deprecated, use https://mudlet.svn.sourceforge.net/svnroot/mudlet instead.
bzr: ERROR: exceptions.AttributeError: 'SvnCheckout' object has no attribute 'create_repository'

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 818, in ignore_pipe
    result = func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/__init__.py", line 299, in run
    keep=keep, incremental=incremental)
  File "/usr/lib/python2.5/site-packages/bzrlib/plugins/svn/convert.py", line 162, in convert_repository
    target_repos = get_dir("").create_repository(shared=True)
AttributeError: 'SvnCheckout' object has no attribute 'create_repository'

bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'svn-import', 'svn+https://mudlet.svn.sourceforge.net/svnroot/mudlet']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_CA.UTF-8'
plugins:
  avahi /usr/lib/python2.5/site-packages/bzrlib/plugins/avahi [0.3.0dev0]
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]
  svn /usr/lib/python2.5/site-packages/bzrlib/plugins/svn [0.4.13]
*** 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.
vadi@ubuntu:~/Programs/Mudlet2$
vadi@ubuntu:~/Programs/Mudlet2$ bzr status
bzr: ERROR: Not a branch: "/home/vadi/Programs/Mudlet2/".
vadi@ubuntu:~/Programs/Mudlet2$ bzr version
Bazaar (bzr) 1.6.1
  Python interpreter: /usr/bin/python 2.5.2
  Python standard library: /usr/lib/python2.5
  bzrlib: /usr/lib/python2.5/site-packages/bzrlib
  Bazaar configuration: /home/vadi/.bazaar
  Bazaar log file: /home/vadi/.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.

vadi@ubuntu:~/Programs/Mudlet2$

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

You're trying to import into a Subversion repository, while you should be importing into a Bazaar repository.

Changed in bzr:
status: New → Invalid
Changed in bzr-svn:
assignee: nobody → jelmer
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

We should be printing a nicer error message in this situation.

Changed in bzr-svn:
importance: Undecided → Low
milestone: none → 0.5.0
status: New → Triaged
Revision history for this message
Vadim Peretokin (vperetokin) wrote : Re: [Bug 310063] Re: Crashed when trying to import an svn repository

Thanks, that was my mistake.

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