bzr diff fails with bzrlib.errors.NoSuchRevision

Bug #352924 reported by Daniel Lidström
2
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Hello,

I've just tried bzr 1.13.1 and here's my experience. After I did
the first commit I can no longer show the log. Some background:
I have checked out from subversion:

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
info
Repository checkout (format: unnamed)
Location:
  repository checkout root: .
        checkout of branch:
svn+https://svn.sbg.se/svn/projects/Products/Development/branches/nautilus_2
009_01
         shared repository:
C:/Users/Daniel.SBG/Programming/projects/nautilus-repo

Related branches:
  submit branch:
https://svn.sbg.se/svn/projects/svn/Products/Development/branches/nautilus_2
009_01

Here's what I then did:

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
ci --local -m "- Do not write IrregularLine when creat
ing CoordGeom."
Committing to:
C:/Users/Daniel.SBG/Programming/projects/nautilus-repo/nautilus_2009_01/
modified Geo/Src/GDoc/Lin/LinCvt.cpp
Committed revision 112.

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
qlog
C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
send --mail-to <email address hidden> svn+https://svn.sbg.se/
svn/projects/Products/Development/branches/nautilus_2009_01
The svn+ syntax is deprecated, use
https://svn.sbg.se/svn/projects/Products/Development/branches/nautilus_2009_
01 instead.
bzr: ERROR: bzrlib.errors.NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/
repository/') has no revision
<email address hidden>

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 716, in exception_to_return_code
  File "bzrlib\commands.pyo", line 911, in run_bzr
  File "bzrlib\commands.pyo", line 547, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 4756, in run
  File "bzrlib\builtins.pyo", line 4830, in _run
  File "bzrlib\merge_directive.pyo", line 505, in from_objects
  File "bzrlib\merge_directive.pyo", line 159, in _generate_diff
  File "bzrlib\diff.pyo", line 428, in show_diff_trees
  File "bzrlib\diff.pyo", line 833, in show_diff
  File "bzrlib\diff.pyo", line 893, in _show_diff
  File "bzrlib\diff.pyo", line 916, in diff
  File "bzrlib\diff.pyo", line 494, in _diff_many
  File "bzrlib\diff.pyo", line 616, in diff
  File "bzrlib\diff.pyo", line 440, in _patch_header_date
  File "bzrlib\revisiontree.pyo", line 103, in get_file_mtime
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repofmt\knitrepo.pyo", line 214, in get_revision
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repository.pyo", line 1280, in get_revision_reconcile
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repository.pyo", line 1298, in _get_revisions
NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/repository/') has no revis
ion <email address hidden>

bzr 1.13 on python 2.5.2 (win32)
arguments: ['bzr', 'send', '--mail-to', '<email address hidden>',
'svn+https://svn.sbg.se/svn/projects/Products/Development/branches/naut
ilus_2009_01']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.13]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
  netrc_credential_store C:\Program
Files\Bazaar\plugins\netrc_credential_store [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.9.8]
  svn C:\Program Files\Bazaar\plugins\svn [0.5.3]
*** 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.

Ooops, something is wrong at this stage. I try again, this time without the
path:

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
send --mail-to <email address hidden>
Using saved submit location
"https://svn.sbg.se/svn/projects/svn/Products/Development/branches/nautilus_
2009_01" to determine what
 changes to submit.
bzr: ERROR: Invalid http response for
https://svn.sbg.se/svn/projects/svn/Products/Development/branches/nautilus_2
009_01/.bzr/bran
ch-format: Unable to handle http code 401: Authorization Required

Moving on:

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
up
The svn+ syntax is deprecated, use
https://svn.sbg.se/svn/projects/Products/Development/branches/nautilus_2009_
01 instead.
 M Geo/Src/GDoc/Lin/LinCvt.cpp
All changes applied successfully.
 M Geo/Src/GDoc/Lin/LinCvt.cpp
All changes applied successfully.
Updated to revision 111.
Your local commits will now show as pending merges with 'bzr status', and
can be committed with 'bzr commit'.

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
st
modified:
  Geo/Src/GDoc/Lin/LinCvt.cpp
pending merge tips: (use -v to see all merge revisions)
  Daniel Lidström 2009-03-31 - Do not write IrregularLine when creating
CoordGeom.

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
diff
=== modified file 'Geo/Src/GDoc/Lin/LinCvt.cpp'
bzr: ERROR: bzrlib.errors.NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/
repository/') has no revision
<email address hidden>

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 716, in exception_to_return_code
  File "bzrlib\commands.pyo", line 911, in run_bzr
  File "bzrlib\commands.pyo", line 547, in run_argv_aliases
  File "bzrlib\commands.pyo", line 926, in ignore_pipe
  File "bzrlib\builtins.pyo", line 1768, in run
  File "bzrlib\diff.pyo", line 428, in show_diff_trees
  File "bzrlib\diff.pyo", line 833, in show_diff
  File "bzrlib\diff.pyo", line 893, in _show_diff
  File "bzrlib\diff.pyo", line 916, in diff
  File "bzrlib\diff.pyo", line 494, in _diff_many
  File "bzrlib\diff.pyo", line 616, in diff
  File "bzrlib\diff.pyo", line 440, in _patch_header_date
  File "bzrlib\workingtree_4.pyo", line 1662, in get_file_mtime
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repofmt\knitrepo.pyo", line 214, in get_revision
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repository.pyo", line 1280, in get_revision_reconcile
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repository.pyo", line 1298, in _get_revisions
NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/repository/') has no revis
ion <email address hidden>

bzr 1.13 on python 2.5.2 (win32)
arguments: ['bzr', 'diff']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.13]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
  netrc_credential_store C:\Program
