Fossil

Check-in [fea4d80ee7]
Login

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

Overview
SHA1:fea4d80ee7b880bb9f91d663613e0c4777d6ac45
Date: 2016-02-13 05:00:38
User: andybradford
Comment:If a file has been renamed in a stash, restore this information also in the vfile table so it doesn't show up as MISSING.
Tags And Properties
Context
2016-02-13
06:57
[a9afb1f049] Leaf: Updated stash.test to reflect the incidental changes in output caused by the changes made in [fea4d80ee7]. (user: rberteig, tags: pending-review)
05:00
[fea4d80ee7] If a file has been renamed in a stash, restore this information also in the vfile table so it doesn't show up as MISSING. (user: andybradford, tags: pending-review)
02:42
[94b9530774] More fossil stash cases, this time with snapshot and interesting results of fossil stash diff in when a DELETE was snapshotted. (user: rberteig, tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/stash.c.

276
277
278
279
280
281
282





283
284
285
286
287
288
289
      blob_reset(&b);
      blob_reset(&disk);
    }
    blob_reset(&delta);
    if( fossil_strcmp(zOrig,zNew)!=0 ){
      undo_save(zOrig);
      file_delete(zOPath);





    }
  }
  stash_add_files_in_sfile(vid);
  db_finalize(&q);
  if( nConflict ){
    fossil_print(
      "WARNING: %d merge conflicts - see messages above for details.\n",







>
>
>
>
>







276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
      blob_reset(&b);
      blob_reset(&disk);
    }
    blob_reset(&delta);
    if( fossil_strcmp(zOrig,zNew)!=0 ){
      undo_save(zOrig);
      file_delete(zOPath);
      db_multi_exec(
        "UPDATE vfile SET pathname='%q', origname='%q'"
        " WHERE pathname='%q' %s AND vid=%d",
        zNew, zOrig, zOrig, filename_collation(), vid
      );
    }
  }
  stash_add_files_in_sfile(vid);
  db_finalize(&q);
  if( nConflict ){
    fossil_print(
      "WARNING: %d merge conflicts - see messages above for details.\n",