[BUG] statcache incorrectly assumes that cache has something in it.

Aaron Bentley aaron.bentley at utoronto.ca
Thu May 19 16:23:11 BST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

baz2bzr is now failing after one revision, because all the files are too
new for the statcache, but the statcache assumes there's at least one file.

abentley at troll:~$ baz2bzr \
aaron.bentley at utoronto.ca--be/bugs-everywhere--devel--0 bzrbe
Traceback (most recent call last):

~  File "/home/abentley/bin/baz2bzr", line 310, in ?
~    import_version(output_dir, pybaz.Version(sys.argv[1]))
~  File "/home/abentley/bin/baz2bzr", line 189, in import_version
~    for result in iter_import_version(output_dir, version, tempdir):
~  File "/home/abentley/bin/baz2bzr", line 231, in iter_import_version
~    committer=log.creator, timestamp=timestamp, timezone=0)
~  File "/home/abentley/bzrtools/bzrlib/branch.py", line 554, in commit
~    commit(self, *args, **kw)
~  File "/home/abentley/bzrtools/bzrlib/commit.py", line 77, in commit
~    work_tree = branch.working_tree()
~  File "/home/abentley/bzrtools/bzrlib/branch.py", line 587, in
working_tree
~    return WorkingTree(self.base, self.read_working_inventory())
~  File "/home/abentley/bzrtools/bzrlib/workingtree.py", line 40, in
__init__
~    self._update_statcache()
~  File "/home/abentley/bzrtools/bzrlib/workingtree.py", line 97, in
_update_statcache
~    self._statcache = statcache.update_cache(self.basedir, self.inventory)
~  File "/home/abentley/bzrtools/bzrlib/statcache.py", line 208, in
update_cache
~    cache = load_cache(basedir)
~  File "/home/abentley/bzrtools/bzrlib/statcache.py", line 163, in
load_cache
~    text_sha = f[1]
IndexError: list index out of range
abentley at troll:~$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCjK9f0F+nu1YWqI0RAhScAJ9jliQuT8u/1N/sgy9+D10rGnmMoACdGiuS
ooOsYZb9nqj+Uta0UU5cfPE=
=9yVb
-----END PGP SIGNATURE-----




More information about the bazaar mailing list