Repositories shouldn't be considered for writing by Bazaar

Bug #77023 reported by Marius Gedminas
2
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
Low
Jelmer Vernooij

Bug Description

Bazaar currently looks upwards for repositories that it can use to store revisions. If one of the parent directories contains a subversion checkout, it will try to add revisions to that repository.

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

What version of bzr-svn are you running?

Revision history for this message
Marius Gedminas (mgedmin) wrote :

bzr-svn 0.1-0ubuntu1 from Ubuntu Edgy.

Revision history for this message
Marius Gedminas (mgedmin) wrote :

bzr-svn 0.2 with bzr 0.13 gives a different error:

bzr: ERROR: exceptions.NotImplementedError: <bound method SvnRepository.all_revision_ids of SvnRepository('svn+ssh://fridge/home/mg/svn/mg-home')>

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 626, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 588, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 292, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 756, in run
    revision_id, basis_dir)
  File "/usr/lib/python2.4/site-packages/bzrlib/bzrdir.py", line 680, in sprout
    result_repo.fetch(source_repository, revision_id=revision_id)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 270, in fetch
    pb=pb)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 51, in write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 1857, in fetch
    pb=pb)
  File "/usr/lib/python2.4/site-packages/bzrlib/fetch.py", line 109, in __init__
    self.__fetch()
  File "/usr/lib/python2.4/site-packages/bzrlib/fetch.py", line 132, in __fetch
    revs = self._revids_to_fetch()
  File "/usr/lib/python2.4/site-packages/bzrlib/fetch.py", line 156, in _revids_to_fetch
    self._last_revision)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 38, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 244, in missing_revision_ids
    return InterRepository.get(other, self).missing_revision_ids(revision_id)
  File "/usr/lib/python2.4/site-packages/bzrlib/decorators.py", line 38, in read_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.4/site-packages/bzrlib/repository.py", line 1789, in missing_revision_ids
    target_ids = set(self.target.all_revision_ids())
  File "/home/mg/.bazaar/plugins/bzr-svn-0.2/repository.py", line 279, in all_revision_ids
    raise NotImplementedError(self.all_revision_ids)
NotImplementedError: <bound method SvnRepository.all_revision_ids of SvnRepository('svn+ssh://fridge/home/mg/svn/mg-home')>

bzr 0.13.0 on python 2.4.4.candidate.1 (linux2)
arguments: ['/usr/bin/bzr', 'branch', 'rhythmbox_mpd/', 'TMP']

** please send this report to <email address hidden>

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

Thanks! This should be fixed in 0.2.

I filed a bug to get 0.2 into ubuntu, but that hasn't been processed yet. See #75837 for more information.

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

bzr-svn needs to somehow prevent bzr from adding revisions to a Subversion repository. For now, you should be able to work around this bug by running "bzr init-repo sftp://fridge/home/mg/svn/mg-home'

Changed in bzr-svn:
assignee: nobody → jelmer
importance: Undecided → Low
status: Unconfirmed → Confirmed
description: updated
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Fixed in r343.

Changed in bzr-svn:
status: Confirmed → 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.