Fossil

Check-in [c9894824]
Login

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

Overview
Comment:Get the --latest option on the "co" command working when the current checkout is on a dead branch. Ticket [e42448edec1].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c98948242ea05e4c6918748c9b9af0dbcba1ff20
User & Date: drh 2010-02-09 12:28:39.000
Context
2010-02-09
12:31
Disable the built-in robots.txt file. Ticket [03c9f4deef] ... (check-in: f2626a53 user: drh tags: trunk)
12:28
Get the --latest option on the "co" command working when the current checkout is on a dead branch. Ticket [e42448edec1]. ... (check-in: c9894824 user: drh tags: trunk)
11:57
Modify the check-in command to detect clock skew and abort if found. ... (check-in: 8fdac87b user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/checkout.c.
179
180
181
182
183
184
185





186
187
188
189
190
191
192
    prior = db_lget_int("checkout",0);
  }
  if( latestFlag ){
    compute_leaves(db_lget_int("checkout",0), 1);
    zVers = db_text(0, "SELECT uuid FROM leaves, event, blob"
                       " WHERE event.objid=leaves.rid AND blob.rid=leaves.rid"
                       " ORDER BY event.mtime DESC");





    if( zVers==0 ){
      fossil_fatal("cannot locate \"latest\" checkout");
    }
  }else{
    zVers = g.argv[2];
  }
  vid = load_vfile(zVers);







>
>
>
>
>







179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
    prior = db_lget_int("checkout",0);
  }
  if( latestFlag ){
    compute_leaves(db_lget_int("checkout",0), 1);
    zVers = db_text(0, "SELECT uuid FROM leaves, event, blob"
                       " WHERE event.objid=leaves.rid AND blob.rid=leaves.rid"
                       " ORDER BY event.mtime DESC");
    if( zVers==0 ){
      zVers = db_text(0, "SELECT uuid FROM event, blob"
                         " WHERE event.objid=blob.rid AND event.type='ci'"
                         " ORDER BY event.mtime DESC");
    }
    if( zVers==0 ){
      fossil_fatal("cannot locate \"latest\" checkout");
    }
  }else{
    zVers = g.argv[2];
  }
  vid = load_vfile(zVers);