I stumbled over this while I had a network outage...

$ until fossil configuration pull all && fossil sync ; do echo; echo; date; 
echo; echo; sleep 5 ; done

                 Bytes      Cards  Artifacts     Deltas
Sent:              58          1          0          0
fossil: cannot connect to host server:port
Total network traffic: 0 bytes sent, 0 bytes received
Server:    http://user@server:port/repo
                 Bytes      Cards  Artifacts     Deltas
Sent:            3545         75          0          0
fossil: cannot connect to host server:port
Total network traffic: 0 bytes sent, 0 bytes received

Or in other words:

$ fossil sync
Server:    http://user@server:port/repo
                 Bytes      Cards  Artifacts     Deltas
Sent:            3545         75          0          0
waiting for server...fossil: cannot connect to host server:port
Total network traffic: 0 bytes sent, 0 bytes received
$ echo $?
0

Imho it should have exit status != 0 in the case where the network 
communication failed due to an error.

$ fossil version
This is fossil version 1.18 [df9da91ba8] 2011-07-13 23:03:41 UTC


Regards,

-Martin
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to