Way to create branch with ghosts for tests ... Was: [Merge] lp:~philip-peitsch/bzr/annotate-ghost-revs into lp:bzr

John Arbash Meinel john at arbash-meinel.com
Mon Jun 7 22:04:38 BST 2010


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

Gary van der Merwe wrote:
> On Fri, Jun 4, 2010 at 4:22 PM, John A Meinel <john at arbash-meinel.com> wrote:
>> I would also mention that we probably would want a test for this case,
>> to help prevent it from regressing.
>>
>> I realize it is a bit hard to inject ghosts into the system, because it
>> is *designed* to not make it easy. (ATM, I think only bzr-svn is able to
>> label a text as coming from a ghost.)
> 
> A way to create a branch with ghosts in a test would be really great.
> One thing that qlog allways seems to regress on is ghosts, so I would
> realy like to have some tests for this.
> 
> 

This is the 'easiest' thing I could find to make it work (see
attachment) or this branch:
  lp:///~jameinel/bzr/2.2-create-ghost

Basically, it involves manually hacking on Inventory to set a
last-modified revision to a ghost revision, and then inserting the
appropriate text into the repository.

get_parent_map() should then return a ghost parent, and content, etc
should consider itself to be part of that ghost revision.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwNXuYACgkQJdeBCYSNAAP0qgCfbrSxXAZtu81AIToQqimZq8Fg
QPMAn0IUU7EEc0sfmQ/ruZztYs3rgvOJ
=y8b0
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: create-ghost.diff
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20100607/333f8443/attachment.txt 


More information about the bazaar mailing list