Fossil

Check-in [62352847]
Login

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

Overview
Comment:Fix the "fossil wiki export --technote" command so that it allows hash abbreviations again, as it should.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:623528470de097ceec11763d4b26efede31c93d2
User & Date: drh 2017-03-08 20:35:04
References
2017-03-13
21:53
Merged from trunk to verify fix in [62352847]. check-in: 4077357a user: rberteig tags: rkb-2.0-tests
Context
2017-03-13
21:53
Merged from trunk to verify fix in [62352847]. check-in: 4077357a user: rberteig tags: rkb-2.0-tests
2017-03-08
22:56
Remove a repeated "are" in hash-policy command help text. check-in: 57765421 user: mgagnon tags: trunk
20:35
Fix the "fossil wiki export --technote" command so that it allows hash abbreviations again, as it should. check-in: 62352847 user: drh tags: trunk
15:01
Fix an #ifdef error in the sha3 implementation that caused suboptimal code for little-endian machines. check-in: e8b43332 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/wiki.c.

1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
** timestamp. Returns 0 if there is no such item and -1 if the details
** are ambiguous and could refer to multiple items.
*/
int wiki_technote_to_rid(const char *zETime) {
  int rid=0;                    /* Artifact ID of the tech note */
  int nETime = strlen(zETime);
  Stmt q;
  if( nETime>=4 && hname_validate(zETime, nETime) ){
    char zUuid[HNAME_MAX+1];
    memcpy(zUuid, zETime, nETime+1);
    canonical16(zUuid, nETime);
    db_prepare(&q,
      "SELECT e.objid"
      "  FROM event e, tag t"
      " WHERE e.type='e' AND e.tagid IS NOT NULL AND t.tagid=e.tagid"







|







1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
** timestamp. Returns 0 if there is no such item and -1 if the details
** are ambiguous and could refer to multiple items.
*/
int wiki_technote_to_rid(const char *zETime) {
  int rid=0;                    /* Artifact ID of the tech note */
  int nETime = strlen(zETime);
  Stmt q;
  if( nETime>=4 && nETime<=HNAME_MAX && validate16(zETime, nETime) ){
    char zUuid[HNAME_MAX+1];
    memcpy(zUuid, zETime, nETime+1);
    canonical16(zUuid, nETime);
    db_prepare(&q,
      "SELECT e.objid"
      "  FROM event e, tag t"
      " WHERE e.type='e' AND e.tagid IS NOT NULL AND t.tagid=e.tagid"