2008/3/19, Matt Mackall &lt;<a href="mailto:mpm@selenic.com">mpm@selenic.com</a>&gt;:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br> On Wed, 2008-03-19 at 14:18 +0100, Peter Weseloh wrote:<br> &gt; Hi,<br> &gt; basically the subject says it already: Is there a simple way in<br> &gt; Mercurial to find out if a changeset is in the parent list (following<br>
 &gt; merges) of another changeset?<br> &gt; Background is that I have a executable and I know the changeset sha id<br> &gt; it was build from. Now I want to know if a certain feature/bugfix<br> &gt; (from which I also know the sha id ) is in the exe. I was able to find<br>
 &gt; this out using &#39;hg view&#39; but due to many branches/merges this was<br> &gt; quite complicated.<br> &gt; With the changesets forming a DAG this question should be simple to<br> &gt; answer, right? Unfortunately I could not find a command or simple<br>
 &gt; combination of commands to do this. Any ideas?<br> <br> <br>With the latest hg, you can do:<br> <br> $ hg debugancestor 540 533<br> 533:b8404005d6d5345c717fed50cc6c946f4faa8d45<br> <br> That says, the common ancestor of revisions 540 and 533 is 533. That is,<br>
 540 is a direct descendant of 533.<br> <br> In older hg, you had to explicitly tell it to use the changelog:<br> <br> $ hg debugancestor .hg/store/00changelog.i 540 533<br> 533:b8404005d6d5345c717fed50cc6c946f4faa8d45<br>
 <br><br> --<br> Mathematics is the supreme nostalgia of our time.<br> <br> </blockquote></div>Great! Exactly what I was looking for. Maybe it would be good to make this a more &#39;offical&#39; command, or not?<br><br>Anyhow thanks a lot,<br>
Peter<br><br>