Not logged in
Check-in [2dd7b4b500]

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

Overview
Comment:For the "stash save" command, take care to avoid reverting everything if no files were stashed. Ticket [fbfe43e153ee0e1d].
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2dd7b4b500bdb5c75e3c6e7c9510b14137c8e78e
User & Date: drh 2011-01-25 23:17:58.055
Context
2011-01-26
08:58
fixed a typo in webui.wiki check-in: ef80fd87f3 user: BM tags: trunk
2011-01-25
23:17
For the "stash save" command, take care to avoid reverting everything if no files were stashed. Ticket [fbfe43e153ee0e1d]. check-in: 2dd7b4b500 user: drh tags: trunk
21:59
Fix the display of file and directory listings so that it works correctly even when one file in a directory is a prefix of another. Ticket [8e13d170f2d6d6e3]. check-in: 6e59eb117f user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/stash.c.
388
389
390
391
392
393
394

395
396
397
398
399
400
401
      while( db_step(&q)==SQLITE_ROW ){
        newArgv[i++] = mprintf("%s%s", g.zLocalRoot, db_column_text(&q, 0));
      }
      db_finalize(&q);
      newArgv[0] = g.argv[0];
      g.argv = newArgv;
      g.argc = nFile+2;

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







>







388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
      while( db_step(&q)==SQLITE_ROW ){
        newArgv[i++] = mprintf("%s%s", g.zLocalRoot, db_column_text(&q, 0));
      }
      db_finalize(&q);
      newArgv[0] = g.argv[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