Skip to content

Instantly share code, notes, and snippets.

@bripkens
Created October 31, 2012 12:22
Show Gist options
  • Save bripkens/3986755 to your computer and use it in GitHub Desktop.
Save bripkens/3986755 to your computer and use it in GitHub Desktop.
Mercurial changeset summary as JSON file
#!/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