Mercurial > dotfiles
changeset 122:c0b922a69304
Merge.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 02 Jul 2009 11:34:30 -0500 |
parents | 8989839d4c6c (current diff) 5f00625aa1ed (diff) |
children | b2a07050b430 |
files | |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.shell.d/50.vcs_functions.sh +++ b/.shell.d/50.vcs_functions.sh @@ -121,6 +121,13 @@ function update_source_trees() { if [ -e .svn ] ; then echo $aa 'is an svn checkout, updating' svn up + elif [ -e README.txt ] \ + && [ -e format ] \ + && grep "This is a Subversion repository; use the 'svnadmin' tool to examine" README.txt > /dev/null \ + && svn pl --revprop -r 0 file://$(pwd) | fgrep svn:sync-from-url > /dev/null\ + ; then + echo "$aa looks like an svnsync clone, syncing" + svnsync sync file://$(pwd) elif [ -e .git/svn ] ; then echo $aa 'is a git-svn checkout, updating' git svn fetch @@ -143,6 +150,7 @@ function update_source_trees() { popd > /dev/null done } +alias update-source-trees=update_source_trees function vcs_current_branch() { git branch 2> /dev/null > /dev/null