Contains extension
This extension is not distributed with Mercurial.
Author: Christoph Rissner
Extension site: http://bitbucket.org/resi/hg-contains/
Overview
This extension provides a contains command to test whether a changeset is a parent to another one. This can be used to test whether some changeset is contained in a branch or not. There is an option to look for transplanted changesets as well.
Configuration
Configure your .hgrc to enable the extension by adding following lines:
[extensions] contains=/path/to/contains.py
(with the actual path to your file, of course)
Usage
hg contains [-c childrev] [-t] rev This command tests whether the changeset given in 'rev' is a parent to the changeset given in 'child'. If no 'child' revision is given, the current working directory is used. If 'transplants' is given transplanted changesets are followed as well. options: -c --child check relationship to the given child changeset -t --transplants check transplanted changesets