warning- bzrtools.dev will be broken today

Aaron Bentley aaron.bentley at utoronto.ca
Wed Aug 30 12:32:22 BST 2006


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

Robert Collins wrote:
> On Wed, 2006-08-30 at 01:21 -0400, Aaron Bentley wrote:
>> def create_checkout_metadata(source, to_location, revision_id=None):
>>     if revision_id is None:
>>         revision_id = source.last_revision()
>>     wt = create_checkout(source, to_location, NULL_REVISION)
>> ...
>>
>> Do you think it's correct to treat the null revision as a ghost?  I
>> think probably not.  Anyhow, it used to work, and it's not an obvious
>> bug that it did.  So I think we need a deprecation at least. 
> 
> Is that function in bzrtools or bzr.dev? If its in bzr.dev, I think we
> can fix it internally.

create_checkout_metadata is in bzrtools, but it ultimately calls
BzrDir.create_workingtree(NULL_REVISION), which now fails.

File "/home/abentley/.bazaar/plugins/bzrtools/baz_import.py", line 394,
in bzrlib.plugins.bzrtools.baz_import.import_version
Failed example:
    import_version(result_path, version) #doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.4/doctest.py", line 1243, in __run
        compileflags, 1) in test.globs
      File "<doctest
bzrlib.plugins.bzrtools.baz_import.import_version[15]>", line 1, in ?
        import_version(result_path, version) #doctest: +ELLIPSIS
      File "/home/abentley/.bazaar/plugins/bzrtools/baz_import.py", line
430, in import_version
        max_count=max_count, standalone=standalone):
      File "/home/abentley/.bazaar/plugins/bzrtools/baz_import.py", line
597, in iter_import_version
        target_tree = create_checkout_metadata(target_branch, revdir)
      File "/home/abentley/.bazaar/plugins/bzrtools/baz_import.py", line
527, in create_checkout_metadata
        wt = create_checkout(source, to_location, NULL_REVISION)
      File "/home/abentley/.bazaar/plugins/bzrtools/baz_import.py", line
521, in create_checkout
        return checkout.create_workingtree(revision_id)
      File "/home/abentley/bzr/bzr.dev/bzrlib/bzrdir.py", line 835, in
create_workingtree
        return WorkingTreeFormat.get_default_format().initialize(self,
revision_id)
      File "/home/abentley/bzr/bzr.dev/bzrlib/workingtree.py", line
1920, in initialize
        wt.set_parent_trees([(revision_id, basis_tree)])
      File "/home/abentley/bzr/bzr.dev/bzrlib/decorators.py", line 51,
in write_locked
        return unbound(self, *args, **kwargs)
      File "/home/abentley/bzr/bzr.dev/bzrlib/workingtree.py", line 757,
in set_parent_trees
        allow_leftmost_as_ghost=allow_leftmost_as_ghost)
      File "/home/abentley/bzr/bzr.dev/bzrlib/decorators.py", line 51,
in write_locked
        return unbound(self, *args, **kwargs)
      File "/home/abentley/bzr/bzr.dev/bzrlib/workingtree.py", line 739,
in set_parent_ids
        raise errors.GhostRevisionUnusableHere(leftmost_id)
    GhostRevisionUnusableHere: Ghost revision {null:} cannot be used here.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE9XdG0F+nu1YWqI0RAs6gAJ9JTbH4FiaG2ZivBXSH6TgTKk7fDACfdD/2
GgthL4J9003jdOD+p+hCLMM=
=/P8G
-----END PGP SIGNATURE-----




More information about the bazaar mailing list