hi team
i have a python pre commit hook script i need a help from your side i have visualsvn server installed in my system
i want to execute this pre commit hook script which is written in python for that i need a batch script to cal the python script can u help me :
can u guide me what all i have to do to execute this python script successfully in visualsvn server
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook with the following ordered arguments: # [1] REPOS-PATH (the path to this repository) # [2] TXN-NAME (the name of the txn about to be committed) SVNLOOK=/usr/bin/svnlook REPOS="$1" TXN="$2" # Scan through the transaction diff looking for things that look # like conflict markers. If we find one, we abort the commit. SUSPICIOUS=$($SVNLOOK diff -t "$TXN" "$REPOS" | grep -E '^\+(<{7} \.|={7}$|>{7} \.)' | wc -l) if [ $SUSPICIOUS -ne 0 ]; then echo "Some parts of your checkin look suspiciously like merge conflict markers." >&2 echo "Please check your diff and try again." >&2 exit 1 fi # python /home/svn/vinyl/hooks/svn_dir_lock.py -v "$TXN" "$REPOS" >&2 # EXIT_STATUS=$? # if [ $EXIT_STATUS -ne 0 ]; then # echo "Delete locks before you checkin." >&2 # exit 1 # fi
thanks and regards
shivaprakash