Files\Bazaar\plugins\netrc_credential_store [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.9.8]
  svn C:\Program Files\Bazaar\plugins\svn [0.5.3]
*** 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.

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
qlog
bzr: ERROR: bzrlib.errors.NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/
repository/') has no revision
<email address hidden>

Traceback (most recent call last):
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\diff.py", line 213, in
initial_load
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\uifactory.py", line 32, in
decorate
  File "C:/Program Files/Bazaar/plugins\qbzr\lib\diff.py", line 305, in
load_diff
  File "bzrlib\revisiontree.pyo", line 103, in get_file_mtime
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repofmt\knitrepo.pyo", line 214, in get_revision
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repository.pyo", line 1280, in get_revision_reconcile
  File "bzrlib\decorators.pyo", line 138, in read_locked
  File "bzrlib\repository.pyo", line 1298, in _get_revisions
NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/repository/') has no revis
ion <email address hidden>

bzr 1.13 on python 2.5.2 (win32)
arguments: ['bzr', 'qlog']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.13]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
  netrc_credential_store C:\Program
Files\Bazaar\plugins\netrc_credential_store [unknown]
  qbzr C:\Program Files\Bazaar\plugins\qbzr [0.9.8]
  svn C:\Program Files\Bazaar\plugins\svn [0.5.3]
*** 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.

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
info
Repository checkout (format: unnamed)
Location:
  repository checkout root: .
        checkout of branch:
svn+https://svn.sbg.se/svn/projects/Products/Development/branches/nautilus_2
009_01
         shared repository:
C:/Users/Daniel.SBG/Programming/projects/nautilus-repo

Related branches:
  submit branch:
https://svn.sbg.se/svn/projects/svn/Products/Development/branches/nautilus_2
009_01

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
log
... lots of text. nothing wrong with the output.

However, now I can do qlog again:

C:\Users\Daniel.SBG\Programming\projects\nautilus-repo\nautilus_2009_01>bzr
qlog

No errors this time. Sorry for a very long mail, but to summarize my actions
(redundant output removed):

bzr ci --local -m "- Do not write IrregularLine when creating CoordGeom."
bzr qlog
bzr send --mail-to <email address hidden>
svn+https://svn.sbg.se/svn/projects/Products/Development/branches/nautilus_2
009_01
bzr: ERROR: bzrlib.errors.NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/repository/') has no revision
<email address hidden>
bzr up
bzr st
bzr diff
bzr: ERROR: bzrlib.errors.NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/repository/') has no revision
<email address hidden>
bzr qlog
bzr: ERROR: bzrlib.errors.NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/repository/') has no revision
<email address hidden>
bzr info
bzr log
bzr qlog
bzr diff
bzr: ERROR: bzrlib.errors.NoSuchRevision:
KnitPackRepository('file:///C:/Users/Daniel.SBG/Programming/projects/nautilu
s-repo/.bzr/
repository/') has no revision
<email address hidden>

So it seems bzr log corrected some problem and allowed me to do bzr qlog
again, but then bzr diff shows the error is still there.

I'm not sure if this has been filed before. I tried to search for this in
launch pad but I didn't find anything.

Regards,

Daniel Lidström,
Software Developer
SBG AB

Revision history for this message
Daniel Lidström (daniel-lidstrom) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.