Hi John,
I tried a couple of commands with svn and they all seemed to return 0, 
including trying to "svn add" a non-existent file.
So it looks like the normal shell script technique of checking $? as the next 
step after a command won't work.

Subversion has API's for several  languages.
Perl and Python are both listed.

There are some examples in the redbean book.
- http://svnbook.red-bean.com/en/1.6/svn-book.html

Good luck, and I hope this helps.
Rob
 

--
Rob Echlin, B. Eng.
613-266-8311 -  Ottawa, ON
http://talksoftware.wordpress.com  - http://picasaweb.google.com/coderoller



>________________________________
> From: Prof J C Nash (U30A) <nas...@uottawa.ca>
>To: linux@lists.oclug.on.ca 
>Sent: Wednesday, July 17, 2013 2:13:53 PM
>Subject: [OCLUG-Tech] detecting subversion not connected
> 
>
>Hi,
>
>I've a small script to allow me to update a sort of diary log. The 
>process is, in summary form,
>
>    svn update
>    gedit myfile
>    svn -m "put it back" commit
>
>I'd like to detect a failure to connect on the update and/or commit 
>stages so that I can do something that lets me locally save changes to 
>update later. Somehow I think this should be fairly common, but my 
>search so far had not been fruitful.
>
>Best, JN
>_______________________________________________
>Linux mailing list
>Linux@lists.oclug.on.ca
>http://oclug.on.ca/mailman/listinfo/linux
>
>
>
_______________________________________________
Linux mailing list
Linux@lists.oclug.on.ca
http://oclug.on.ca/mailman/listinfo/linux

Reply via email to