Fossil

Check-in [f57990b65a]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Alway run autosync prior to an "update" even when specifying a specific check-in to update to.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f57990b65abcacd7b7fb0465ae36dc8b92122267
User & Date: drh 2009-11-03 19:43:36.000
Context
2009-11-04
13:32
Update to the latest SQLite check-in: 355e34ba9d user: drh tags: trunk
2009-11-03
19:43
Alway run autosync prior to an "update" even when specifying a specific check-in to update to. check-in: f57990b65a user: drh tags: trunk
2009-11-02
13:19
Disable the external link marking as it does not work on windows. check-in: 980b160bd0 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/update.c.
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
    if( tid==0 ){
      fossil_fatal("not a version: %s", g.argv[2]);
    }
    if( !is_a_version(tid) ){
      fossil_fatal("not a version: %s", g.argv[2]);
    }
  }

  if( tid==0 ){
    /* 
    ** Do an autosync pull prior to the update, if autosync is on and they
    ** did not want a specific version (i.e. another branch, a past revision).
    ** By not giving a specific version, they are asking for the latest, thus
    ** pull to get the latest, then update.
    */
    autosync(AUTOSYNC_PULL);
  }
  
  if( tid==0 ){
    compute_leaves(vid, 1);
    if( !latestFlag && db_int(0, "SELECT count(*) FROM leaves")>1 ){
      db_prepare(&q, 
        "%s "
        "   AND event.objid IN leaves"







<
<
<
<
<
<
<
<
|
<







76
77
78
79
80
81
82








83

84
85
86
87
88
89
90
    if( tid==0 ){
      fossil_fatal("not a version: %s", g.argv[2]);
    }
    if( !is_a_version(tid) ){
      fossil_fatal("not a version: %s", g.argv[2]);
    }
  }








  autosync(AUTOSYNC_PULL);

  
  if( tid==0 ){
    compute_leaves(vid, 1);
    if( !latestFlag && db_int(0, "SELECT count(*) FROM leaves")>1 ){
      db_prepare(&q, 
        "%s "
        "   AND event.objid IN leaves"