Paystey
Paystey

Reputation: 3242

Mercurial post update hook

Is there a way to run a hook after an update command (e.g. hg up -r tagName).

I don't really have much experience in hooks and it seems most guides are based on post commits, pulls or pushes. In a team we commit and push regularly, but only update those instances when ready with a new revision. So we only want to run some code when that state of working directory is needed. Not every commit or push.

Capisce?

Upvotes: 1

Views: 1704

Answers (1)

Alex Krauss
Alex Krauss

Reputation: 10393

This book chapter mentions that there is an update hook, which should do exactly what you want.

Upvotes: 1

Related Questions