Re: [fossil-users] [Feature-request] Unversioned files: unpack
I don't think the patch attachment made it; here it is just in case: Index: src/unversioned.c == --- src/unversioned.c +++ src/unversioned.c @@ -230,10 +230,13 @@ **cat FILE ... Concatenate the content of FILEs to stdout. ** **edit FILEBring up FILE in a text editor for modification. ** **export FILE OUTPUT Write the content of FILE into OUTPUT on disk +** +**unpack Write all unversioned files to disk, matching the +** file name(s) in the local repository. ** **list | lsShow all unversioned files held in the local ** repository. ** **revert ?URL? Restore the state of all unversioned files in the @@ -372,10 +375,22 @@ if( unversioned_content(g.argv[3], ) ){ fossil_fatal("no such uv-file: %Q", g.argv[3]); } blob_write_to_file(, g.argv[4]); blob_reset(); + }else if( memcmp(zCmd, "unpack", nCmd)==0 ){ +Blob content; +Stmt q; +verify_all_options(); +db_prepare(, "SELECT name FROM unversioned;"); +while( db_step()==SQLITE_ROW ){ + const char *zName = db_column_text(, 0); + unversioned_content(zName, ); + blob_write_to_file(, zName); +} +blob_reset(); +db_finalize(); }else if( memcmp(zCmd, "hash", nCmd)==0 ){ /* undocumented */ /* Show the hash value used during uv sync */ int debugFlag = find_option("debug",0,0)!=0; fossil_print("%s\n", unversioned_content_hash(debugFlag)); }else if( memcmp(zCmd, "list", nCmd)==0 || memcmp(zCmd, "ls", nCmd)==0 ){ On Sat, Jun 9, 2018 at 12:43 PM Chris Rydalch wrote: > Here is a patch to add ' fossil uv unpack', which exports each unversioned > file local disk, using the name(s) from the local repository. Does have all > the nice bells and whistles, but its worked for me so far. > >unpack Write all unversioned files to disk, matching the > file name(s) in the local repository. > > Would this be worth including in fossil? > > Thanks! > > On Tue, Apr 25, 2017 at 1:48 PM Chris Rydalch wrote: > >> Yes, this would be great! >> >> On Tue, Apr 25, 2017 at 1:43 PM, Olivier R. wrote: >> >>> Hello, >>> >>> It would be very useful if the repository could remember the folder of >>> the unversioned files when we add them. Doing so, we could unpack all >>> unversioned files with a simple command like: >>> fossil uv unpack >>> >>> If a folder doesn’t exist anymore, we could recreate it with the option >>> -f or --force, or ignore the files who have nowhere to be unpacked. >>> >>> If each unversioned file is associated with a folder, it would also be >>> useful to have a way to edit it, via the CLI or the Web-UI, so that we >>> could change where to unpack these files. >>> >>> Thanks. >>> Olivier >>> ___ >>> fossil-users mailing list >>> fossil-users@lists.fossil-scm.org >>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users >>> >> >> ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] [Feature-request] Unversioned files: unpack
Here is a patch to add ' fossil uv unpack', which exports each unversioned file local disk, using the name(s) from the local repository. Does have all the nice bells and whistles, but its worked for me so far. unpack Write all unversioned files to disk, matching the file name(s) in the local repository. Would this be worth including in fossil? Thanks! On Tue, Apr 25, 2017 at 1:48 PM Chris Rydalch wrote: > Yes, this would be great! > > On Tue, Apr 25, 2017 at 1:43 PM, Olivier R. wrote: > >> Hello, >> >> It would be very useful if the repository could remember the folder of >> the unversioned files when we add them. Doing so, we could unpack all >> unversioned files with a simple command like: >> fossil uv unpack >> >> If a folder doesn’t exist anymore, we could recreate it with the option >> -f or --force, or ignore the files who have nowhere to be unpacked. >> >> If each unversioned file is associated with a folder, it would also be >> useful to have a way to edit it, via the CLI or the Web-UI, so that we >> could change where to unpack these files. >> >> Thanks. >> Olivier >> ___ >> fossil-users mailing list >> fossil-users@lists.fossil-scm.org >> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users >> > > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Show time...
Adding the full-text-search to the header by default could be helpful; it's nice having repository search close-at-hand in GitHub/GitLab On Mon, Jun 4, 2018 at 2:23 AM, Gour wrote: > On Sun, 3 Jun 2018 20:03:44 -0700 > Jungle Boogie > wrote: > > > This line: > > SQLite project gets excellent 73:1 compression. > > $ fossil dbstat > project-name: Osobne financije > repository-size: 6,873,088 bytes > artifact-count:2,578 (stored as 1,394 full text and 1,184 deltas) > artifact-sizes:3,962,610 average, 13,965,692 max, 10,215,609,449 total > compression-ratio: 1486:1 > check-ins: 1,507 > ... > > :-) > > > Sincerely, > Gour > > -- > You have a right to perform your prescribed duty, but you > are not entitled to the fruits of action. Never consider > yourself the cause of the results of your activities, > and never be attached to not doing your duty. > > > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Restoring previous timeline look
Wonderful, thank you very much Richard! On Sat, Feb 10, 2018 at 10:42 AM, Richard Hipp <d...@sqlite.org> wrote: > On 2/10/18, Chris Rydalch <cryda...@gmail.com> wrote: > > Ah, looks like it's technote background colors which aren't showing in > 2.5; > > my timeline view was only technotes. Is this a bug perhaps? > > Now fixed on trunk. > -- > D. Richard Hipp > d...@sqlite.org > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Restoring previous timeline look
Ah, looks like it's technote background colors which aren't showing in 2.5; my timeline view was only technotes. Is this a bug perhaps? https://www.fossil-scm.org/index.html/timeline?ss=v=200=e=0 The verbose view does restore the look, thank you! On Sat, Feb 10, 2018 at 7:34 AM, Richard Hipp <d...@sqlite.org> wrote: > On 2/9/18, Chris Rydalch <cryda...@gmail.com> wrote: > > > > Is this behavior hard-coded in newer versions of Fossil, or can it be > > changed in a skin's css? I thought I'd followed that discussion close > > enough, but I expected the skins to control the behavior so I'm clearly > > missing something... > > Did you change to "Verbose View" on the timeline menu? Is it still > not doing what you want after that? > > -- > D. Richard Hipp > d...@sqlite.org > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] Restoring previous timeline look
When opening a repo in fossil 2.5, I noticed that the timeline view doesn't show their background colors, nor does it seem to respect the CSS. The entries are always rounded, with lots of spacing around them, in the new style. I thought this was defined in the skin's CSS, but the same repo/skin in 2.3 is just fine. Is this behavior hard-coded in newer versions of Fossil, or can it be changed in a skin's css? I thought I'd followed that discussion close enough, but I expected the skins to control the behavior so I'm clearly missing something... Thanks ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Tech note search
I've been using this for a bit, and so far it works a treat! Thank you again! I've only noticed one minor thing, technote timeline comments aren’t searched. Would they be part of searching check-in comments, or be part of the technote search? I guess either one could work, or just not worry about that and leave it as-is, but I wanted to mention it since I noticed it, and see what y’all thought. Thanks! On Mon, Sep 25, 2017 at 11:35 AM, Andy Goth <andrew.m.g...@gmail.com> wrote: > On 09/25/17 09:35, Chris Rydalch wrote: > >> Thanks so much Andy, this is great! So far so good on my end... >> > > Merged to trunk, along with all the other recent developments. Please > update and test some more, if you don't mind. > > > -- > Andy Goth | > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Tech note search
Thanks so much Andy, this is great! So far so good on my end... On Sun, Sep 24, 2017 at 12:11 AM, Andy Gothwrote: > I implemented tech note search capability on the search-technote branch. > Please have a look and let me know if it's good. Maybe the way I named > things isn't so great, I dunno, so feel free to fix style or other > conventions. If it's good, go ahead and integrate it to trunk. > > I opted to keep tech note searching largely separate from wiki searching > because I feel tech notes serve a significantly different purpose. > > -- > Andy Goth | > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Blockquotes end up in code/pre blocks
That works, thanks Richard! On Wed, Jun 7, 2017 at 12:06 PM, Richard Hipp <d...@sqlite.org> wrote: > On 6/7/17, Chris Rydalch <cryda...@gmail.com> wrote: > > When I put code formatted like this into a wiki page, block quotes are > > detected and inserted into the code. > > Maybe use the special ... tags around your code? > > -- > D. Richard Hipp > d...@sqlite.org > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] Blockquotes end up in code/pre blocks
When I put code formatted like this into a wiki page, block quotes are detected and inserted into the code. For example, put this code in a wiki page: // Grow Hairs vector dir = { 0, 1, 0 }; // dir = @N;// grow in normal direction float len = 1.0; int steps = 10; float jitter = 0.1; float seed = 0.12345; vector pos = @P; int pr = addprim(geoself(), "polyline"); // Start the curve with our point addvertex(geoself(), pr, @ptnum); for (int i = 0; i < steps; i++) { pos += dir * len / steps; pos += (vector(rand( @ptnum + seed )) - 0.5) * jitter; // Clone our point to copy attributes int pt = addpoint(geoself(), @ptnum); // But write a new position setpointattrib(geoself(), "P", pt, pos); // Connect the new point to our curve. addvertex(geoself(), pr, pt); seed += $PI; } Block quotes end up inside the for loop when the wiki page is previewed/saved. Here is the generated HTML: // Grow Hairs vector dir = { 0, 1, 0 }; // dir = @N;// grow in normal direction float len = 1.0; int steps = 10; float jitter = 0.1; float seed = 0.12345; vector pos = @P; int pr = addprim(geoself(), "polyline"); // Start the curve with our point addvertex(geoself(), pr, @ptnum); for (int i = 0; i steps; i++) { pos += dir * len / steps; pos += (vector(rand( @ptnum + seed )) - 0.5) * jitter; // Clone our point to copy attributes int pt = addpoint(geoself(), @ptnum); // But write a new position setpointattrib(geoself(), "P", pt, pos); // Connect the new point to our curve. addvertex(geoself(), pr, pt); seed += $PI; } Is this a bug? Also, should the paragraph tags not end up inside pre/code as well? Thanks! Chris ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] TinyMCE for editing wiki pages
I tried following the Cookbook page, but haven't had luck getting it to work. I assume it's because a lot has changed in the last 8 years, both with Fossil and TinyMCE. I tried adapting the instructions, but they don't seem to be applicable anymore. Does anyone have a recent example repo using TinyMCE to edit wiki pages? Thanks in advance! ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] [Feature-request] Unversioned files: unpack
Yes, this would be great! On Tue, Apr 25, 2017 at 1:43 PM, Olivier R.wrote: > Hello, > > It would be very useful if the repository could remember the folder of the > unversioned files when we add them. Doing so, we could unpack all > unversioned files with a simple command like: > fossil uv unpack > > If a folder doesn’t exist anymore, we could recreate it with the option -f > or --force, or ignore the files who have nowhere to be unpacked. > > If each unversioned file is associated with a folder, it would also be > useful to have a way to edit it, via the CLI or the Web-UI, so that we > could change where to unpack these files. > > Thanks. > Olivier > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Feature Request: Search Technotes
Had some time during lunch, and figured out how to list the tech-notes in descending order: $ fossil sqlite3 -R myclone.fossil "SELECT substr(tagname,7), tagxref.rid, max(tagxref.mtime) FROM tag, tagxref WHERE tagname GLOB 'event-*' AND tagxref.tagid=tag.tagid GROUP BY 1 ORDER BY mtime DESC" 8d18bf27e9f9ff8b9017edd55afc35701407d418|35502|2457698.34868013 bfdf42305400f6caa441fa816cb89231e90f8c82|22576|2456530.81914164 a1f9f17b603022c2b032bc3b2bff81118fd68d36|12285|2455688.26677552 d6ba73e22bf6ecbac3b6debb47ca2e15d5e63630|9650|2455502.26658565 be8f2f3447ef2ea3344f8058b6733aa08c08336f|9093|2455478.94143519 347871278941bd7ad08b27cde6a7b8f495c1f905|8915|2455475.0283 However I can't seem to use those results as part of the search results. Where should I look for errors, to track down what I'm overlooking? Is there a log or a way to turn on debug output? Is it an issue with body()? Here is what I've got in src/search.c: if( (srchFlags & SRCH_WIKI)!=0 ){ db_multi_exec( "WITH wiki(name,rid,mtime) AS (" " SELECT substr(tagname,6), tagxref.rid, max(tagxref.mtime)" "FROM tag, tagxref" " WHERE tag.tagname GLOB 'wiki-*'" " AND tagxref.tagid=tag.tagid" " GROUP BY 1" ")" "INSERT INTO x(label,url,score,id,date,snip)" " SELECT printf('Wiki: %%s',name)," " printf('/wiki?name=%%s',urlencode(name))," " search_score()," " 'w'||rid," " datetime(mtime)," " search_snippet()" "FROM wiki" " WHERE search_match(title('w',rid,name),body('w',rid,name));" ); db_multi_exec( "WITH technote(uuid,rid,mtime) AS (" " SELECT substr(tagname,7), tagxref.rid, max(tagxref.mtime)" "FROM tag, tagxref" " WHERE tag.tagname GLOB 'event-*'" " AND tagxref.tagid=tag.tagid" " GROUP BY 1" ")" "INSERT INTO x(label,url,score,id,date,snip)" " SELECT printf('Tech Note: %%s',uuid)," " printf('/technote/%%s',uuid)," " search_score()," " 'e'||rid," " datetime(mtime)," " search_snippet()" "FROM technote" " WHERE search_match('',body('e',rid,NULL));" ); } I've tried placing the technote's db_multi_exec() before and after the existing one, but it doesn't seem to make a difference (that I can see anyway). Thanks! On Tue, Jan 24, 2017 at 10:37 PM, Richard Hipp <d...@sqlite.org> wrote: > On 1/24/17, Chris Rydalch <cryda...@gmail.com> wrote: > > > > I started by trying to combine them, mainly because I'm not a very good > > programmer (most of my experience is with Python), and I was thinking > this > > would be the easiest way. > > > > I agree that combining tech-notes with wiki seems like the best approach. > > -- > D. Richard Hipp > d...@sqlite.org > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Feature Request: Search Technotes
Thanks, good to know they're getting through. No (successful) patches yet, haven't been able to get it to work. I've tried getting technotes to show up alongside wiki results: *db_multi_exec(* * "WITH event(name,rid,mtime) AS ("* * " SELECT substr(tagname,6), tagxref.rid, max(tagxref.mtime)"* * "FROM tag, tagxref"* * " WHERE tag.tagname GLOB 'event-*'"* * " AND tagxref.tagid=tag.tagid"* * " GROUP BY 1"* * ")"* * "INSERT INTO x(label,url,score,id,date,snip)"* * " SELECT printf('Tech-note: %%s',name),"* * " printf('/technote/%%s',urlencode(name)),"* * " search_score(),"* * " 'w'||rid,"* * " datetime(mtime),"* * " search_snippet()"* * "FROM event"* * " WHERE search_match(title('w',rid,name),body('w',rid,name));"* *);* But clearly I'm missing something. Does it make sense to just include Technotes alongside Wiki results? Or should they be their own category? I started by trying to combine them, mainly because I'm not a very good programmer (most of my experience is with Python), and I was thinking this would be the easiest way. Thanks On Tue, Jan 24, 2017 at 8:39 PM, Richard Hipp <d...@sqlite.org> wrote: > On 1/24/17, Chris Rydalch <cryda...@gmail.com> wrote: > > Is this a complicated issue? Haven't had any luck in this thread, or > > another technote-related email I sent to the group. > > > > I'm not sure if the lack of responses is because the emails aren't > actually > > making it to the group, I was having issues with fossil-users list a > while > > back. Either way, it'd be good to know if the email is at least making it > > to the list. Thanks! :) > > > > Your emails are getting through. But I've been busy with other > things. Do you have patches? > -- > D. Richard Hipp > d...@sqlite.org > ___ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > --- search_orig.c 2017-01-24 20:44:48.211517209 -0500 +++ search.c 2017-01-24 20:58:36.911540140 -0500 @@ -739,6 +739,24 @@ "FROM wiki" " WHERE search_match(title('w',rid,name),body('w',rid,name));" ); +db_multi_exec( + "WITH event(name,rid,mtime) AS (" + " SELECT substr(tagname,6), tagxref.rid, max(tagxref.mtime)" + "FROM tag, tagxref" + " WHERE tag.tagname GLOB 'event-*'" + " AND tagxref.tagid=tag.tagid" + " GROUP BY 1" + ")" + "INSERT INTO x(label,url,score,id,date,snip)" + " SELECT printf('Tech-note: %%s',name)," + " printf('/technote/%%s',urlencode(name))," + " search_score()," + " 'w'||rid," + " datetime(mtime)," + " search_snippet()" + "FROM event" + " WHERE search_match(title('w',rid,name),body('w',rid,name));" +); } if( (srchFlags & SRCH_CKIN)!=0 ){ db_multi_exec( ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Feature Request: Search Technotes
Is this a complicated issue? Haven't had any luck in this thread, or another technote-related email I sent to the group. I'm not sure if the lack of responses is because the emails aren't actually making it to the group, I was having issues with fossil-users list a while back. Either way, it'd be good to know if the email is at least making it to the list. Thanks! :) On Wed, Jan 18, 2017 at 10:58 PM, Chris Rydalch <cryda...@gmail.com> wrote: > I really like the concept of technotes, but it'd be super useful if > technotes could be included in search results. I find technotes are > convenient for adding information and reminders, sort of a work-journal, > but I really miss not having that information show up in search results. > > Could they be added to search? Perhaps there was/is a technical reason > technotes aren't currently included, in which case sorry for the bother! > > Thanks! > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] Feature Request: Search Technotes
I really like the concept of technotes, but it'd be super useful if technotes could be included in search results. I find technotes are convenient for adding information and reminders, sort of a work-journal, but I really miss not having that information show up in search results. Could they be added to search? Perhaps there was/is a technical reason technotes aren't currently included, in which case sorry for the bother! Thanks! ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Technotes and Search results
I've been trying to get add technotes to search, but I'm not very familiar with sqlite3, and only semi-familiar with C in general, so I'm learning as I go. Here's where I'm at so far: db_multi_exec( "INSERT INTO x(label,url,score,id,date,snip)" " SELECT printf('Tech-note %%s (%%s)',title('event',objid,NULL)," "datetime(mtime))," " printf('/technote/%%.20s',objid)," " search_score()," " 'event'||objid," " datetime(mtime)," " search_snippet()" " FROM event" " WHERE search_match(title('event',objid,NULL),body('event',objid,NULL));" ); That builds fine, an I'm not getting any errors when I search, but I don't get any technote results either. Would anyone be kind enough to provide a helpful nudge, and help me see what I'm missing? Thanks On Fri, Dec 9, 2016 at 8:26 PM, Chris Rydalch <cryda...@gmail.com> wrote: > As I've been getting my feet wet with Fossil, I noticed the Search doesn't > seem to return any matches in Technotes. > > Is there some hidden way to configure the search to include Technotes? > Martijn on Stackoverflow pointed out that the source code doesn't look at > technotes, but should they be included in the wiki category? Or are they > omitted for a specific reason? > > Thanks in advance! > ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[fossil-users] Technotes and Search results
As I've been getting my feet wet with Fossil, I noticed the Search doesn't seem to return any matches in Technotes. Is there some hidden way to configure the search to include Technotes? Martijn on Stackoverflow pointed out that the source code doesn't look at technotes, but should they be included in the wiki category? Or are they omitted for a specific reason? Thanks in advance!___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users