[BUG] statcache incorrectly assumes that cache has something in it.
Martin Pool
mbp at sourcefrog.net
Fri May 20 03:07:03 BST 2005
On Thu, 2005-05-19 at 11:23 -0400, Aaron Bentley wrote:
> -----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.
It may make that assumption, but I can't see why it would cause this
error, which seems to be to do with a malformed line in the statcache.
> 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:~$
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050520/357824ea/attachment.pgp
More information about the bazaar
mailing list