Created
October 31, 2012 12:22
-
-
Save bripkens/3986755 to your computer and use it in GitHub Desktop.
Mercurial changeset summary as JSON file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
OUT="changesets.json" | |
echo "[" > $OUT | |
hg log | grep "^changeset:" | sed 's/changeset.*:/ "/g' | sed 's/$/",/g' | sed '$s/,$//' >> $OUT | |
echo ']' >> $OUT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment