--- a/zsh/mercurial.zsh Sat Jan 30 13:27:36 2010 -0500
+++ b/zsh/mercurial.zsh Sun Jan 31 15:53:27 2010 -0500
@@ -2,7 +2,8 @@
alias mq='hg -R $(hg root)/.hg/patches'
alias tmd="hg tmd -X '**fixtures**' | mate"
-alias hgt='hg log -vd "`date -j \"+%Y-%m-%d\"`" -u steve | grep "{t:"'
+alias calctime="sed -e 's/{t: *\([0-9]*\)*.*/\1/' | python -c 'import sys; print sum(map(int, sys.stdin.readlines())) / 60.0, \"hours\"'"
+alias hgt='hg log -vd "`date -j \"+%Y-%m-%d\"`" -u steve | grep "{t:" | calctime'
function pull_everything() {
for repo in $( ls -1 ); do