Skip to content

Instantly share code, notes, and snippets.

@hanrw
Forked from aras-p/hg and git snippets and stats.md
Created December 28, 2017 09:35
Show Gist options
  • Save hanrw/076f1d449079ca17ecc5bb68cf62f2ed to your computer and use it in GitHub Desktop.
Save hanrw/076f1d449079ca17ecc5bb68cf62f2ed to your computer and use it in GitHub Desktop.
hg churn and log cheat sheet
Graph of total commits by month, over last year:
hg churn -f "%Y-%m" -s -c -d "-365"
List of my commits over last year:
hg log -k aras -d "2013-01-01 to 2013-12-31" --template "{short(node)} {user(author)} {firstline(desc)}\n" >mycommits.txt
My lines changed count over last year (takes ages):
hg churn -r "user(aras)" -d "2013-01-01 to 2013-12-31" --diffstat
Commits over last 30 days by authors:
hg churn -d "-30" -c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment