Ok, so I went out and downloaded the latest source and (hopefully) fixed the
issue, here's the diff if anyone wants it:
1294a1295
> int cfType;
1311,1313c1312
< if( !zMimeType || !*zMimeType ){
< /* Try to deduce the mime type based on the prior version. */
< if ( !zETime ){
---
> if ( !zETime ){ /* regular wiki page */
1319,1323c1318,1319
< if( rid>0 && (pWiki = manifest_get(rid, CFTYPE_WIKI, 0))!=0
< && (pWiki->zMimetype && *pWiki->zMimetype) ){
< zMimeType = pWiki->zMimetype;
< }
< }else{
---
> cfType = CFTYPE_WIKI;
> }else{ /* tech note event */
1325c1321,1325
< if( rid>0 && (pWiki = manifest_get(rid, CFTYPE_EVENT, 0))!=0
---
> cfType = CFTYPE_EVENT;
> }
> if( !zMimeType || !*zMimeType ){
> /* Try to deduce the mime type based on the prior version. */
> if( rid>0 && (pWiki = manifest_get(rid, cfType, 0))!=0
1329d1328
< }
1359,1362c1358,1364
< zMETime = db_text(0, "SELECT coalesce(datetime(%Q),datetime('now'))",
< zETime);
< event_cmd_commit(zMETime, rid, &content, zMimeType, zPageName,
< zTags, zClr);
---
> if( g.argv[2][1]=='o' && rid > 0 && validate16(zETime,
> strlen(zETime)) ){
> /* If -t parameter value is a tech note ID, extract its timestamp */
> zMETime = db_text(0, "SELECT datetime(mtime) FROM event WHERE objid
> = %d", rid);
> } else {
> zMETime = db_text(0, "SELECT
> coalesce(datetime(%Q),datetime('now'))", zETime);
> }
> event_cmd_commit(zMETime, rid, &content, zMimeType, zPageName, zTags,
> zClr);
26.01.2018, 07:01, "Eugene" <[email protected]>:
> Hi, I'm trying to edit an existing technote and it doesn't seem to be
> possible:
>
>> fossil version
>
> This is fossil version 2.4 [a0001dcf57] 2017-11-03 09:29:29 UTC
>
>> fossil wiki create "Comment" technote.tmp -M markdown -t 2018-12-13T12:34:56
>
> Created new tech note 2018-12-13 12:34:56.
>
> I can see the new technote in fossil web UI with its ID displayed in square
> brackets:
>
> [ba0e4cbcb6] Comment
>
> But nothing of the following works:
>
> fossil wiki commit "Comment" technote.tmp -M markdown -t "2018-12-13 12:34:56"
> fossil wiki commit "Comment" technote.tmp -M markdown -t 2018-12-13T12:34:56
> fossil wiki commit "Comment" technote.tmp -M markdown -t ba0e4cbcb6
>
> It doesn't even work with full ID, the error message is always the same:
>
> no such tech note: <whatever was passed as -t parameter>
>
> Am I doing something wrong or is it completely broken?
>
> P.S. What's the general process of reporting problems found with fossil? I
> know there's "Ticket" section on fossil-scm.org, but all the activity there
> seems to have ceased two years ago, so the ticket list looks like, er, a
> collection of fossilized remains on display at Smithsonian.
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users