Fossil

Check-in [85f239f1]
Login

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

Overview
Comment:Fix the "fossil publish" command so that it adds newly published artifacts to the unsent and unclustered tables.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | DBP-workflow
Files: files | file ages | folders
SHA1: 85f239f1f7af9390e1adbd13287e49f2dc6e0145
User & Date: drh 2014-11-28 17:54:22
Context
2014-11-28
22:31
Add the describe_artifacts() utility procedure and the test-describe-artifacts command for testing it. check-in: 47115ade user: drh tags: DBP-workflow
17:54
Fix the "fossil publish" command so that it adds newly published artifacts to the unsent and unclustered tables. check-in: 85f239f1 user: drh tags: DBP-workflow
15:46
Incorporate all recent trunk enhancements. check-in: 368f82a2 user: drh tags: DBP-workflow
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/publish.c.

128
129
130
131
132
133
134


135



136
137
138
      if( i++ > 0 ) fossil_print("%.78c\n", '-');
      whatis_rid(rid, 0);
    }
    db_finalize(&q);
  }else{
    /* Standard behavior is simply to remove the published documents from
    ** the PRIVATE table */


    db_multi_exec("DELETE FROM private WHERE rid IN ok");



  }
  db_end_transaction(0);
}







>
>
|
>
>
>



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
      if( i++ > 0 ) fossil_print("%.78c\n", '-');
      whatis_rid(rid, 0);
    }
    db_finalize(&q);
  }else{
    /* Standard behavior is simply to remove the published documents from
    ** the PRIVATE table */
    db_multi_exec(
      "DELETE FROM ok WHERE rid NOT IN private;"
      "DELETE FROM private WHERE rid IN ok;"
      "INSERT OR IGNORE INTO unsent SELECT rid FROM ok;"
      "INSERT OR IGNORE INTO unclustered SELECT rid FROM ok;"
    );
  }
  db_end_transaction(0);
}