changeset 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 1c70c9393f45
children 74e6d193f4a8
files .zsh/50.vcs_functions.zsh
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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