MethylBlue
  1. Filelight
  2. Codeine
  3. Wocka
  4. Blog
  5. Detritus
  6. Home
RSS

Using TortoiseSVN from the Command Line

  1. Save this script to /usr/local/bin/svn (ie. c:\cygwin\usr\local\bin\svn)
  2. Ammend the svn variable
  3. chmod u+x /usr/local/bin/svn

As long as /usr/local/bin is first in the path, you can use TortoiseSVN for the good bits, and the command line svn client for the rest.


# Use TortoiseSVN from the cli
# Public Domain, Max Howell 2008

path=$2
test -z $path && path=.
test -e $path && path=`cygpath -wa $path`

svn='/cygdrive/c/dev/tools/TortoiseSVN/bin/TortoiseProc.exe /notempfile'

case $1 in
up | update) $svn /command:update /path:"$path";;
ci | commit) $svn /command:commit /path:"$path";;
log) $svn /command:log /path:"$path";;
props) $svn /command:properties /path:"$path";;
*) /usr/bin/svn $@;;
esac

Leave a Reply