Fossil SCM

Pedantic cosmetic change: do un-rm before un-add.

stephan 2020-04-23 00:06 unaddremove-command
Commit 6e21c7d70626f331124f08e1f24c1491144ee99dbedb40f6eb082cd73d7b3cb9
1 file changed +1 -1
+1 -1
--- src/add.c
+++ src/add.c
@@ -738,11 +738,11 @@
738738
fVerbose = find_option("verbose", "v", 0)!=0;
739739
verify_all_options();
740740
741741
db_begin_transaction();
742742
db_prepare(&stmt, "SELECT id, rid, deleted, pathname FROM vfile "
743
- "ORDER BY deleted<>0, pathname");
743
+ "ORDER BY deleted=0, pathname");
744744
while( db_step(&stmt)==SQLITE_ROW ){
745745
/* This loop exists only so we can restore the contents of un-rm'd
746746
** files. All manipulation of vfile's contents happens after the
747747
** loop. */
748748
int const rid = db_column_int(&stmt, 1);
749749
--- src/add.c
+++ src/add.c
@@ -738,11 +738,11 @@
738 fVerbose = find_option("verbose", "v", 0)!=0;
739 verify_all_options();
740
741 db_begin_transaction();
742 db_prepare(&stmt, "SELECT id, rid, deleted, pathname FROM vfile "
743 "ORDER BY deleted<>0, pathname");
744 while( db_step(&stmt)==SQLITE_ROW ){
745 /* This loop exists only so we can restore the contents of un-rm'd
746 ** files. All manipulation of vfile's contents happens after the
747 ** loop. */
748 int const rid = db_column_int(&stmt, 1);
749
--- src/add.c
+++ src/add.c
@@ -738,11 +738,11 @@
738 fVerbose = find_option("verbose", "v", 0)!=0;
739 verify_all_options();
740
741 db_begin_transaction();
742 db_prepare(&stmt, "SELECT id, rid, deleted, pathname FROM vfile "
743 "ORDER BY deleted=0, pathname");
744 while( db_step(&stmt)==SQLITE_ROW ){
745 /* This loop exists only so we can restore the contents of un-rm'd
746 ** files. All manipulation of vfile's contents happens after the
747 ** loop. */
748 int const rid = db_column_int(&stmt, 1);
749

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button