Fossil SCM

Minor code style and spacing cleanup.

mistachkin 2014-06-13 23:34 trunk
Commit 40d5560f22f5e8d82e2605683d1c7964bd3f25bc
3 files changed +1 -1 +3 -3 +1 -1
+1 -1
--- src/branch.c
+++ src/branch.c
@@ -176,11 +176,11 @@
176176
177177
/* Commit */
178178
db_end_transaction(0);
179179
180180
/* Do an autosync push, if requested */
181
- if( !isPrivate ) autosync_loop(SYNC_PUSH,db_get_int("autosync-tries", 1));
181
+ if( !isPrivate ) autosync_loop(SYNC_PUSH, db_get_int("autosync-tries", 1));
182182
}
183183
184184
/*
185185
** Prepare a query that will list branches.
186186
**
187187
--- src/branch.c
+++ src/branch.c
@@ -176,11 +176,11 @@
176
177 /* Commit */
178 db_end_transaction(0);
179
180 /* Do an autosync push, if requested */
181 if( !isPrivate ) autosync_loop(SYNC_PUSH,db_get_int("autosync-tries", 1));
182 }
183
184 /*
185 ** Prepare a query that will list branches.
186 **
187
--- src/branch.c
+++ src/branch.c
@@ -176,11 +176,11 @@
176
177 /* Commit */
178 db_end_transaction(0);
179
180 /* Do an autosync push, if requested */
181 if( !isPrivate ) autosync_loop(SYNC_PUSH, db_get_int("autosync-tries", 1));
182 }
183
184 /*
185 ** Prepare a query that will list branches.
186 **
187
+3 -3
--- src/sync.c
+++ src/sync.c
@@ -77,18 +77,18 @@
7777
return rc;
7878
}
7979
8080
/*
8181
** This routine will try a number of times to perform autosync with a
82
-** .5 second sleep between attempts; returning the last autosync status.
82
+** 0.5 second sleep between attempts; returning the last autosync status.
8383
*/
8484
int autosync_loop(int flags, int nTries){
8585
int n = 0;
8686
int rc = 0;
87
- while( (n==0 || n < nTries) && (rc = autosync(flags)) ){
87
+ while( (n==0 || n<nTries) && (rc=autosync(flags)) ){
8888
if( rc ){
89
- if( ++n < nTries ){
89
+ if( ++n<nTries ){
9090
fossil_warning("Autosync failed, making another attempt.");
9191
sqlite3_sleep(500);
9292
}else{
9393
fossil_warning("Autosync failed.");
9494
}
9595
--- src/sync.c
+++ src/sync.c
@@ -77,18 +77,18 @@
77 return rc;
78 }
79
80 /*
81 ** This routine will try a number of times to perform autosync with a
82 ** .5 second sleep between attempts; returning the last autosync status.
83 */
84 int autosync_loop(int flags, int nTries){
85 int n = 0;
86 int rc = 0;
87 while( (n==0 || n < nTries) && (rc = autosync(flags)) ){
88 if( rc ){
89 if( ++n < nTries ){
90 fossil_warning("Autosync failed, making another attempt.");
91 sqlite3_sleep(500);
92 }else{
93 fossil_warning("Autosync failed.");
94 }
95
--- src/sync.c
+++ src/sync.c
@@ -77,18 +77,18 @@
77 return rc;
78 }
79
80 /*
81 ** This routine will try a number of times to perform autosync with a
82 ** 0.5 second sleep between attempts; returning the last autosync status.
83 */
84 int autosync_loop(int flags, int nTries){
85 int n = 0;
86 int rc = 0;
87 while( (n==0 || n<nTries) && (rc=autosync(flags)) ){
88 if( rc ){
89 if( ++n<nTries ){
90 fossil_warning("Autosync failed, making another attempt.");
91 sqlite3_sleep(500);
92 }else{
93 fossil_warning("Autosync failed.");
94 }
95
+1 -1
--- src/update.c
+++ src/update.c
@@ -130,11 +130,11 @@
130130
capture_case_sensitive_option();
131131
db_must_be_within_tree();
132132
vid = db_lget_int("checkout", 0);
133133
user_select();
134134
if( !dryRunFlag && !internalUpdate ){
135
- if( autosync_loop(SYNC_PULL + SYNC_VERBOSE*verboseFlag,
135
+ if( autosync_loop(SYNC_PULL + SYNC_VERBOSE*verboseFlag,
136136
db_get_int("autosync-tries", 1)) ){
137137
fossil_fatal("Cannot proceed with update");
138138
}
139139
}
140140
141141
--- src/update.c
+++ src/update.c
@@ -130,11 +130,11 @@
130 capture_case_sensitive_option();
131 db_must_be_within_tree();
132 vid = db_lget_int("checkout", 0);
133 user_select();
134 if( !dryRunFlag && !internalUpdate ){
135 if( autosync_loop(SYNC_PULL + SYNC_VERBOSE*verboseFlag,
136 db_get_int("autosync-tries", 1)) ){
137 fossil_fatal("Cannot proceed with update");
138 }
139 }
140
141
--- src/update.c
+++ src/update.c
@@ -130,11 +130,11 @@
130 capture_case_sensitive_option();
131 db_must_be_within_tree();
132 vid = db_lget_int("checkout", 0);
133 user_select();
134 if( !dryRunFlag && !internalUpdate ){
135 if( autosync_loop(SYNC_PULL + SYNC_VERBOSE*verboseFlag,
136 db_get_int("autosync-tries", 1)) ){
137 fossil_fatal("Cannot proceed with update");
138 }
139 }
140
141

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button