diff .zsh/50.vcs_functions.zsh @ 35:7e9269048856

Fix update_source_trees to also pull versioned mq if it exists.
author Augie Fackler <durin42@gmail.com>
date Sun, 11 Jan 2009 21:49:52 -0600
parents a5691a22c92b
children
line wrap: on
line diff
--- a/.zsh/50.vcs_functions.zsh
+++ b/.zsh/50.vcs_functions.zsh
@@ -60,6 +60,10 @@ function update_source_trees() {
             git gc
         elif [ -e .hg ] ; then
             echo $aa 'is an hg checkout, updating' && hg pull && hg up
+            if [ -e .hg/patches/.hg ] ; then
+               echo $aa 'has an mq, updating that too...'
+               hg -R .hg/patches pull -u
+            fi
         elif [ -e _MTN ] ; then
             echo $aa "is an mtn co, updating" && mtn pull && mtn up
         fi