Fossil

Check-in [60af514d]
Login

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

Overview
Comment:When doing a "fossil stash" make sure that the stash has committed before deleting changes from disk, so that the changes can be recovered if something goes wrong.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 60af514d13969c79e4e82c4c116cee1b56424c1d73994148ea070654c6cd2a7c
User & Date: drh 2019-03-14 13:52:40
Context
2019-03-16
00:58
Add the "fossil git export" command, designed to simplify making a Git mirror of a working Fossil repository. check-in: 70295942 user: drh tags: trunk
2019-03-14
17:16
Begin work on the "fossil mirror" command. check-in: dbc1c62a user: drh tags: mirror-cmd
13:52
When doing a "fossil stash" make sure that the stash has committed before deleting changes from disk, so that the changes can be recovered if something goes wrong. check-in: 60af514d user: drh tags: trunk
2019-03-08
00:42
Update the documentation on the "fossil backoffice" command. check-in: 35c8103e user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/stash.c.

   606    606         db_finalize(&q);
   607    607         newArgv[0] = g.argv[0];
   608    608         newArgv[1] = 0;
   609    609         g.argv = newArgv;
   610    610         g.argc = nFile+2;
   611    611         if( nFile==0 ) return;
   612    612       }
          613  +    /* Make sure the stash has committed before running the revert, so that
          614  +    ** we have a copy of the changes before deleting them. */
          615  +    db_commit_transaction();
   613    616       g.argv[1] = "revert";
   614    617       revert_cmd();
   615    618     }else
   616    619     if( memcmp(zCmd, "snapshot", nCmd)==0 ){
   617    620       stash_create();
   618    621     }else
   619    622     if( memcmp(zCmd, "list", nCmd)==0 || memcmp(zCmd, "ls", nCmd)==0 ){