Help needed (Fwd: [Bug 162505] [qannotate] Got traceback using latest bzr.dev)
John Arbash Meinel
john at arbash-meinel.com
Fri Nov 16 15:32:21 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Alexander Belchenko wrote:
> Aaron Bentley пишет:
>> Alexander Belchenko wrote:
>>> Help from our bzrlib core experts needed.
>>> I think I ran into similar problem too in the past,
>>> but I can't reproduce it on my win32 box now.
>>>
>>> Any suggestions or tips?
>>
>> It looks like that revision is a ghost revision. bzrlib clients must
>> tolerate ghost revisions.
>
> Is there any simple way to create branch with ghost revisions
> to test this issue? May be bzrlib already have similar test?
> Can you point me?
>
>
I think you can do:
tree = self.make_branch_and_tree('tree')
rev_id = tree.commit('first')
tree.set_parent_ids([rev_id, 'ghost-revision'])
tree.commit('referencing ghost')
There may also be something you can do with
'set_parent_trees([(rev_id, None)])'
John
=;->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHPbgFJdeBCYSNAAMRAklLAJ0eeEMSNRPP6xcKr2qkMGgVuMyq+wCgyzie
yz2Qz5oCMMDSRWyEnf5H+3Y=
=ZbSF
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list