Find changctx after a given changectx
Berkes Adam
adam.berkes at intland.com
Thu Oct 15 13:31:50 UTC 2009
I'm trying to explain more - I have an ascii "glog" like this:
@ 29
| o 28
| | o 27
| o | 26
o | | 25
| o | 24
o/ | 23
| o 22
R | 21
R - remote repository tip before my push
@ - my current tip
I push these 8 changeset, and on a hook I get changectx for 22 as
parameter (as I can understand now). I would like to collect all
changeset from 22 to 29 without I care about their ancesity (my wrong
descendant version will get only [22,27]). I see the function
walkchangerevs (cmdutils) which can be usable for me (walk until
returned changeset date is older than 22) but that is a backward manner:
for me "walk forwards to gather data" (quote from the class doc) is
enough started from a given changeset.
Adam
> On Thu, Oct 15, 2009 at 14:57, Berkes Adam <adam.berkes at intland.com> wrote:
>
>> 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?
>>
>
> If you want to look at the commit dates, you're basically going to
> have the entire changelog graph and check each changeset's date field.
>
> Cheers,
>
> Dirkjan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20091015/2ed7887c/attachment.html>
More information about the Mercurial-devel
mailing list