diff .shell.d/50.vcs_functions.sh @ 169:040ac89ffe1e

ez-svn-sync: add usage help
author Augie Fackler <durin42@gmail.com>
date Wed, 16 Dec 2009 10:34:54 -0600
parents f485c32913cd
children efa2bfc73d2d
line wrap: on
line diff
--- a/.shell.d/50.vcs_functions.sh
+++ b/.shell.d/50.vcs_functions.sh
@@ -9,9 +9,13 @@ function mq () {
 }
 
 function ezsvnsync() {
-    local url
+    if [ x"$1" = "x" ] ; then
+        echo 'usage: ez-svn-sync repo url'
+        return 0
+    fi
     local repo
     repo=$1
+    local url
     url=$2
     svnadmin create $repo
     echo '#!/bin/sh' >> $repo/hooks/pre-revprop-change