changectx descendants()
Berkes Adam
adam.berkes at intland.com
Thu Oct 15 08:27:20 UTC 2009
Hi,
I would like to get all changes from a change context (update hook):
update = [ctx]
update.extend(ctx.descendants())
Unfortunately if there are multiply changes on two heads which has been
merged at the end, and all these changesets are pushed, only the merge
and changes of 1 (before merge) head are added to the array:
The push debug says:
list of changesets:
7ef0ad485a6d5e59ffc31eeeea979af6ca6ebee3
6688de837da95ba85d7931978b91905d814d1dc8
616bd3b59a63784a87b5cdad3d77d3ab1ef1cb15
adding changesets
add changeset 7ef0ad485a6d
add changeset 6688de837da9
add changeset 616bd3b59a63
However my debug says:
descendants:
[<changectx 7ef0ad485a6d>, <changectx 616bd3b59a63>]
(I want all those changesets mentioned in 'list of changesets')
I supposed descendants() follow all parents. Am I retrive this info
wrongly? Also: is there 'more' documentation on core classes like
changectx or revlog?
Thanks in advance,
Adam Berkes
More information about the Mercurial-devel
mailing list