NoSuchRevision exception pulling in a previously working branch from a svn branch using the bzr foreign branch + bzr-svn 0.6

Bug #363443 reported by Jean-Francois Roy
6
Affects Status Importance Assigned to Milestone
Bazaar Subversion Plugin
Fix Released
High
Jelmer Vernooij

Bug Description

bzr: ERROR: bzrlib.errors.NoSuchRevision: <bzrlib.plugins.svn.revids.RevisionIdMapCache object at 0x1d258d0> has no revision <email address hidden>

Traceback (most recent call last):
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 727, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 922, in run_bzr
    ret = run(*run_argv)
  File "/Library/Python/2.5/site-packages/bzrlib/commands.py", line 559, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/Library/Python/2.5/site-packages/bzrlib/builtins.py", line 940, in run
    possible_transports=possible_transports)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/workingtree.py", line 1573, in pull
    possible_transports=possible_transports)
  File "/Library/Python/2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/Library/Python/2.5/site-packages/bzrlib/branch.py", line 849, in pull
    possible_transports=possible_transports, *args, **kwargs)
  File "/Users/bahamut/.bazaar/plugins/svn/branch.py", line 692, in pull
    result.new_revmeta, _ = self.source.repository._get_revmeta(result.new_revid)
  File "/Users/bahamut/.bazaar/plugins/svn/repository.py", line 847, in _get_revmeta
    (uuid, branch, revnum), mapping = self.lookup_revision_id(revision_id)
  File "/Users/bahamut/.bazaar/plugins/svn/repository.py", line 927, in lookup_revision_id
    return self.revmap.get_branch_revnum(revid, layout, project)
  File "/Users/bahamut/.bazaar/plugins/svn/revids.py", line 225, in get_branch_revnum
    raise e
NoSuchRevision: <bzrlib.plugins.svn.revids.RevisionIdMapCache object at 0x1d258d0> has no revision <email address hidden>

summary: - NoSuchRevision exception pulling in a previously-working branch from a
+ NoSuchRevision exception pulling in a previously working branch from a
svn branch using the bzr foreign branch + bzr-svn 0.6
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

it seems you had specified -r, is that correct?

this is an issue in bzr itself; it should catch the NoSuchRevision that is being raised if stop_revision is not in the source branch.

E.g. try running "bzr pull -rrevid:fsdfdsfds <some-native-branch>"

affects: bzr-svn → bzr
Revision history for this message
Jean-Francois Roy (jeanfrancois.roy) wrote :

That is not correct, the command was simply "bzr pull", with a saved pull location (the remote svn branch).

Jelmer Vernooij (jelmer)
affects: bzr → bzr-svn
Changed in bzr-svn:
assignee: nobody → Jelmer Vernooij (jelmer)
importance: Undecided → High
status: New → 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.