bzr unable to upgrade to rich-root/rich-root-pack format
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
New
|
Undecided
|
Unassigned |
Bug Description
I can easily repeat rhis failure with bzr 1.2 (on Linux) and bzr 1.3rc1 (on Windows). It's seems similar to bug #177874, but I encounter this when I try to upgrade one of my own branch, not bzr.dev. And then I found the same error for branch made from scratch.
Here's steps to reproduce:
C:\Temp\2>bzr init
C:\Temp\2>bzr info
Standalone tree (format: pack-0.92)
Location:
branch root: .
C:\Temp\2>echo foo > spam
C:\Temp\2>bzr add
added spam
C:\Temp\2>bzr ci -m 1
Committing to: C:/Temp/2/
added spam
Committed revision 1.
C:\Temp\2>echo bar > spam
C:\Temp\2>bzr ci -m 2
Committing to: C:/Temp/2/
modified spam
Committed revision 2.
C:\Temp\2>echo boo > spam
C:\Temp\2>bzr ci -m 3
Committing to: C:/Temp/2/
modified spam
Committed revision 3.
C:\Temp\2>bzr upgrade --rich-root-pack
starting upgrade of file:///C:/Temp/2/
making backup of tree history
file://
if conversion fails, you can move this directory back to .bzr
if it succeeds, you can remove this directory if you wish
starting repository conversion
bzr: ERROR: Revision {('<email address hidden>',)} not present in "<bzrlib.
0x06136A70>".
The important part is 3rd commit. With 1 or 2 commits in the branch upgrade succeeds.
Relevant part of .bzr.log:
0.381 encoding stdout as sys.stdout encoding 'cp866' root-pack' ] Bazaar\ plugins- repo plugins /C:/Temp/ 2/.bzr/ . commands. pyc", line 834, in run_bzr_ catch_errors commands. pyc", line 790, in run_bzr commands. pyc", line 492, in run_argv_aliases builtins. pyc", line 2460, in run upgrade. pyc", line 80, in upgrade upgrade. pyc", line 38, in __init__ upgrade. pyc", line 66, in convert bzrdir. pyc", line 2353, in convert repository. pyc", line 3053, in convert repository. pyc", line 907, in copy_content_into decorators. pyc", line 165, in write_locked repository. pyc", line 2835, in copy_content repository. pyc", line 949, in fetch decorators. pyc", line 165, in write_locked repository. pyc", line 2814, in fetch everything_ for_search root_texts versionedfile. pyc", line 122, in add_lines versions_ present present knit.KnitGraphI ndex object at 0x06136A70>".
0.391 bzr arguments: [u'upgrade', u'--rich-
0.391 looking for plugins in C:\work\
0.991 looking for plugins in C:/Program Files/Bazaar/
1.262 encoding stdout as sys.stdout encoding 'cp866'
1.512 creating repository in file://
1.712 fetch up to rev {None}
1.803 Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\fetch.pyc", line 389, in __init__
File "bzrlib\fetch.pyc", line 109, in __init__
File "bzrlib\fetch.pyc", line 139, in __fetch
File "bzrlib\fetch.pyc", line 177, in _fetch_
File "bzrlib\fetch.pyc", line 392, in _generate_
File "bzrlib\fetch.pyc", line 367, in generate_root_texts
File "bzrlib\
File "bzrlib\knit.pyc", line 990, in _add_lines
File "bzrlib\knit.pyc", line 977, in _check_
File "bzrlib\knit.pyc", line 1960, in check_versions_
RevisionNotPresent: Revision {('<email address hidden>',)} not present in
"<bzrlib.
1.803 return code 3