Fossil SCM

Alway run autosync prior to an "update" even when specifying a specific check-in to update to.

drh 2009-11-03 19:43 UTC trunk
Commit f57990b65abcacd7b7fb0465ae36dc8b92122267
1 file changed +1 -10
+1 -10
--- src/update.c
+++ src/update.c
@@ -78,20 +78,11 @@
7878
}
7979
if( !is_a_version(tid) ){
8080
fossil_fatal("not a version: %s", g.argv[2]);
8181
}
8282
}
83
-
84
- if( tid==0 ){
85
- /*
86
- ** Do an autosync pull prior to the update, if autosync is on and they
87
- ** did not want a specific version (i.e. another branch, a past revision).
88
- ** By not giving a specific version, they are asking for the latest, thus
89
- ** pull to get the latest, then update.
90
- */
91
- autosync(AUTOSYNC_PULL);
92
- }
83
+ autosync(AUTOSYNC_PULL);
9384
9485
if( tid==0 ){
9586
compute_leaves(vid, 1);
9687
if( !latestFlag && db_int(0, "SELECT count(*) FROM leaves")>1 ){
9788
db_prepare(&q,
9889
--- src/update.c
+++ src/update.c
@@ -78,20 +78,11 @@
78 }
79 if( !is_a_version(tid) ){
80 fossil_fatal("not a version: %s", g.argv[2]);
81 }
82 }
83
84 if( tid==0 ){
85 /*
86 ** Do an autosync pull prior to the update, if autosync is on and they
87 ** did not want a specific version (i.e. another branch, a past revision).
88 ** By not giving a specific version, they are asking for the latest, thus
89 ** pull to get the latest, then update.
90 */
91 autosync(AUTOSYNC_PULL);
92 }
93
94 if( tid==0 ){
95 compute_leaves(vid, 1);
96 if( !latestFlag && db_int(0, "SELECT count(*) FROM leaves")>1 ){
97 db_prepare(&q,
98
--- src/update.c
+++ src/update.c
@@ -78,20 +78,11 @@
78 }
79 if( !is_a_version(tid) ){
80 fossil_fatal("not a version: %s", g.argv[2]);
81 }
82 }
83 autosync(AUTOSYNC_PULL);
 
 
 
 
 
 
 
 
 
84
85 if( tid==0 ){
86 compute_leaves(vid, 1);
87 if( !latestFlag && db_int(0, "SELECT count(*) FROM leaves")>1 ){
88 db_prepare(&q,
89

Keyboard Shortcuts

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