Create a Mercurial changeset summary in JSON format
#!/bin/bash
OUT="changesets.json"
echo "[" > $OUT
hg log | \
grep "^changeset:" | \
sed 's/changeset.*:/ "/g' | \
sed 's/$/",/g' | \
sed '$s/,$//' >> $OUT
echo ']' >> $OUT
Written by Ben Ripkens
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#