Login | Register
My pages Projects Community openCollabNet

Discussions > commits > svn commit: r542 - trunk/perhost/closettop.sh

argouml-gen
Discussion topic

Back to topic list

svn commit: r542 - trunk/perhost/closettop.sh

Reply

Author linus
Full name Linus Tolke
Date 2009-03-11 07:15:39 PDT
Message Author: linus
Date: 2009-03-11 07:15:39-0700
New Revision: 542

Modified:
   trunk/perhost/closettop.sh

Log:
Modified to not run the svn commands one time to many if all works out.

Modified: trunk/perhost/closettop.sh
Url: http://argouml-gen.t​igris.org/source/bro​wse/argouml-gen/trun​k/perhost/closettop.​sh?view=diff&pat​hrev=542&r1=541​&r2=542
====================​====================​====================​==================
--- trunk/perhost/closettop.sh (original)
+++ trunk/perhost/closettop.sh 2009-03-11 07:15:39-0700
@@ -28,20 +28,32 @@
 
 (
   cd argouml-stats &&
- svn update || sleep 10 && svn update
+ if svn update
+ then
+ : ok
+ else
+ : try again
+ sleep 10
+ svn update
+ fi
 ) || exit 1
 
 LOG=argouml-stats/ww​w/closettop.log
 
 function COMMIT() {
   message=$1
- svn commit -m"$message
-Corresponding to $REVISIONS." ||
- sleep 30 &&
- svn commit -m"$message
+ if svn commit -m"$message
+Corresponding to $REVISIONS."
+ then
+ : ok
+ else
+ : try again
+ sleep 30
+ svn commit -m"$message
 Corresponding to $REVISIONS.
 Second attempt to commit." ||
- echo ERROR: $(date): Two commit attempts failed in $(pwd) with message $message. Giving up.
+ echo ERROR: $(date): Two commit attempts failed in $(pwd) with message $message. Giving up.
+ fi
 }
 
 function DO_ONE_TARGET() {

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r542 - trunk/perhost/closettop.sh linus Linus Tolke 2009-03-11 07:15:39 PDT
Messages per page: