How to find out if a changeset contains another changeset?

Benoit Boissinot bboissin at gmail.com
Wed Mar 19 10:41:40 CDT 2008


On Wed, Mar 19, 2008 at 2:18 PM, Peter Weseloh
<peter.weseloh at googlemail.com> wrote:
> Hi,
> basically the subject says it already: Is there a simple way in Mercurial to
> find out if a changeset is in the parent list (following merges) of another
> changeset?
> Background is that I have a executable and I know the changeset sha id it
> was build from. Now I want to know if a certain feature/bugfix (from which I
> also know the sha id ) is in the exe. I was able to find this out using 'hg
> view' but due to many branches/merges this was quite complicated.
>  With the changesets forming a DAG this question should be simple to answer,
> right? Unfortunately I could not find a command or simple combination of
> commands to do this. Any ideas?
>
hg debugancestor n1 n2, if the result is n1 or n2, then one is
included in the other

regards,

Benoit


More information about the Mercurial mailing list