error NoSuchRevision during update

Bug #670284 reported by Mikael Andersson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QBzr
Confirmed
Medium
Unassigned

Bug Description

A trunk and feature branch were created in a shared repository. An Update of the feature branch resulted in the error below.

The following actions were done in Bazaar Explorer:

Created a shared repository with a trunk branch.
Created a feature branch which I bound to the trunk.
Created three files: a.txt, b.txt and c.txt in the trunk.
Added and commited above files.
The files were then pulled into the feature branch.

The rest of the actions, I do not remember, but I hope the details are clear from the trace below.

---------------------

Run command: bzr update -r revid:<email address hidden>
All changes applied successfully.
bzr: ERROR: bzrlib.errors.NoSuchRevision: BzrBranch7(file:///C:/Bazaar%20test/repository/test_feature/) has no revision <email address hidden>

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 912, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1112, in run_bzr
  File "bzrlib\commands.pyo", line 690, in run_argv_aliases
  File "bzrlib\commands.pyo", line 705, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\commands.py", line 767, in run
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\subprocess.py", line 888, in run_subprocess_command
  File "bzrlib\commands.pyo", line 1112, in run_bzr
  File "bzrlib\commands.pyo", line 690, in run_argv_aliases
  File "bzrlib\commands.pyo", line 705, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "bzrlib\builtins.pyo", line 1448, in run
  File "bzrlib\decorators.pyo", line 140, in read_locked
  File "bzrlib\branch.pyo", line 365, in revision_id_to_dotted_revno
  File "bzrlib\branch.pyo", line 385, in _do_revision_id_to_dotted_revno
NoSuchRevision: BzrBranch7(file:///C:/Bazaar%20test/repository/test_feature/) has no revision <email address hidden>

bzr 2.2.1 on python 2.6.4 (Windows-Vista-6.0.6001-SP1)
arguments: ['C:\\Program Files\\Bazaar\\bzr.exe', 'qsubprocess', '--bencode', 'l6:update2:-r69:revid:<email address hidden>']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [2.2.0]
  colo C:\Program Files\Bazaar\plugins\colo [0.1.0]
  explorer C:\Users\emilann\AppData\Roaming\bazaar\2.0\plugins\explorer [1.1.1]
  fastimport C:\Program Files\Bazaar\plugins\fastimport [0.9.0dev]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [2.2.1]
  loom C:\Program Files\Bazaar\plugins\loom [2.2.1dev]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store [2.2.1]
  news_merge C:\Program Files\Bazaar\plugins\news_merge [2.2.1]
  pipeline C:\Program Files\Bazaar\plugins\pipeline [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.19.2]
  rewrite C:\Program Files\Bazaar\plugins\rewrite [0.6.1]
  svn C:\Program Files\Bazaar\plugins\svn [1.0.4]
  upload C:\Program Files\Bazaar\plugins\upload [1.0.0dev]
  xmloutput C:\Program Files\Bazaar\plugins\xmloutput [0.8.6]

*** 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
    including this traceback and a description of the problem.

Revision history for this message
Andrew Bennetts (spiv) wrote :

I'm going to tentatively reassign this to qbzr, as I think the cause may be there rather than bzr itself: it appears that qbzr is specifying a revision ID to 'bzr update' that isn't in the ancestry of the branch, which causes this error. Perhaps it is trying to update a working tree of the test_feature branch to a revision only found in the ancestry of the trunk branch?

I'm not certain the root cause isn't bzr itself, so please feel free to assign it back if you think I'm wrong.

affects: bzr → qbzr
Revision history for this message
Gary van der Merwe (garyvdm) wrote :

The only way that qbzr automatic adds a -r parameter to update, is when using the qlog "Update to this revision" feature. But using that, I was only able to get this error:

Run command: bzr update -r revid:<email address hidden>
bzr: ERROR: branch has no revision <email address hidden>
bzr update --revision only works for a revision in the branch history

Anyway, qlog should not give you the option "Update to this revision" for revisions that are not ancestor of the branch tip.

Mikael: if I have correctly diagnosed what happened, then you are trying to update in the wrong way. To do what I think you want, just click on the "Update" option in Bzr Explorer.

Changed in qbzr:
importance: Undecided → Medium
status: New → Confirmed
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.