On Fri, Sep 26, 2008 at 01:32:50PM +0100, Stacey Jonathan Marshall wrote: > For numerous reasons we want to be able to tell what changeset was the > parents tip when it was cloned or last updated, merged and recommit-ed. > I've looked through the help and tried different combinations of > commands and flags and cant find this information.
If you've already pulled the changes from the parent gate (but haven't merged your changes in yet), then you can use "hg debugancestor rev1 rev2" to get that information, where "rev1" and "rev2" are the revision from "hg heads". That's all scriptable, if you use --template with hg heads. You can also do something similar if you haven't pulled yet. Do "hg outgoing -l1 --template '{node}\n'", and run "hg parents -r <rev>" on that revision. Danek