hg log --user "Shawn Smith" --template "{rev}:{author}\n" | wc -l
http://mercurial.selenic.com/wiki/GenericTemplatingPlan
Edit: Oh, oh, and another way to count without even using wc -l, using the churn extension and a revset!
hg --config extensions.churn= churn -r "user('Shawn Smith')" -c
hg churn -r "user('Shawn Smith')" -c
http://mercurial.selenic.com/wiki/GenericTemplatingPlan
Edit: Oh, oh, and another way to count without even using wc -l, using the churn extension and a revset!
Naturally, if you enable the churn extension in your ~/.hgrc, this is just Mercurial is a very cool DVCS, and it makes me very happy, and its features need to be more frequently talked about. :-)