Find changctx after a given changectx
Berkes Adam
adam.berkes at intland.com
Thu Oct 15 12:57:39 UTC 2009
Ok, I understand in the meantime, that the question is silly, so I
reformulate it. My approach was completely wrong, descendants will only
show changes for my current changeset subtree rooted from 'ctx'. What I
really need is a method to find all changesets created after 'ctx' date
(regardless of ancesity). Can it be easily retrieved somehow?
Adam
> 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
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel
>
More information about the Mercurial-devel
mailing list