KnitVersionedFile No default access_method or index any more
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Subversion Plugin |
Fix Released
|
Undecided
|
Jelmer Vernooij |
Bug Description
I upgraded bzr to 1.4 using the installer for Python2.5. I already had bzr-svn-0.49 installed and afterwards most bzr commands did not complete.
--- snip ---
D:\ws\default\
Using last location: svn+https://<email address hidden>
bzr-svn is not up to date with installed bzr version 1.4.
There should be a newer version of bzr-svn available.
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "C:\Dev\
return run_bzr(argv)
File "C:\Dev\
ret = run(*run_argv)
File "C:\Dev\
return self.run(
File "C:\Dev\
result = func(*args, **kwargs)
File "C:\Dev\
missing_
File "C:\Dev\
result = func(*args, **kwargs)
File "C:\Dev\
remote_branch = Branch.
File "C:\Dev\
return control.
File "C:\Dev\
repos = self.find_
File "C:\Dev\
return SvnRepository(self, transport, self.branch_path)
File "C:\Dev\
self.fileid_map = SimpleFileIdMap
File "C:\Dev\
CachingFile
File "C:\Dev\
self.idmap_knit = KnitVersionedFi
File "C:\Dev\
raise ValueError("No default access_method or index any more" + str((access_method, index)))
ValueError: No default access_method or index any more(None, None)
bzr 1.4 on python 2.5.1 (win32)
arguments: ['C:\\Dev\
encoding: 'cp1252', fsenc: 'mbcs', lang: 'de'
plugins:
launchpad C:\Dev\
svn C:\Dev\
xmloutput C:\Dev\
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
--- snap ---
I have fixed this by applying the suggestion of bzr-1.4rc1 (API breaks):
C:\Dokumente und Einstellungen\
Standalone tree (format: pack-0.92-subtree)
Location:
branch root: .
Related branches:
parent branch: http://
C:\Dokumente und Einstellungen\
=== modified file 'fileids.py'
--- fileids.py 2008-03-22 19:58:46 +0000
+++ fileids.py 2008-05-07 12:51:30 +0000
@@ -17,7 +17,7 @@
from bzrlib import ui
from bzrlib.errors import NotBranchError, RevisionNotPresent
-from bzrlib.knit import KnitVersionedFile
+from bzrlib.knit import make_file_knit
from bzrlib.revision import NULL_REVISION
from bzrlib.trace import mutter
@@ -141,7 +141,7 @@
class CachingFileIdMap:
"""A file id map that uses a cache."""
def __init__(self, cache_transport, actual):
- self.idmap_knit = KnitVersionedFi
+ self.idmap_knit = make_file_
The version of bzr-svn you are using is not compatible with Bazaar 1.4, see the second line of output. The 0.4 branch will work with 1.4.