Skip to content

Instantly share code, notes, and snippets.

@bradsokol
Last active August 29, 2015 13:55
Show Gist options
  • Save bradsokol/8735365 to your computer and use it in GitHub Desktop.
Save bradsokol/8735365 to your computer and use it in GitHub Desktop.
Mercurial Hook to Confirm Push
[hooks]
preoutgoing = bash -c 'read -p "Really push to $HG_URL? " -n 4 RESP ; [ "$RESP" == "yes" ]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment