Skip to content

Instantly share code, notes, and snippets.

@smerrill
Created May 18, 2011 14:30
Show Gist options
  • Save smerrill/978683 to your computer and use it in GitHub Desktop.
Save smerrill/978683 to your computer and use it in GitHub Desktop.
The best part of waking up?
#!/bin/bash
for i in `hg heads . | grep changeset: | awk '{ print $2; }' | egrep -o '^[0-9]+' | sort -n`; do
hg merge $i;
hg commit -m "Merge of doom.";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment