Fossil

Check-in [7b2350a8]
Login

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

Overview
Comment:Avoid warning about extra call to db_end_transaction() by returning at the end of a complete block.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7b2350a86b96f2b5839a6480ca0bee17eeab0014a931689a4640387b18ab9540
User & Date: andybradford 2019-08-31 18:09:41.002
Context
2019-08-31
18:22
Minor typo correction in comment---no functional change. ... (check-in: ab2b8de8 user: andybradford tags: trunk)
18:09
Avoid warning about extra call to db_end_transaction() by returning at the end of a complete block. ... (check-in: 7b2350a8 user: andybradford tags: trunk)
17:09
If there is nothing to stash, issue an error. ... (check-in: d959c48a user: andybradford tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/stash.c.
614
615
616
617
618
619
620

621
622
623
624
625
626
627
      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 ){
    Stmt q, q2;
    int n = 0, width;







>







614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
      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();
    return;
  }else
  if( memcmp(zCmd, "snapshot", nCmd)==0 ){
    stash_create();
  }else
  if( memcmp(zCmd, "list", nCmd)==0 || memcmp(zCmd, "ls", nCmd)==0 ){
    Stmt q, q2;
    int n = 0, width;