# HG changeset patch # User Steve Losh # Date 1264971207 18000 # Node ID 194d59fd43a854bc5d9be3b992daacba21a39175 # Parent 060a976d718cd0614680691cc22bb272fbd413d5 Improve hgt. diff -r 060a976d718c -r 194d59fd43a8 zsh/mercurial.zsh --- 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