[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Additions to N. Commands that make us *better* than CVS

From: Ben Collins-Sussman <sussman_at_newton.ch.collab.net>
Date: 2001-03-30 04:37:57 CEST

Or, because Greg Stein has already started stubbing out SWIG bindings,
you can rest assured that someday we'll have SVN library bindings for
Perl, Python, Guile... and even Ruby. I *know* that Ruby will make you
happy, Thom. :)

Thom Wood <thom@collab.net> writes:

> it would be nice if svn had a either a scripting mode or better script support then cvs.
>
> Example of svn script mode.
>
> ==============================
> #!/bin/sh
>
> editor="emacs"
>
> if [ ! -z "$SVN_EDITOR" ]; then
> editor="$SVN_EDITOR"
> fi
>
> svn task <<EndOF
> cd to/working/copy
> if not CheckTree(Up-to-Date)
> update
> if CheckTree(Conflicts)
> error "Please resolve conflicts"
> endif
> endif
> commit -editor="$editor"
> EndOF
>
> ==============================
>
> Example of better script support
>
> ==============================
> #!/bin/sh
>
> editor="emacs"
>
> if [ ! -z "$SVN_EDITOR" ]; then
> editor="$SVN_EDITOR"
> fi
>
> cd to/working/copy
>
> if ! svn check-tree="Up-to-Date" ; then
> svn update
> if svn check-tree="Conficts" ; then
> echo "Please resolve conflicts"
> exit 1
> fi
> fi
> svn commit -editor="$editor"
>
> ==============================
>
> --
> --thom wood
> --
Received on Sat Oct 21 14:36:26 2006

This is an archived mail posted to the Subversion Dev mailing list.