Fossil

Check-in [2255e4e3]
Login

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

Overview
Comment:Fix an assertion fault that occurs when attempting to revert a file that is not in the repository. Ticket [3713cea2fc].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2255e4e3ba2ecbc64f20e10baa0666b92987d1d4
User & Date: drh 2009-12-20 02:58:18
References
2009-12-20
02:58 Fixed ticket [3713cea2]: failed assertion on revert *.* plus 2 other changes artifact: 071e84bd user: drh
Context
2009-12-20
17:53
Add a black & white skin with the main menu down the left margin. check-in: 5a5d7e1f user: drh tags: trunk
02:58
Fix an assertion fault that occurs when attempting to revert a file that is not in the repository. Ticket [3713cea2fc]. check-in: 2255e4e3 user: drh tags: trunk
02:53
Add a khaki color skin. check-in: 91b90814 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/update.c.

363
364
365
366
367
368
369

370
371
372
373
374
375
376
  if( g.argc<3 ){
    usage("?OPTIONS? FILE ...");
  }
  db_must_be_within_tree();
  db_begin_transaction();
  undo_begin();


  for(i=2; i<g.argc; i++){
    zFile = mprintf("%/", g.argv[i]);
    file_tree_name(zFile, &fname, 1);

    if( zRevision!=0 ){
      errCode = historical_version_of_file(zRevision, blob_str(&fname),
                                           &record, 2);







>







363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
  if( g.argc<3 ){
    usage("?OPTIONS? FILE ...");
  }
  db_must_be_within_tree();
  db_begin_transaction();
  undo_begin();

  blob_zero(&record);
  for(i=2; i<g.argc; i++){
    zFile = mprintf("%/", g.argv[i]);
    file_tree_name(zFile, &fname, 1);

    if( zRevision!=0 ){
      errCode = historical_version_of_file(zRevision, blob_str(&fname),
                                           &record, 2);