# HG changeset patch # User Steve Losh # Date 1247728234 14400 # Node ID 4a595961551e2c949220efc5bf4259f3c392201d # Parent aa40029d16194b8de325c777d5b8eca04dcb4cb4 Add a pull_everything bash function. diff -r aa40029d1619 -r 4a595961551e .bashrc --- a/.bashrc Sat Jul 11 12:01:19 2009 -0400 +++ b/.bashrc Thu Jul 16 03:10:34 2009 -0400 @@ -27,6 +27,15 @@ source ~/lib/hg/bash_completion source ~/lib/virtualenvwrapper_bashrc +# Useful functions ----------------------------------------------------------- + +pull_everything() { + for repo in $( ls -1 ); do + [ -d $repo ] && [ -d $repo/.hg ] && hg -R $repo pull + echo + done +} + # Prompt stuff --------------------------------------------------------------- D=$'\e[37;40m'