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
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 60af514d13969c79e4e82c4c116cee1b56424c1d73994148ea070654c6cd2a7c
User & Date: drh 2019-03-14 13:52:40.786
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
Unified Diff Ignore Whitespace Patch
Changes to src/stash.c.
606
607
608
609
610
611
612



613
614
615
616
617
618
619
      db_finalize(&q);
      newArgv[0] = g.argv[0];
      newArgv[1] = 0;
      g.argv = newArgv;
      g.argc = nFile+2;
      if( nFile==0 ) return;
    }



    g.argv[1] = "revert";
    revert_cmd();
  }else
  if( memcmp(zCmd, "snapshot", nCmd)==0 ){
    stash_create();
  }else
  if( memcmp(zCmd, "list", nCmd)==0 || memcmp(zCmd, "ls", nCmd)==0 ){







>
>
>







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