bzr: ERROR: bzrlib.errors.NoSuchRevision in _walk_to_common_revisions on RemoteRepository

Bug #539773 reported by Angel Guzman Maeso
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Undecided
Unassigned
bzr (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: bzr

$ bzr merge lp:~shakaran/tivion/trunk
bzr: ERROR: bzrlib.errors.NoSuchRevision: RemoteRepository(bzr+ssh://bazaar.launchpad.net/~shakaran/tivion/trunk/.bzr/) has no revision <email address hidden>

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    attaching the crash file
        /home/shakaran/.cache/crash/bzr-20100316174344-14141.crash
    and including a description of the problem.

    The crash file is plain text and you can inspect or edit it to remove
    private information.

ProblemType: Bug
Architecture: i386
Date: Tue Mar 16 19:42:56 2010
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20091126)
Package: bzr 2.1.0-1
ProcEnviron:
 LANG=es_ES.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic-pae
SourcePackage: bzr
Uname: Linux 2.6.32-16-generic-pae i686

Traceback:
 Traceback (most recent call last):
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 853, in exception_to_return_code
     return the_callable(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 1055, in run_bzr
     ret = run(*run_argv)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 661, in run_argv_aliases
     return self.run_direct(**all_cmd_args)
   File "/usr/lib/python2.6/dist-packages/bzrlib/commands.py", line 665, in run_direct
     return self._operation.run_simple(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 122, in run_simple
     self.cleanups, self.func, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
     result = func(*args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3794, in run
     location, revision, remember, possible_transports, pb)
   File "/usr/lib/python2.6/dist-packages/bzrlib/builtins.py", line 3923, in _get_merger_from_branch
     other_revision_id, base_revision_id, other_branch, base_branch)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 363, in from_revision_ids
     merger.set_other_revision(other, other_branch)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 505, in set_other_revision
     self._maybe_fetch(other_branch, self.this_branch, self.other_rev_id)
   File "/usr/lib/python2.6/dist-packages/bzrlib/merge.py", line 522, in _maybe_fetch
     target.fetch(source, revision_id)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/branch.py", line 593, in fetch
     pb=pb)
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1704, in fetch
     find_ghosts=find_ghosts, fetch_spec=fetch_spec)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 194, in write_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3432, in fetch
     pb=pb, find_ghosts=find_ghosts)
   File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 83, in __init__
     self.__fetch()
   File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 105, in __fetch
     search = self._revids_to_fetch()
   File "/usr/lib/python2.6/dist-packages/bzrlib/fetch.py", line 174, in _revids_to_fetch
     find_ghosts=self.find_ghosts)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 140, in read_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 1531, in search_missing_revision_ids
     revision_id, find_ghosts)
   File "/usr/lib/python2.6/dist-packages/bzrlib/decorators.py", line 140, in read_locked
     result = unbound(self, *args, **kwargs)
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3498, in search_missing_revision_ids
     return self._walk_to_common_revisions([revision_id])
   File "/usr/lib/python2.6/dist-packages/bzrlib/repository.py", line 3476, in _walk_to_common_revisions
     self.source, ghosts_to_check.pop())
 NoSuchRevision: RemoteRepository(bzr+ssh://bazaar.launchpad.net/~shakaran/tivion/trunk/.bzr/) has no revision <email address hidden>

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
Revision history for this message
Martin Pool (mbp) wrote :

Hi,

Thanks for the report.

Is the branch that you were trying to merge this into public?

Did you do anything strange or unusual with either of these branches?

Strangely enough this command does work:

bzr log -r revid:<email address hidden> lp:~shakaran/tivion/trunk

Could it be you were pushing to this branch at the same time as merging from it?

description: updated
summary: - bzr: ERROR: bzrlib.errors.NoSuchRevision: RemoteRepository
+ bzr: ERROR: bzrlib.errors.NoSuchRevision in _walk_to_common_revisions on
+ RemoteRepository
tags: added: hpss
Changed in bzr:
status: New → Incomplete
Revision history for this message
Angel Guzman Maeso (shakaran) wrote :

I was a couple of commands today on windows and linux. I trying to merge a branch and update. I am a bit confuse with merging/branching. Also I convert the format version of my branch:

$ bzr check
Checking working tree at '/home/shakaran/sandbox/tivion-0.0.4'.
Checking branch at 'file:///home/shakaran/sandbox/tivion-0.0.4/'.
Checking repository at 'file:///home/shakaran/sandbox/tivion-0.0.4/'.
checked repository <bzrlib.transport.local.LocalTransport url=file:///home/shakaran/sandbox/tivion-0.0.4/> format <RepositoryFormatKnitPack1>
   558 revisions
   264 file-ids
checked branch file:///home/shakaran/sandbox/tivion-0.0.4/ format Branch format 6

$ bzr upgrade --2a
starting upgrade of file:///home/shakaran/sandbox/tivion-0.0.4/
making backup of file:///home/shakaran/sandbox/tivion-0.0.4/.bzr
  to file:///home/shakaran/sandbox/tivion-0.0.4/backup.bzr
starting repository conversion
Doing on-the-fly conversion from <RepositoryFormatKnitPack1> to <RepositoryFormat2a>.
This may take some time. Upgrade the repositories to the same format for better performance.

repository converted
finished

$ bzr update
Tree is up to date at revision 416 of branch /home/shakaran/sandbox/tivion-0.0.4
shakaran@magmus:~/sandbox/tivion-0.0.4$ bzr merge tivion
Nothing to do.

If I put your command:

$ bzr log -r revid:<email address hidden> lp:~shakaran/tivion/trunk
bzr: ERROR: Server sent an unexpected error: ('error', 'Revision {<email address hidden>} not present in "CHKInventoryRepository(\'lp-66552656:///~shakaran/tivion/trunk/.bzr/repository\')".')

Jelmer Vernooij (jelmer)
Changed in bzr (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for bzr (Ubuntu) because there has been no activity for 60 days.]

Changed in bzr (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Bazaar because there has been no activity for 60 days.]

Changed in bzr:
status: Incomplete → Expired
Jelmer Vernooij (jelmer)
Changed in bzr:
status: Expired → Confirmed
Changed in bzr (Ubuntu):
status: Expired → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
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.