Re: [fossil-users] email testing - no subscriber table?

2018-06-23 Thread Svyatoslav Mishyn
(Sat, 23 Jun 23:03) Svyatoslav Mishyn:
> quick typos:

another one (+ previous one):

-generated once the email notification systems stablizes.
+generated once the email notification systems stabilizes.

and

-  of the source tree that shows how to this is done.
+  of the source tree that shows how this is done.


(I don't know, should I add such small edits in full attachment patch
file, or is it ok to just inline them?)


-- 
https://www.juef.space/
___
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] email testing - no subscriber table?

2018-06-23 Thread Svyatoslav Mishyn
Hi,

(Sat, 23 Jun 13:12) Richard Hipp:
> Rough developers notes are available at
> https://www.fossil-scm.org/fossil/doc/trunk/www/emaildesign.md for
> anybody who wants to experiment with or contribute to this
> work-in-progress.

quick typos:

Index: src/email.c
==
--- src/email.c
+++ src/email.c
@@ -855,11 +855,11 @@
 ** WEBPAGE: subscribe
 **
 ** Allow users to subscribe to email notifications.
 **
 ** This page is usually run by users who are not logged in.
-** A logged-in user can add email notificates on the /alerts page.
+** A logged-in user can add email notifications on the /alerts page.
 ** Access to this page by a logged in user (other than an
 ** administrator) results in a redirect to the /alerts page.
 **
 ** Administrators can visit this page in order to sign up other
 ** users.

Index: www/emaildesign.md
==
--- www/emaildesign.md
+++ www/emaildesign.md
@@ -6,11 +6,11 @@
 understanding of how Fossil handles email notification, to help
 with doing custom configurations, or to help contribute features.
 
 This document assumes expert-level systems knowledge.  A separate
 tutorial for setting up email notification by non-experts will be
-generated once the email notification systems stablizes.
+generated once the email notification systems stabilizes.
 
 Email notification is under active development as of this writing
 (2018-06-23).  Check back frequently for updates.
 
 Data Design
@@ -76,11 +76,11 @@
   email messages to the Postfix mail transfer agent.  There is
   an example TCL script in the
   [tools/email-monitor.tcl](/file/tools/email-monitor.tcl) file
   of the source tree that shows how to do this.
 
-  3.  "dir" $rarr; Write outgoing email messages as individual
+  3.  "dir"  Write outgoing email messages as individual
   files in a designated directory.  This might be useful for
   testing and debugging.
 
 Internally, there is a fourth email sending method named "stdout"
 which simply writes the text of the email message on standard output.


and thank you!


-- 
https://www.juef.space/
___
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] [sqlite] Mailing list shutting down...

2018-06-13 Thread Svyatoslav Mishyn
(Wed, 13 Jun 14:59) Richard Hipp:
> Cross-posted to the fossil-users mailing list since www.fossil-scm.org
> and www.sqlite.org are the same machine and both mailing lists are
> impacted by the current problem.
> 
> On 6/13/18, Luiz Américo  wrote:
> > How about using https://www.discourse.org/ ?
> >
> > Open source projects can use for free
> 
> Thanks for the pointer, Luiz.
> 
> Discourse is moving the right direction, I think.  To install it, one
> downloads a docker container and runs it on some Linux VM someplace.
> (They recommend Digital Ocean, which is where I www3.sqlite.org is
> hosted already.)  It's a self-contained package with minimal
> dependencies that just works.  And it uses SQLite!  My kind of
> software!

Another alternative would be nimforum:
https://github.com/nim-lang/nimforum

From its description:
NimForum is a light-weight forum implementation with many similarities
to Discourse. It is implemented in the Nim programming language and uses
SQLite for its database.


Haven't tried to use it myself, just suggesting.


-- 
https://www.juef.space/
___
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] Bug in /finfo not showing Deleted anymore.

2018-06-13 Thread Svyatoslav Mishyn
(Wed, 13 Jun 08:49) Andy Bradford:
> I haven't  had the time to  investigate further, but it  seems that with
> this  commit, the  /finfo  timeline no  longer shows  when  a file  gets
> Deleted:
> 
> http://www.fossil-scm.org/index.html/info/4c268999d5

I've reported it before:
https://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg27146.html


-- 
https://www.juef.space/
___
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] Mailing list shutting down...

2018-06-13 Thread Svyatoslav Mishyn
(Wed, 13 Jun 10:05) Richard Hipp:
> I would like to provide users the option to send messages formatted
> using Markdown.  Are there Markdown libraries available in TCL that I
> can use, that you know of?

Written in pure Tcl?
Or is it OK to use Tcl bindings to existing C Markdown libraries?

http://wiki.tcl.tk/28965#pagetoca6cf0b79


-- 
https://www.juef.space/
___
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] Mailing list shutting down...

2018-06-13 Thread Svyatoslav Mishyn
Hello,

(Wed, 13 Jun 09:10) Richard Hipp:
> Other issues with GNU MailMan:
> 
...
> (3) GNU MailMan is a pile of Python, spread out across many
> directories in magical places all over the filesystem.  It is sparsely
> documented (that I have been able to find) and difficult to work on.

Have you considered/tried mlmmj - http://mlmmj.org/ ?

At least it's written in C.


-- 
https://www.juef.space/
___
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] Why SQLite Does Not Use Git

2018-04-14 Thread Svyatoslav Mishyn
(Sat, 14 Apr 06:22) Richard Hipp:
> Article:  https://sqlite.org/whynotgit.html
> 
> HN discussion: https://news.ycombinator.com/item?id=16806114
> 
> Reddit discussion:
> https://www.reddit.com/r/programming/comments/8c2niw/why_sqlite_does_not_use_git/

and Lobsters discussion: https://lobste.rs/s/slcntl/why_sqlite_does_not_use_git


-- 
https://www.juef.space/
___
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] Extending Fossil with Lua?

2018-04-08 Thread Svyatoslav Mishyn
Hi,

(Sat, 07 Apr 18:54) Offray Vladimir Luna Cárdenas:
> I will try an organic approach to this problem. First starting with some
> external functionality in the similar vein of how syntax highlighting is
> done using JS  [1], then trying some bindings between JS and installed
> and then I will try to enable something like Asciidoctor.js to put it in
> the rendering hook, to see if, in the same way that files ended with
> particular extensions can be rendered with color, I can render files
> ended in 'adoc' or 'ad' using Asciidoctor.js. After that I would try
> some approach that enables something similar using Lunamark[2].

you could also try [Fengari](https://fengari.io/) which is
the Lua VM written in JavaScript

..or [Starlight](http://starlight.paulcuth.me.uk/)
..or [Moonshine](http://moonshinejs.org/)
..or [lua.js](https://github.com/mherkender/lua.js/)
..or [lua.vm.js](http://daurnimator.github.io/lua.vm.js/lua.vm.js.html)
..or [LuaJS](https://github.com/Doridian/LuaJS)
..or [ljs](https://github.com/humbletim/ljs)


-- 
https://www.juef.space/
___
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] Bidirectional Synchronization

2018-04-06 Thread Svyatoslav Mishyn
Hi,

(Mon, 26 Mar 19:43) Saša Janiška:
> Now, the upstream project use Git(hub) and since I prefer to work in
> Fossil, I wonder if someone can share his/her experience in using
> Bidirectional Synchronization as described in the wiki?

you can check Roy's blog post about it:
https://roy.marples.name/blog/fossil-git-bridge


There is also "fx" utility:
https://github.com/andreas-kupries/fx
which from its description can mirror from Fossil to Git.

I haven't tried both scripts but they may be of interest to you.


Also check related discussions:
https://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg23789.html
https://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg20288.html


-- 
https://www.juef.space/
___
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] fossil: error while loading shared libraries: libssl.so.1.1

2018-04-06 Thread Svyatoslav Mishyn
(Fri, 06 Apr 08:20) Tim Chase:
> Rebuild fossil as a really-static binary, not just a
> mostly-static binary?

I think, it is a preferable way.


You could also use this Docker image (or just as inspiration):
https://hub.docker.com/r/dhylton/fossilrepo/

(announced in
https://www.mail-archive.com/fossil-users@lists.fossil-scm.org/msg27184.html
)

which builds the latest (trunk) Fossil version
statically linked against musl libc and LibreSSL (using Alpine Linux image).


-- 
https://www.juef.space/
___
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] Why Fossil is so fast?

2018-04-02 Thread Svyatoslav Mishyn
(Sat, 31 Mar 08:22) Richard Hipp:
> On 3/31/18, Svyatoslav Mishyn <svyatoslav.mis...@gmail.com> wrote:
> > "max-loadavg" setting can't help as it does not affect /vdiff pages.
> 
> We could fix that.  Should we?

then /fdiff, /vpatch, /info pages should probably also be included
if "max-loadavg" effect will be eventually expanded.


But for now, for me it is OK, to just limit number of
requests/connections via nginx itself
(and then if needed block IPs via fail2ban -> iptables).


-- 
https://www.juef.space/
___
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] /finfo : no more "Deleted" status

2018-03-31 Thread Svyatoslav Mishyn
(Fri, 23 Mar 14:54) Svyatoslav Mishyn:
> changes made in 4c268999d5 commit removed "Deleted" status
> for /finfo page:
> https://www.fossil-scm.org/index.html/timeline?c=4c268999d5
> 
> See, for example, history of removed "file":
> https://www.fossil-scm.org/index.html/finfo?name=file

So, will the previous behavior be restored?


-- 
https://www.juef.space/
___
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] Why Fossil is so fast?

2018-03-31 Thread Svyatoslav Mishyn
(Mon, 26 Mar 16:40) Warren Young:
> On Mar 26, 2018, at 2:45 PM, Warren Young <war...@etr-usa.com> wrote:
> > 
> > On Mar 26, 2018, at 2:15 PM, Svyatoslav Mishyn 
> > <svyatoslav.mis...@gmail.com> wrote:
> >> 
> >> Here are results of r.sh when stress.sh was run (and all RAM was used
> >> on VPS):
> 
> I’ve thought a bit more about this stress.sh script.  It is based on ab, 
> which I presume is the Apache Benchmark program.  You aren’t giving it -C, 
> which means it’s just bouncing off that URL and sending you back to the login 
> page on each HTTP hit.  Thus, it is not at all like a real user trying to use 
> the fossil-scm.org repository remotely.
> 
> Monitor your HTTP traffic to the Fossil server, and I think you’ll see that 
> you aren’t actually pulling vdiffs with this test.

Actually, Apache Benchmark pulls diffs without "-C" option as the
"nobody" user got "gjorz" permissions.

If I remove "o" (Check-Out) capability, then yes, will be a redirect to
/login page.


On the other hand, how to protect a VPS against such requests?
Without removing current functionality for non-logged ("nobody") users, i.e.
keep "o" capability.

"max-loadavg" setting can't help as it does not affect /vdiff pages.

Only by limiting requests by nginx to fossil.?


-- 
https://www.juef.space/
___
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] Where did the skins go

2018-03-26 Thread Svyatoslav Mishyn
(Mon, 26 Mar 15:53) Scott Doctor:
> I updated my copy of fossil to the latest version. I created a new
> repository, launched the fossil ui, opened admin->skins, all I see is the
> options to create a new skin. What happened to all of the predefined skins?

they are here: /setup_skin_admin (Step 8 from admin->skins).

Note as you can read from /setup_skin page you can't edit directly
predefined skins anymore, in order to do it, first you need to
initialize some of draft[1-9] skin (Step 3 from /setup_skin), then make
edits (Step 4), check if everything look ok (Step 5), and publish that
new draft skin (Step 7, mark two checkboxes).

After that it will appear in /setup_skin_admin page under Draft skins
section.


-- 
https://www.juef.space/
___
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] Why Fossil is so fast?

2018-03-26 Thread Svyatoslav Mishyn
(Mon, 26 Mar 09:50) Warren Young:
> > I compared page generation speed with some other Fossil repositories:
> > Fossil itself, SQLite, Tcl
> > using the same pages which are not strictly related to
> > repository size and age: like
> > /help, /sitemap, /stat, /wiki, /version?verbose
> > 
> > and on these repos I got various timings after refreshing page,
> > while on mine always 0.001s
> 
> You are presumably using a new or at least young repository, thus the various 
> log(N) operations are using very small values of N, thus take very few CPU 
> cycles to execute.  Additionally, you are doing this on a system that is not 
> under load, and which has hot RAM and mass storage caches.
> 
> To this, you are comparing other repositories with large N, which probably 
> have other concurrent users at any given time, and which are likely to have 
> quite a few cache misses.
> 
> Naturally your repository is “faster”.  Put it under the same loads, and it 
> will slow down as well.

OK, thanks for the detailed answer.

But why I still got better timings even under heavy load?


I have added a temporary Fossil mirror, then run stress.sh.
(VPS bursted: all RAM, Swap and CPU were used, so I added after that
a rate limiting to nginx.)

Here are results of r.sh when stress.sh was run (and all RAM was used
on VPS):
2018-03-26-19:34:08 time generation: 0.001s; load average: 10.909180
2018-03-26-19:34:11 time generation: 0.001s; load average: 10.909180
2018-03-26-19:34:14 time generation: 0.001s; load average: 12.918450
2018-03-26-19:34:15 time generation: 0.001s; load average: 12.918450
2018-03-26-19:34:18 time generation: 0.001s; load average: 14.767090
2018-03-26-19:34:22 time generation: 0.001s; load average: 14.767090
2018-03-26-19:34:24 time generation: 0.001s; load average: 16.547850

and against fossil-scm.org itself (only r.sh):
2018-03-26-20:01:03 time generation: 0.003s; load average: 0.11
2018-03-26-20:01:07 time generation: 0.004s; load average: 0.10
2018-03-26-20:01:13 time generation: 0.003s; load average: 0.09
2018-03-26-20:01:20 time generation: 0.003s; load average: 0.08
2018-03-26-20:01:26 time generation: 0.003s; load average: 0.07
2018-03-26-20:01:29 time generation: 0.003s; load average: 0.07
2018-03-26-20:01:32 time generation: 0.003s; load average: 0.06

I tested only /wiki page.


-- 
https://www.juef.space/
#!/bin/sh

url="https://www.fossil-scm.org/index.html/wiki;
test_env_url="https://www.fossil-scm.org/index.html/test_env;

url="https://f.juef.space/mirrors/fossil/wiki;
test_env_url="https://f.juef.space/mirrors/fossil/test_env;

while true; do
t="$(curl -s "$url" \
| awk '/This page was generated/ { getline; print($1) }')"
la="$(curl -s "$test_env_url"   \
| awk '/load_average()/ { print(substr($3, 0, 8)) }')"

printf "%s time generation: %s; load average: %f\n" \
"$(date -u '+%F-%T')" "$t" "$la"
done
#!/bin/sh

url="https://f.juef.space/mirrors/fossil/vdiff?from=694e11a72e32bb45=1336c4af8a016772;

while true; do
ab -c 50 -n 50 "$url" > /dev/null
done
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] etag.c | typo

2018-03-25 Thread Svyatoslav Mishyn
Hi,

just a single typo:

Index: src/etag.c
==
--- src/etag.c
+++ src/etag.c
@@ -132,11 +132,11 @@
 }
 
 /*
 ** Accept a new Last-Modified time.  This routine should be called by
 ** page generators that know a valid last-modified time.  This routine
-** might generate a 304 Not Modified reply and exit(), never returnning.
+** might generate a 304 Not Modified reply and exit(), never returning.
 ** Or, if not, it will cause a Last-Modified: header to be included in the
 ** reply.
 */
 void etag_last_modified(sqlite3_int64 mtime){
   const char *zIfModifiedSince;


-- 
https://www.juef.space/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Why Fossil is so fast?

2018-03-24 Thread Svyatoslav Mishyn
Hi,

just noticed that page generation of many of my repos is 0.001s.
And that result is identical for many web-pages,
only difference was for some /search request
and some heavyweight check-in pages.

(I looked just in footer info, which is
https://www.fossil-scm.org/index.html/artifact/7dd553d65672572e at least
for my repos.)

I compared page generation speed with some other Fossil repositories:
Fossil itself, SQLite, Tcl
using the same pages which are not strictly related to
repository size and age: like
/help, /sitemap, /stat, /wiki, /version?verbose

and on these repos I got various timings after refreshing page,
while on mine always 0.001s

Q1: Why I got such results?
(here is how fossil built: https://cfg.juef.space/artifact/0cf91e3734b0183a)
Q2: What are the most heavy-weight web-pages that are independent of
repository (i.e. do not depend on its size and age) to test such cases
more deeply?


Thanks.


-- 
https://www.juef.space/
___
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] How to fix an SQLite warning on the /tagtimeline page?

2018-03-23 Thread Svyatoslav Mishyn
(Fri, 23 Mar 11:37) Richard Hipp:
> OK.  Changes are now on trunk to silence this warning.

Thanks.


-- 
https://www.juef.space/
___
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] How to fix an SQLite warning on the /tagtimeline page?

2018-03-23 Thread Svyatoslav Mishyn
(Fri, 23 Mar 15:03) j. van den hoff:
> I see it on some repos, but not on others...

Usually, after upgrading Fossil to a new (major,minor) version,
I rebuild all my repos.

But one repo wasn't rebuilt at all as it was started 3 days ago.
And before upgrading and rebuilding there was no such warning.

So, I upgraded Fossil from d5ca5384 version to 1849c6e2,
and then rebuilt all repos, now that warning also appears in that new
repo.


-- 
https://www.juef.space/
___
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] How to fix an SQLite warning on the /tagtimeline page?

2018-03-23 Thread Svyatoslav Mishyn
(Fri, 23 Mar 10:06) Richard Hipp:
> On 3/23/18, Svyatoslav Mishyn <svyatoslav.mis...@gmail.com> wrote:
> > (Fri, 23 Mar 07:56) Richard Hipp:
> >> > how to fix an SQLite warning on the /tagtimeline page?
> >>
> >> The easiest solution is probably to recompile without the -DFOSSIL_DEBUG
> >> option.
> >
> > it didn't go away with:
> > ./configure --fossil-debug=0 CFLAGS='-UFOSSIL_DEBUG'
> >
> 
> I do not understand that because the warning message is clearly
> conditional on FOSSIL_DEBUG.
> https://www.fossil-scm.org/fossil/artifact/3ad7d4054ca?ln=389

I think that warning message is from sqlite3.c
(where.c): https://www.sqlite.org/src/artifact/7cae47e813393d70?ln=714

> > with ./configure --fossil-debug, there are just more details:
> >
> > SQLITE_WARNING: automatic index on tagxref(tagtype)
> >
> > 21 scan steps for 1 rows in [SELECT blob.rid AS blobRid, uuid AS uuid,
> > datetime(event.mtime,toLocal()) AS timestamp, coalesce(ecomment,
> > comment) AS comment, coalesce(euser, user) AS user, blob.rid IN leaf AS
> > leaf, bgcolor AS bgColor, event.type AS eventType, (SELECT
> > group_concat(substr(tagname,5), ', ') FROM tag, tagxref WHERE tagname
> > GLOB 'sym-*' AND tag.tagid=tagxref.tagid AND tagxref.rid=blob.rid AND
> > tagxref.tagtype>0) AS tags, tagid AS tagid, brief AS brief, event.mtime
> > AS mtime FROM event CROSS JOIN blob WHERE blob.rid=event.objid AND
> > blob.rid IN (SELECT rid FROM tagxref WHERE tagtype=1 AND srcid>0 AND
> > tagid IN (SELECT tagid FROM tag WHERE tagname GLOB 'sym-*')) ORDER BY
> > event.mtime DESC]
> >
> 
> I get a warning about "sort w/o index" when I build with FOSSIL_DEBUG.
> I have never seen the too warnings you show above.  I checked in a fix
> for the sort w/o index warning.  But without being able to repo, I
> don't know how to fix the others.

You can clone one of my repo to see it, for example, jmsn:
https://f.juef.space/jmsn

> I still think the best solution is to compile w/o the FOSSIL_DEBUG
> setting.  I'm not sure that is really happening.  Maybe you need to do
> "make clean" or something.

Yes, `make clean` was run before recompiling.


-- 
https://www.juef.space/
___
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] How to fix an SQLite warning on the /tagtimeline page?

2018-03-23 Thread Svyatoslav Mishyn
(Fri, 23 Mar 07:56) Richard Hipp:
> > how to fix an SQLite warning on the /tagtimeline page?
> 
> The easiest solution is probably to recompile without the -DFOSSIL_DEBUG 
> option.

it didn't go away with:
./configure --fossil-debug=0 CFLAGS='-UFOSSIL_DEBUG'


with ./configure --fossil-debug, there are just more details:

SQLITE_WARNING: automatic index on tagxref(tagtype)

21 scan steps for 1 rows in [SELECT blob.rid AS blobRid, uuid AS uuid,
datetime(event.mtime,toLocal()) AS timestamp, coalesce(ecomment,
comment) AS comment, coalesce(euser, user) AS user, blob.rid IN leaf AS
leaf, bgcolor AS bgColor, event.type AS eventType, (SELECT
group_concat(substr(tagname,5), ', ') FROM tag, tagxref WHERE tagname
GLOB 'sym-*' AND tag.tagid=tagxref.tagid AND tagxref.rid=blob.rid AND
tagxref.tagtype>0) AS tags, tagid AS tagid, brief AS brief, event.mtime
AS mtime FROM event CROSS JOIN blob WHERE blob.rid=event.objid AND
blob.rid IN (SELECT rid FROM tagxref WHERE tagtype=1 AND srcid>0 AND
tagid IN (SELECT tagid FROM tag WHERE tagname GLOB 'sym-*')) ORDER BY
event.mtime DESC]


-- 
https://www.juef.space/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] /finfo : no more "Deleted" status

2018-03-23 Thread Svyatoslav Mishyn
Hi,

changes made in 4c268999d5 commit removed "Deleted" status
for /finfo page:
https://www.fossil-scm.org/index.html/timeline?c=4c268999d5

See, for example, history of removed "file":
https://www.fossil-scm.org/index.html/finfo?name=file


-- 
https://www.juef.space/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] How to fix an SQLite warning on the /tagtimeline page?

2018-03-23 Thread Svyatoslav Mishyn
Hi,

how to fix an SQLite warning on the /tagtimeline page?

On all my publicly available repositories I have such error on that page:
SQLITE_WARNING: automatic index on tagxref(tagtype)


trunk (1849c6e205) Fossil version is used,
and they all were rebuilt.


Thanks.


-- 
https://www.juef.space/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] /download page : no fallback to "project-description"

2018-03-22 Thread Svyatoslav Mishyn
Just noticed that if "short-project-name" wasn't set,
/download page doesn't try to use "project-description" value.
Though for generated tarballs, ZIP archives and SQL archives
"project-description" is used when no "short-project-name" set.


-- 
https://www.juef.space/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] one Fossil SCGI process for several domains

2018-03-21 Thread Svyatoslav Mishyn
Hello,

just thinking how Fossil server could be optimized.

Currently I set up a dedicated process per domain,
basically as described here:
https://www.fossil-scm.org/index.html/doc/trunk/www/server.wiki#scgi

Is it possible to setup nginx to pass requests to the same SCGI process
but with different path names for different vhosts?

like this:

a.example.net conf:
location / {
include scgi_params;
scgi_pass 127.0.0.1:9000;
scgi_param REQUEST_URI /fossil_repo_a$request_uri;
scgi_param SCRIPT_NAME "";
}

b.example.net conf:
location / {
include scgi_params;
scgi_pass 127.0.0.1:9000;
scgi_param REQUEST_URI /fossil_repo_b$request_uri;
scgi_param SCRIPT_NAME "";
}

but such configuration doesn't work..


-- 
https://www.juef.space/
___
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] One mouse click to see all the tickets

2018-03-17 Thread Svyatoslav Mishyn
(Sat, 17 Mar 10:59) Warren Young:
> I would suggest a refinement, however: set up at least two other reports,
> one for open bug report tickets and another for open feature request
> tickets, then use the Admin > URL Aliases to assign them sensible aliases
> like /bugs and /wishlist. Then you can exchange the default Tickets tab in
> the header for two tabs, "Bugs" pointing to
> "/bugs" and "Wish List" pointing to "/wishlist".

Nice hint, thank you.


-- 
https://www.juef.space/
___
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] How to find the doc for the fossil command

2018-03-17 Thread Svyatoslav Mishyn
Hi,

(Sat, 17 Mar 09:50) J Ronald:
> fossil user capabilities USERNAME ?STRING?
> What's for ?STRING?I check the doc here: Fossil: Help: user, not enough info.

see https://www.fossil-scm.org/index.html/setup_ulist_notes


-- 
https://www.juef.space/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] db.c | typos

2018-03-11 Thread Svyatoslav Mishyn
Hi,

just found a few typos/missing dots.


-- 
https://www.juef.space/
Index: src/db.c
==
--- src/db.c
+++ src/db.c
@@ -2841,11 +2841,11 @@
 #endif
 /*
 ** SETTING: auto-captchaboolean default=on variable=autocaptcha
 ** If enabled, the /login page provides a button that will automatically
 ** fill in the captcha password.  This makes things easier for human users,
-** at the expense of also making logins easier for malecious robots.
+** at the expense of also making logins easier for malicious robots.
 */
 /*
 ** SETTING: auto-hyperlink  boolean default=on
 ** Use javascript to enable hyperlinks on web pages
 ** for all users (regardless of the "h" privilege) if the
@@ -2914,11 +2914,11 @@
 ** line endings. Set to "*" to disable CR+LF checking.
 ** The crnl-glob setting is a compatibility alias.
 */
 /*
 ** SETTING: crnl-glob   width=40 versionable block-text
-** This is an alias for the crlf-glob setting
+** This is an alias for the crlf-glob setting.
 */
 /*
 ** SETTING: default-perms   width=16 default=u
 ** Permissions given automatically to new users.  For more
 ** information on permissions see the Users page in Server
@@ -3003,11 +3003,11 @@
 ** and "ui" commands.
 */
 /*
 ** SETTING: https-login  boolean default=off
 ** If true, then the Fossil web server will redirect unencrypted
-** login screeen requests to HTTPS.
+** login screen requests to HTTPS.
 */
 /*
 ** SETTING: ignore-glob  width=40 versionable block-text
 ** The value is a comma or newline-separated list of GLOB
 ** patterns specifying files that the "add", "addremove",
@@ -3016,11 +3016,11 @@
 ** Example:  *.log customCode.c notes.txt
 */
 /*
 ** SETTING: keep-globwidth=40 versionable block-text
 ** The value is a comma or newline-separated list of GLOB
-** patterns specifying files that the "clean" command will keep
+** patterns specifying files that the "clean" command will keep.
 */
 /*
 ** SETTING: localauthboolean default=off
 ** If enabled, require that HTTP connections from
 ** 127.0.0.1 be authenticated by password.  If



signature.asc
Description: PGP signature
___
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] Documentation requests

2018-03-02 Thread Svyatoslav Mishyn
(Mon, 26 Feb 17:57) Richard Hipp:
> On 2/26/18, Thomas Levine <_...@thomaslevine.com> wrote:
> > In the case of the fossil web server setup, for example, I envision
> > an almost patronizing tutorial on alternative web server configuration
> > options, the concept of proxy servers, installation of packages in
> > various operating systems or web hosts, and how to debug web server
> > configurations.
> 
> A theoretical discussion with lots of "concept" talk would be great to
> have too.  But I I think a more pressing need is just a series of
> step-by-step guides.  In all cases assume a $5/month Linode or
> DigitalOcean Droplet or 3-euro/month scaleway.com ARM machine.  But
> then have separate documents for various configurations:
> 
>*  Apache via CGI
>*  Apache via SCGI
>*  Nginx
>*  Lighttpd
>*  Stunnel4 direct to fossil
>*  Stunnel4 to althttpd then fossil via CGI
>*  Xinetd direct to fossil
>*  Xinetd to althttpd then fossil via CGI
>*  Fossil running standalone (the "fossil server" command)
> 
> Each of the above should explain how to set up a single repository
> *and* how to set up multiple repositories operating off of the same
> domain.
> 
> Maybe also a separate document on how to lease a
> linode/droplet/scaleway server and obtain your domain name.
> 
> The format can be a checklist with intermixed text commentary.

I don't have step-by-step tutorials,
but I have a bunch of scripts which basically fully setup VPS
(only need to update accordingly domain names, usernames, IPs,
SSH public keys if someone will use it).

Somewhat light version of Ansible, I think..

It is Nginx + letsencrypt on Alpine Linux and hosted on Aruba Cloud (1€/month).

https://cfg.juef.space/dir?ci=trunk


-- 
https://www.juef.space/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Converting to/from symlinks

2018-02-27 Thread Svyatoslav Mishyn
Hi,

it seems that when `allow-symlinks` option is enabled,
file which was already added cannot be overwritten by a symlink,
see a test.


mkdir test && cd test
fossil init .fossil && fossil open .fossil
fossil set allow-symlinks 0

cp ~/.ssh/default.pub . && fossil add default.pub && fossil ci -m file

fossil set allow-symlinks 1
ln -fs ~/.ssh/default.pub default.pub

fossil ci -m symlink
New_Version: 163fd28f692b571070e1471fa3236ba46b0f121cbc11553c4203fc937831dca5
ERROR: [default.pub] is 27 bytes on disk but 726 in the repository
NOTICE: Repository version of [default.pub] stored in [file-f8c1d36b817714f6]
working checkout does not match what would have ended up in the repository:  
6810fe7cfca414a1c2f36cea0619a695 versus 8fa57811ea8fcd434443c61628f62d73


So, if I want at some point to replace file by a symlink,
first need to remove that file, commit changes,
and only then add a symlink, right?


(Tested with trunk version.)


-- 
https://www.juef.space/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] no precompiled binaries for OpenBSD

2018-02-23 Thread Svyatoslav Mishyn
Howdy,

here https://www.fossil-scm.org/index.html/uv/download.html are no more
archives for OpenBSD.
Should the docs be updated to reflect it?
such as: test/release-checklist.wiki, www/index.wiki, and fossil.1


+ Should the www/mkdownload.tcl file be deleted from repo?
as download.html is not generated via it anymore


-- 
https://www.juef.space/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] unconsistent fallback name for unnamed repository

2018-02-23 Thread Svyatoslav Mishyn
Howdy,

I think, it's better to replace "???" by ""
in `fossil all changes` and `all extras` commands for unnamed repository,
just for consistency.


(Although there are just "unnamed" (without <>),
and just an empty string in some cases.)


-- 
https://www.juef.space/
Index: src/checkin.c
==
--- src/checkin.c
+++ src/checkin.c
@@ -557,12 +557,12 @@
   /* Find and print all requested changes. */
   blob_zero();
   status_report(, flags);
   if( blob_size() ){
 if( showHdr ){
-  fossil_print("Changes for %s at %s:\n", db_get("project-name", "???"),
-   g.zLocalRoot);
+  fossil_print("Changes for %s at %s:\n",
+   db_get("project-name", ""), g.zLocalRoot);
 }
 blob_write_to_file(, "-");
   }else if( verboseFlag ){
 fossil_print("  (none)\n");
   }
@@ -865,12 +865,12 @@
 
   blob_zero();
   status_report(, flags);
   if( blob_size() ){
 if( showHdr ){
-  fossil_print("Extras for %s at %s:\n", db_get("project-name","???"),
-   g.zLocalRoot);
+  fossil_print("Extras for %s at %s:\n",
+   db_get("project-name", ""), g.zLocalRoot);
 }
 blob_write_to_file(, "-");
   }
   blob_reset();
 }



signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] src/login.c: typo

2018-02-16 Thread Svyatoslav Mishyn
Hi,

just noticed a double "is" in that file:

Index: src/login.c
==
--- src/login.c
+++ src/login.c
@@ -506,11 +506,11 @@
 const char *zQS = P("QUERY_STRING");
 if( P("redir")!=0 || g.sslNotAvailable ){
   style_header("Insecure Connection");
   @ Unable To Establish An Encrypted Connection
   @ This website requires that login credentials be sent over
-  @ an encrypted connection.  The current connection, however, is
+  @ an encrypted connection.  The current connection, however,
   @ is not encrypted all the way from your browser to the server.
   @ A prior attempt was made to redirect to %h(g.zHttpsURL) but
   @ the connection is still insecure even after the redirect.
   @ This is probably some kind of configuration problem.  Please
   @ contact your sysadmin.


Thanks.


-- 
https://www.juef.space/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] www/server.wiki: small correction

2018-02-13 Thread Svyatoslav Mishyn
Hi,

Index: www/server.wiki
==
--- www/server.wiki
+++ www/server.wiki
@@ -317,11 +317,11 @@
 
 An optional cache is available that remembers the 10 most recently
 requested /zip or /tarball pages and returns the precomputed answer
 if the same page is requested again.
 Page requests can be configured to fail with a
-[http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.3 | "503 
Server Overload"]
+[http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.5.4 | "503 
Server Overload"]
 HTTP error if an expensive request is received while the host load
 average is too high.
 
 Both of these load-control mechanisms are turned off by default, but they
 are recommended for high-traffic sites.

10.5.3 section points to "502 Bad Gateway", while
10.5.4 points to "503 Service Unavailable".


-- 
https://www.juef.space/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] typo on the download page

2016-10-22 Thread Svyatoslav Mishyn
Hi there,

here (https://www.fossil-scm.org/index.html/uv/download.html) are
links like these:
Version 1.35 => https://www.fossil-scm.org/fossil/timeline?c=version-1.35;y=ci
Version 1.34 => https://www.fossil-scm.org/fossil/timeline?c=version-1.34;y=ci
...

there should be '&' instead of ';'
(i.e. https://www.fossil-scm.org/fossil/timeline?c=version-1.35=ci)


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] features I'd like to have in fossil

2016-10-21 Thread Svyatoslav Mishyn
(Fri, 21 Oct 12:14) Warren Young:
> https://www.fossil-scm.org/index.html/doc/trunk/www/checkin_names.wiki

just found a typo:

Index: www/checkin_names.wiki
==
--- www/checkin_names.wiki
+++ www/checkin_names.wiki
@@ -158,11 +158,11 @@
 
 In its default configuration, Fossil interprets and displays all dates
 in Universal Coordinated Time (UTC).  This tends to work the best for
 distributed projects where participants are scattered around the globe.
 But there is an option on the Admin/Timeline page of the web-interface to
-switch to local time.  The "Z" suffix on an timestamp check-in
+switch to local time.  The "Z" suffix on a timestamp check-in
 name is meaningless if Fossil is in the default mode of using UTC for
 everything, but if Fossil has been switched to local time mode, then the
 "Z" suffix means to interpret that particular timestamp using 
 UTC instead of local time.
 


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] How to make post-commit hook?

2016-10-14 Thread Svyatoslav Mishyn
(Thu, 13 Oct 08:25) Nickolas Lloyd:
> At a cursory glance, it looks like the `fsl' tool would allow you to do
> something similar: just define a new `fsl' command that will do the
> commit, export, and push all in one step.

So, now I just use a function that imitates a post-commit hook.
Not perfect, but it works.

https://f.juef.space/dotfiles/artifact/c164208b86419f679ac644ab8536eb66d96300dd?txt=1=86,115


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] outdated www/webui.wiki file

2016-10-13 Thread Svyatoslav Mishyn
Hello,

www/webui.wiki[0] contains:
the entire Fossil website (except for the download page)


[0]: 
http://www.fossil-scm.org/index.html/artifact/cdb125adad3e8311a3badefa59b99dd9f417dc7c?txt=1=30,31


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] why doesn't the "ui" command automatically start a web browser

2016-10-13 Thread Svyatoslav Mishyn
Why don't I get 'g.zConfigDbName' in function db_get()?

/home/juef/fossil/e/fossil: ./fossil ui
db_get()::z(1) |0|
db_get()::z(2) |chromium|
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |chromium http://localhost:8080/timeline?c=current 
&|
Created new window in existing browser session.
^C
/home/juef/fossil/e/fossil: ./fossil ui ..
db_get()::g.zConfigDbName==0
db_get()::z(5) |0|
cmd_webserver()::zBrowser==0
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |echo http://localhost:8080/ &|
http://localhost:8080/
^C
/home/juef/fossil/e/fossil: ./fossil ui ../fossil.fossil
db_get()::z(1) |0|
db_get()::g.zConfigDbName==0
db_get()::z(5) |0|
cmd_webserver()::zBrowser==0
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |echo http://localhost:8080/ &|
http://localhost:8080/
^C


Index: src/cgi.c
==
--- src/cgi.c
+++ src/cgi.c
@@ -1769,10 +1769,11 @@
  (flags & HTTP_SERVER_SCGI)!=0?"SCGI":"HTTP",  iPort);
   fflush(stdout);
   if( zBrowser ){
 assert( strstr(zBrowser,"%d")!=0 );
 zBrowser = mprintf(zBrowser /*works-like:"%d"*/, iPort);
+fprintf(stderr, "cgi_http_server()::zBrowser |%s|\n", zBrowser);
 #if defined(__CYGWIN__)
 /* On Cygwin, we can do better than "echo" */
 if( strncmp(zBrowser, "echo ", 5)==0 ){
   wchar_t *wUrl = fossil_utf8_to_unicode(zBrowser+5);
   wUrl[wcslen(wUrl)-2] = 0; /* Strip terminating " &" */

Index: src/db.c
==
--- src/db.c
+++ src/db.c
@@ -2136,28 +2136,50 @@
 ** versioned value takes priority.
 */
 char *db_get(const char *zName, const char *zDefault){
   char *z = 0;
   const Setting *pSetting = db_find_setting(zName, 0);
+  int wb = strcmp(zName, "web-browser")==0;
+
   if( g.repositoryOpen ){
 z = db_text(0, "SELECT value FROM config WHERE name=%Q", zName);
+if ( wb ){
+  fprintf(stderr, "db_get()::z(1) |%s|\n", z ? z : "0");
+}
+  }
+
+  if ( wb && g.zConfigDbName==0 ){
+fprintf(stderr, "db_get()::g.zConfigDbName==0\n");
   }
   if( z==0 && g.zConfigDbName ){
 db_swap_connections();
 z = db_text(0, "SELECT value FROM global_config WHERE name=%Q", zName);
+if ( wb ){
+  fprintf(stderr, "db_get()::z(2) |%s|\n", z ? z : "0");
+}
 db_swap_connections();
   }
+
   if( pSetting!=0 && pSetting->versionable ){
 /* This is a versionable setting, try and get the info from a
 ** checked out file */
 z = db_get_versioned(zName, z);
+if ( wb ){
+  fprintf(stderr, "db_get()::z(3) |%s|\n", z ? z : "0");
+}
   }
   if( z==0 ){
 if( zDefault==0 && pSetting && pSetting->def[0] ){
   z = fossil_strdup(pSetting->def);
+  if ( wb ){
+fprintf(stderr, "db_get()::z(4) |%s|\n", z ? z : "0");
+  }
 }else{
   z = fossil_strdup(zDefault);
+  if ( wb ){
+fprintf(stderr, "db_get()::z(5) |%s|\n", z ? z : "0");
+  }
 }
   }
   return z;
 }
 char *db_get_mtime(const char *zName, const char *zFormat, const char 
*zDefault){

Index: src/main.c
==
--- src/main.c
+++ src/main.c
@@ -2271,10 +2271,11 @@
   /* Unix implementation */
   if( isUiCmd ){
 #if !defined(__DARWIN__) && !defined(__APPLE__) && !defined(__HAIKU__)
 zBrowser = db_get("web-browser", 0);
 if( zBrowser==0 ){
+  fprintf(stderr, "cmd_webserver()::zBrowser==0\n");
   static const char *const azBrowserProg[] =
   { "xdg-open", "gnome-open", "firefox", "google-chrome" };
   int i;
   zBrowser = "echo";
   for(i=0; i

Re: [fossil-users] How to make post-commit hook?

2016-10-12 Thread Svyatoslav Mishyn
(Wed, 12 Oct 13:39) Nickolas Lloyd:
> I've put together a python script that is called as a git subcommand and
> takes care of all of the synchronization under the hood.  Once it's
> dropped in $GIT_EXEC_PATH I just call `git fossil pull' and `git fossil
> push trunk' to interact with a fossil remote.

and you call those commands after a commit/set of commits manually..?


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] fast-export to git produces unimportable dump

2016-10-12 Thread Svyatoslav Mishyn
(Wed, 12 Oct 11:50) Richard Hipp:
> My guess:  Git does not allow more than a single instance of the tag
> named "one".  In other words, all tags must be unique in Git.

yet another Git limitation


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] why doesn't the "ui" command automatically start a web browser

2016-10-12 Thread Svyatoslav Mishyn
(Wed, 12 Oct 19:13) Stephan Beal:
> On Wed, Oct 12, 2016 at 7:06 PM, Svyatoslav Mishyn <j...@openmailbox.org>
> wrote:
> 
> > (Wed, 12 Oct 17:36) Stephan Beal:
> > > try chromium-browser instead of chromium (which is, AFAIK, a completely
> > > different program)
> >
> > I don't have that (you mean Google Chrome?).
> >
> 
> There's a completely unrelated package named "chromium" in some
> debian/derivative repositories. The browser's package is called
> chromium-browser, as is the binary:
> 
> [stephan@host:~]$ which chromium
> [stephan@host:~]$ which chromium-browser
> /usr/bin/chromium-browser

Finally, I understand :)
I don't use Debian-based dist, I use CRUX.

https://crux.nu/portdb/?a=search=chromium

chromium - web browser
chromium-bsu - game, which in Mint has chromium name:
https://community.linuxmint.com/software/view/chromium

> > I downloaded Google Chrome, and here is result:
> >
> > /home/juef/fossil/e/fossil: ./fossil set web-browser
> > web-browser  (global) chromium
> >
> >
> For Chromium (browser), try:
> 
> fossil set web-browser chromium-browser -g


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] why doesn't the "ui" command automatically start a web browser

2016-10-12 Thread Svyatoslav Mishyn
(Wed, 12 Oct 17:36) Stephan Beal:
> try chromium-browser instead of chromium (which is, AFAIK, a completely
> different program)

I don't have that (you mean Google Chrome?).

I downloaded Google Chrome, and here is result:

/home/juef/fossil/e/fossil: ./fossil set web-browser
web-browser  (global) chromium
/home/juef/fossil/e/fossil: ./fossil ui
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |chromium http://localhost:8080/timeline?c=current 
&|
^C
/home/juef/fossil/e/fossil: ./fossil ui  ..
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |google-chrome http://localhost:8080/ &|
^C
/home/juef/fossil/e/fossil: ./fossil ui  ../fossil.fossil
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |google-chrome http://localhost:8080/ &|
^C

of course when I set web-browser to 'google-chrome',
`./fossil ui` also started google-chrome


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] fast-export to git produces unimportable dump

2016-10-12 Thread Svyatoslav Mishyn
(Thu, 13 Oct 00:19) Osamu Aoki:
> I have no idea for "error: Multiple updates for ref ..." but at least
> git repo is usable one after executing "git checkout trunk".

to reproduce that error:
/home/juef/fossil/test: f co trunk
/home/juef/fossil/test: date >> z && f ci -m t1 --tag one --tag two
/home/juef/fossil/test: date >> z && f ci -m b1 --tag one --tag two --branch br
/home/juef/fossil/test: f2g test
Unpacking objects: 100% (7/7), done.
error: multiple updates for ref 'refs/tags/one' not allowed.


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] why doesn't the "ui" command automatically start a web browser

2016-10-12 Thread Svyatoslav Mishyn
Hello,

recently I've replaced Firefox by Chromium,
and if I run `fossil ui ..` (i.e. not within an open checkout),
browser doesn't start automatically.
Should? AFAIR with Firefox it worked...


(I've added fprintf() call)
/home/juef/fossil/e/fossil: ./fossil ver
This is fossil version 1.36 [de4e4e2a30] 2016-10-12 13:31:14 UTC
/home/juef/fossil/e/fossil: ./fossil set web-browser
web-browser  (global) chromium
/home/juef/fossil/e/fossil: ./fossil ui
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |chromium http://localhost:8080/timeline?c=current 
&|
Created new window in existing browser session.
^C
/home/juef/fossil/e/fossil: ./fossil ui ..
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |echo http://localhost:8080/ &|
http://localhost:8080/
^C
/home/juef/fossil/e/fossil: ./fossil ui ../fossil.fossil
Listening for HTTP requests on TCP port 8080
cgi_http_server()::zBrowser |echo http://localhost:8080/ &|
http://localhost:8080/
^C


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] How to make post-commit hook?

2016-10-11 Thread Svyatoslav Mishyn
Hi all,

I want to automate bidirectional synchronization (Fossil => Git => Fossil).

in git repo I have this:
/home/juef/git/mirrors/fossil/test: cat .git/hooks/post-commit
#!/bin/sh

fossil_dir=/home/juef/fossil
repo=test

/home/juef/bin/g2f "$repo"
cd "${fossil_dir}/${repo}" && fossil co trunk


in fossil repo I've enabled:
tcl and th1-hooks;

as Commit Script I have this:
tclInvoke catch {exec /home/juef/bin/f2g test}

but it looks like a commit script is executed before commit:
/home/juef/fossil/test: date >> z && f ci -m f1
/home/juef/fossil/test: date >> z && f ci -m f2
/home/juef/fossil/test: date >> z && f ci -m f3

/home/juef/git/mirrors/fossil/test: git --no-pager log -n 3 
--pretty=format:"%s%n"
f2
f1
11

on the page /xfersetup Commit has this description:
Specific TH1 code to run after processing a commit.

however on the page /xfersetup_commit it has:
that runs when a commit is processed


Also:
/home/juef/fossil/test: f set tcl
tcl  (local)  1
/home/juef/fossil/test: f test-th-eval 'tclReady'
0


Thanks.


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] incremental Git import

2016-10-08 Thread Svyatoslav Mishyn
Hello,

it looks that incremental git import doesn't work:

f ver
This is fossil version 1.36 [e727b3d50b] 2016-10-06 18:56:51 UTC
f init test.fossil && mkdir test && cd test && f open ../test.fossil
date > z
f add z
f ci -m c1

mkdir ../test.git && cd ../test.git && git init
f export --git --export-marks ../fossil.marks ../test.fossil \
  | git fast-import --export-marks=../git.marks
git co trunk
date >> z
git ci -am c2
git fast-export --import-marks=../git.marks --export-marks=../git.marks \
  | fossil import --git --incremental   \
  --import-marks ../fossil.marks --export-marks ../fossil.marks \
  ../test.fossil

f time -R ../test.fossil
=== 2016-10-08 ===
09:50:24 [928031189b] c1 (user: juef tags: trunk)
09:49:45 [f9f6644267] initial empty check-in (user: juef tags: trunk)
+++ no more data (2) +++

git --no-pager log --pretty=format:"%aD %s%n"
Sat, 8 Oct 2016 12:52:27 +0300 c2
Sat, 8 Oct 2016 09:50:24 + c1
Sat, 8 Oct 2016 09:49:45 + initial empty check-in


BTW, here https://www.fossil-scm.org/index.html/artifact/c79d278db1119360
is missing "../repo.fossil" at the end of `git fast-export ...`

and nick.lloyd-git-interop version cannot export to git,
if checkin has a few tags:
fatal: mark :7 not declared
fast-import: dumping crash report to .git/fast_import_crash_1012
Unpacking objects: 100% (5/5), done.


Thanks.


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] Incremental import breaks repo.

2016-09-02 Thread Svyatoslav Mishyn
Hi,

(Fri, 02 Sep 19:14) Karel Gardas:
> My question is: is it possible somehow to connect those open leafs
> together to form one line of development which is really what's in to
> fossil imported git repo?

Maybe `fossil reparent` and then `fossil leaves --recompute` will help..


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] broken link on the /mlink page

2016-08-29 Thread Svyatoslav Mishyn
Hi,

if a new file was added, link to previous version (under column "From")
is just /info/

also those links should point to check-in page not to the artifact as
they are already under column "Old".


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] typo in the /finfo page

2016-08-27 Thread Svyatoslav Mishyn
Hi there,

from `fossil help /finfo`:
Show the change history for a single file

but that page has in the header "files" word
(e.g.: https://www.fossil-scm.org/index.html/finfo?name=src/main.c =>
History of files named src/main.c).


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] Pie Chart: two items are not very readable

2016-08-24 Thread Svyatoslav Mishyn
(Wed, 24 Aug 11:54) Richard Hipp:
> The link above looks to be correctly formatted.  Do you see a problem
> that I am missing?

"label02" and "label03" are a bit close together..


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] Pie Chart: two items are not very readable

2016-08-24 Thread Svyatoslav Mishyn
(Wed, 24 Aug 10:09) Richard Hipp:
> A fix is now checked in, and installed on the server.

Thanks.


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Pie Chart: two items are not very readable

2016-08-24 Thread Svyatoslav Mishyn
Hello,

on the page /repo-tabsize I got two items that are not very readable
see screenshot (items "event" and "delta"):
https://cloud.openmailbox.org/index.php/s/WYyIi5ZNpfuMpfY


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] /test_env page outputs headers

2016-08-23 Thread Svyatoslav Mishyn
(Tue, 23 Aug 10:09) Richard Hipp:
> This is a deliberate feature.  Perhaps you can suggest a way to
> document it better.

How about to add option "Show HTTP Headers" like "Show Cookies" ?
or just rename "Show Cookies" to something else (when they are available)
("Show Cookies and HTTP Headers" ?, too long maybe).

Because now when HTTP headers available and when I click "Show Cookies"
I do not expect to see headers.


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] /test_env page outputs headers

2016-08-23 Thread Svyatoslav Mishyn
Hi all,

"Environment Test" page outputs HTTP headers,
when "Show Cookies" option is enabled,
and when `fossil ui` or `fossil server` is running.

It's not affected when fossil is run as a CGI program.
see screenshot:
https://cloud.openmailbox.org/index.php/s/rw2phBxRvwUl0np


+ typo & alignment:

Index: src/content.c
==
--- src/content.c
+++ src/content.c
@@ -457,11 +457,11 @@
 
 /*
 ** Make sure the g.rcvid global variable has been initialized.
 **
 ** If the g.zIpAddr variable has not been set when this routine is
-** called, use zSrc as the source of content for the the rcvfrom
+** called, use zSrc as the source of content for the rcvfrom
 ** table entry.
 */
 void content_rcvid_init(const char *zSrc){
   if( g.rcvid==0 ){
 user_select();

Index: src/unversioned.c
==
--- src/unversioned.c
+++ src/unversioned.c
@@ -310,11 +310,11 @@
 verify_all_options();
 if( g.argc!=5 ) usage("export UVFILE OUTPUT");
 if( unversioned_content(g.argv[3], ) ){
   fossil_fatal("no such uv-file: %Q", g.argv[3]);
 }
- blob_write_to_file(, g.argv[4]);
+blob_write_to_file(, g.argv[4]);
 blob_reset();
   }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));


-- 
I am not a native English speaker,
so feel free to correct any spelling or grammatical errors!


signature.asc
Description: PGP signature
___
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] false positive UTF-8 test

2016-07-20 Thread Svyatoslav Mishyn
(Wed, 20 Jul 08:42) Warren Young:
> On Jul 19, 2016, at 1:16 AM, Svyatoslav Mishyn <j...@openmailbox.org> wrote:
> > Also I have .fossil-settings/binary-glob (with *.gpg) in the repository.
> 
> So what problem is the false positive giving you, then?

I just expected if there is a binary-glob file,
fossil won't check an encoding of those files at _all_.


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
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] false positive UTF-8 test

2016-07-19 Thread Svyatoslav Mishyn
(Tue, 19 Jul 01:40) Scott Robison:
> What version of fossil are you using? Some changes have been made fairly
> recently that you may not have.

As always, the latest.

/home/juef: f version -v
This is fossil version 1.35 [3aa86af6aa] 2016-06-14 11:10:39 UTC
Compiled on Jun 14 2016 16:43:41 using gcc-5.4.0 (64-bit)
SQLite 3.13.0 2016-05-18 10:57:30 fc49f556e4
Schema version 2015-01-24
zlib 1.2.8, loaded 1.2.8
SSL (OpenSSL 1.0.2h  3 May 2016)
TH1_DOCS
TH1_HOOKS
JSON (API 20120713)
UNICODE_COMMAND_LINE
DYNAMIC_BUILD


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] false positive UTF-8 test

2016-07-19 Thread Svyatoslav Mishyn
Hello,

I'm using Fossil to store GPG encrypted passwords;

and one file Fossil detects as UTF-8:

/home/juef/tmp: f test-looks-like-utf abc.gpg
File "abc.gpg" has 631 bytes.
Starts with UTF-8 BOM: no
Starts with UTF-16 BOM: no
Looks like UTF-8: yes
Has flag LOOK_NUL: no
Has flag LOOK_CR: yes
Has flag LOOK_LONE_CR: yes
Has flag LOOK_LF: yes
Has flag LOOK_LONE_LF: yes
Has flag LOOK_CRLF: no
Has flag LOOK_LONG: no
Has flag LOOK_INVALID: yes
Has flag LOOK_ODD: no
Has flag LOOK_SHORT: no

If someone want to get that file, I will send it.

Also I have .fossil-settings/binary-glob (with *.gpg) in the repository.


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
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] Fossil :: typos

2016-06-22 Thread Svyatoslav Mishyn
(Tue, 21 Jun 16:04) Richard Hipp:
> How did you find these?  Are you reading through the code line by line?

Yes, but it was unintentionally.
I was just reading the code to understand how Fossil works/implemented.

And my eyes usually spot "these" words.
Not always find them after the first reading, though..

(except for the src/markdown.c,
as almost all those typos were fixed in the upstream version)


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Fossil :: typos

2016-06-21 Thread Svyatoslav Mishyn
Hi, just found a few typos.


-- 
https://www.juef.tk/
Index: src/allrepo.c
==
--- src/allrepo.c
+++ src/allrepo.c
@@ -138,11 +138,11 @@
 **
 ** In addition, the following maintenance operations are supported:
 **
 **add Add all the repositories named to the set of repositories
 **tracked by Fossil.  Normally Fossil is able to keep up with
-**this list by itself, but sometime it can benefit from this
+**this list by itself, but sometimes it can benefit from this
 **hint if you rename repositories.
 **
 **ignore  Arguments are repositories that should be ignored by
 **subsequent clean, extras, list, pull, push, rebuild, and
 **sync operations.  The -c|--ckout option causes the listed

Index: src/bundle.c
==
--- src/bundle.c
+++ src/bundle.c
@@ -26,11 +26,11 @@
 **
 ** The bblob.delta field can be an integer, a text string, or NULL.
 ** If an integer, then the corresponding blobid is the delta basis.
 ** If a text string, then that string is a SHA1 hash for the delta
 ** basis, which is presumably in the master repository.  If NULL, then
-** data contains contain without delta compression.
+** data contain without delta compression.
 */
 static const char zBundleInit[] =
 @ CREATE TABLE IF NOT EXISTS "%w".bconfig(
 @   bcname TEXT,
 @   bcvalue ANY
@@ -370,11 +370,11 @@
" WHERE fnid=(SELECT fnid FROM mlink WHERE fid=%d)"
"   AND fid<%d", rid, mnToBundle);
   }
 }
 
-/* Try to insert the insert the artifact as a delta
+/* Try to insert the artifact as a delta
 */
 if( deltaFrom ){
   Blob basis, delta;
   content_get(deltaFrom, );
   blob_delta_create(, , );

Index: src/clone.c
==
--- src/clone.c
+++ src/clone.c
@@ -224,11 +224,11 @@
 }
 
 /*
 ** If user chooses to use HTTP Authentication over unencrypted HTTP,
 ** remember decision.  Otherwise, if the URL is being changed and no
-** preference has been indicated, err on the safe side and revert the
+** preference has been indicated, error on the safe side and revert the
 ** decision. Set the global preference if the URL is not being changed.
 */
 void remember_or_get_http_auth(
   const char *zHttpAuth,  /* Credentials in the form "user:password" */
   int fRemember,  /* True to remember credentials for later reuse */

Index: src/fusefs.c
==
--- src/fusefs.c
+++ src/fusefs.c
@@ -51,11 +51,11 @@
   /* Parsed path */
   char *az[3];  /* 0=type, 1=id, 2=path */
 } fusefs;
 
 /*
-** Clear the fusefs.sz[] array.
+** Clear the fusefs.az[] array.
 */
 static void fusefs_clear_path(void){
   int i;
   for(i=0; i=size || data[i]!='>' || nb!=1 ) return 0;
   return i+1;
 }
 
 
-/* tag_length -- returns the length of the given tag, or 0 is it's not valid */
+/* tag_length -- returns the length of the given tag, or 0 if it's not valid */
 static size_t tag_length(char *data, size_t size, enum mkd_autolink *autolink){
   size_t i, j;
 
   /* a valid tag can't be shorter than 3 chars */
   if( size<3 ) return 0;
@@ -403,11 +403,11 @@
   }else if( (j = is_mail_autolink(data+i, size-i))!=0 ){
 *autolink = (i==8) ? MKDA_EXPLICIT_EMAIL : MKDA_IMPLICIT_EMAIL;
 return i+j;
   }
 
-  /* looking for sometinhg looking like a tag end */
+  /* looking for something like a tag end */
   while( i=size ) return 0;
   return i+1;
 }
 
@@ -520,11 +520,11 @@
   }
   return 0;
 }
 
 
-/* parse_emph1 -- parsing single emphase */
+/* parse_emph1 -- parsing single emphasis */
 /* closed by a symbol not preceded by whitespace and not followed by symbol */
 static size_t parse_emph1(
   struct Blob *ob,
   struct render *rndr,
   char *data,
@@ -565,11 +565,11 @@
   }
   return 0;
 }
 
 
-/* parse_emph2 -- parsing single emphase */
+/* parse_emph2 -- parsing single emphasis */
 static size_t parse_emph2(
   struct Blob *ob,
   struct render *rndr,
   char *data,
   size_t 

[fossil-users] Could someone add a new TH1 variable 'project_description' ?

2016-06-16 Thread Svyatoslav Mishyn
Hello,

there is 'project_name', but no 'project_description'.

++ 
https://www.fossil-scm.org/index.html/artifact/827386e6fd0ca33d52f7a663c3c45edde4df1e9a?txt=1=156
my ??


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
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] How about to use 'project-description' instead of the file name in repolist ?

2016-06-16 Thread Svyatoslav Mishyn
(Thu, 16 Jun 07:05) Svyatoslav Mishyn:
> Now I use simply index.html and update it manually.

Of course not manually ;)

make-index.sh:
#!/bin/sh

cat index.html.pre > index.html
printf "\n\t\t\n" >> index.html

for f in /home/juef/fossil/*.fossil; do
printf "\t\t\t\n\t\t\t\t%s \n\t\t\t\t\t"  
\
$(basename -s .fossil $f)   
\
$(printf "SELECT value FROM config  
\
   WHERE name='project-name';"  
\
| fossil sql -R $f) >> index.html

printf "SELECT value FROM config
\
 WHERE name='project-description';" 
\
| fossil sql -R $f >> index.html

printf "\t\t\t\n" >> index.html
done

printf "\t\t\n\n" >> index.html
cat index.html.post >> index.html


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
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] How about to use 'project-description' instead of the file name in repolist ?

2016-06-15 Thread Svyatoslav Mishyn
(Tue, 14 Jun 13:28) Svyatoslav Mishyn:
...

Sorry for that mail.
There were bad ideas, suggestions.

I just had a desire to try and write repolist index page that uses project's
description within fossil implementation.

Now I use simply index.html and update it manually.


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] How about to use 'project-description' instead of the file name in repolist ?

2016-06-14 Thread Svyatoslav Mishyn
Hi all,

currently repolist just shows file names.


I have made a few changes to show descriptions:
https://f.juef.tk/p/fossil_5684672ab7-repolist_with_desc.patch
and demo:
https://f.juef.tk/

It uses primitive file-based cache and I didn't use db_()-based functions
(just because don't know them well), I used directly sqlite3_() ones.

But it would be nice, if the repolist could be configurable.


For example (just some random thoughts):
If there is no repolist DB file, then it uses current version.

repolist DB file must be created (and updated) manually:
fossil  --header header.file --footer footer.file
and if there are no repositories, DB isn't created;
if DB file exists, delete it.

if project doesn't have a description, then it uses a project-name;
if no project-name, then a file name without extension.

header and footer files are evaluated by Th_Interp
(as like skin's header, footer)

everything goes into DB


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
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] How about to add "unsetenv:" tag for the CGI script ?

2016-06-12 Thread Svyatoslav Mishyn
(Sat, 11 Jun 16:14) Richard Hipp:
> On 6/11/16, Svyatoslav Mishyn <j...@openmailbox.org> wrote:
> >
> > as `setenv: SCRIPT_NAME ""` does not work.
> >
> 
> I think I might have fixed this with the latest trunk check-in
> (https://www.fossil-scm.org/fossil/info/72df287cf3556a04) - please try
> it out and let us know.

Yes, it works.

Thanks so much!


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
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] How about to add "unsetenv:" tag for the CGI script ?

2016-06-11 Thread Svyatoslav Mishyn
(Sat, 11 Jun 21:23) Svyatoslav Mishyn:
> I would like to get rid of this script, and use unsetenv tag:
> unsetenv: SCRIPT_NAME
> 
> as `setenv: SCRIPT_NAME ""` does not work.

If SCRIPT_NAME does not exist, will fossil work ?

Then something like "setemptyenv:" is better.


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
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] How about to add "unsetenv:" tag for the CGI script ?

2016-06-11 Thread Svyatoslav Mishyn
(Sat, 11 Jun 21:23) Svyatoslav Mishyn:
> and repo is not exist, it would have worked;

s/is/does/


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] How about to add "unsetenv:" tag for the CGI script ?

2016-06-11 Thread Svyatoslav Mishyn
Hi all,

currently I am using virt.pl script based on:
http://fossil.include-once.org/fossil-skins/artifact/85a4ff4a366faf93
because I do not like URLs with repo.cgi ;)

I would like to get rid of this script, and use unsetenv tag:
unsetenv: SCRIPT_NAME

as `setenv: SCRIPT_NAME ""` does not work.


++ "redirect:" tag

I thought, if I have this:
redirect: repo http://example.com/new_homepage

and repo is not exist, it would have worked;
now I do not understand this tag..


-- 
https://www.juef.tk/


signature.asc
Description: PGP signature
___
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] How to render a vertical line in a Markdown code snippet?

2016-05-14 Thread Svyatoslav Mishyn
(Sat, 14 May 13:03) Marko Käning:
> How to render a vertical line in a Markdown code snippet?
> 
> I tried `|`, `\|` and `||` but all to no avail. The bare vertical in text 
> flow even caused fossil’s UI to try to render a table at one point.
> 
> If I do the same in a multiline code block it works:
> `
> |
> `
> but how to get this done w/o trouble in a code snippet??

I think, it is a bug in libsoldout.

/home/juef/dl/discount-2.2.0: cat test
Name | Description
 | ---
a| b
c| d


bla bla `ps aux | grep firefox` zzz..


# discount
/home/juef/dl/discount-2.2.0: ./markdown test



Name 
 Description




a
 b


c
 d





bla bla ps aux | grep firefox zzz..


# libsoldout + discount extensions; however without them it works,
# but of course without a table..
/home/juef/dl/discount-2.2.0: mkd2html -d test


  
Name
Description
  


  
a
b
  
  
c
d
  




  
bla bla `ps aux
grep firefox` zzz..
  



# and finally fossil..
/home/juef/dl/discount-2.2.0: f test-th-eval "markdown {`cat test`}"
{} {



  
Name
Description
  


  
a
b
  
  
c
d
  




  
bla bla `ps aux
grep firefox` zzz..
  



}


-- 
https://www.juef.tk/
___
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] Howto change diff output colorisation

2016-04-24 Thread Svyatoslav Mishyn
(Sun, 24 Apr 18:32) Marko Käning:
> how can one configure the colour scheme of the diff output for a specific
> skin?

You can add into css file
'span.diff*' style attributes, see example:
https://f.juef.tk/fossil-theme-sl/artifact/6601f777f08ef848cc97cc10100f50afac09f1d4?txt=1=215,244

> ...
> Right now it seems to be hard-coded somewhere deep in Fossil, since it is
> identical for all skins.

It is here:
http://www.fossil-scm.org/index.html/artifact/1a7a0b84d1404a6420819498e0697219eb90357d?txt=1=1280,1301


-- 
https://www.juef.tk/
___
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: syntax highlighting for file, diff and code block rendering

2016-04-24 Thread Svyatoslav Mishyn
Hello,

(Sun, 24 Apr 12:03) Marko Käning:
> would be nice if it was possible to get syntax highlighting in the web UI.

see: http://www.fossil-scm.org/index.html/wiki?name=shjs

Personally I didn't try it,
because I use an editor without syntax highlighting.


-- 
https://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] fossil rss -name is not always working

2016-04-05 Thread Svyatoslav Mishyn
Hello,
`fossil rss -name $fname` and web-page '/timeline.rss?name=$fname'
are not always working:

echo zzz > a
echo zzz > b
echo zzz > x/one
echo zzz > y/two

f add a b x/one y/two
f ci -m initial

date >> a
f ci -m a1

date >> b
f ci -m b1

date >> x/one
f ci -m x1

date >> y/two
f ci -m y1

f rss -name a
...
a1 (tags: trunk)
initial (tags: trunk)

f rss -name y/two
...
y1 (tags: trunk)

and for other files the same (with corresponding commit),
only for the file 'a' there is 'initial' commit;
but `f finfo y/two` shows 'initial':
History of y/two
2016-04-05 [7a7f7caef7] y1 (user: juef, artifact: [d423ac80b5], branch: trunk)
2016-04-05 [f61fda26e8] initial (user: juef, artifact: [131521d122], branch: 
trunk)

date >> a
date >> b
f ci -m ab1

f rss -name a
everything fine

f rss -name b
only 'b1' commit'; (again finfo works fine)

date >> y/two
date >> x/one
f ci -m yx1

f rss -name y/two
only 'y1' commit

f rss -name x/one
'yx1', 'x1' commits

date >> y/two
f ci -m y2

f rss -name y/two
'y2', 'y1' commits


-- 
https://www.juef.tk/
___
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] typos

2016-04-02 Thread Svyatoslav Mishyn
(Fri, 01 Apr 17:50) Ross Berteig:
> Even better, Joe has already done that to trunk.

But why that commit [b6b50b12] is marked
as *FORK* in timeline.rss;
and as *BRANCH* in `fossil timeline`;
while here https://www.fossil-scm.org/index.html/info/b6b50b1244796110
looks like usual commit..


-- 
https://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] typos

2016-04-01 Thread Svyatoslav Mishyn
Hello everyone,
just found some typos:


fossil help close
if there are unsaved changed
changed => changes

fossil help all
Mangages => Manages

fossil help cache
it does not already exists
exists => exist

fossil cache status
TBD... => ??

fossil help configuration
to specific a repository => to a specific repository ??

fossil help diff
show the unsaved changed
changed => changes

fossil help fts-config
versious => various

fossil help import
overwrite repository if already exist
exist => exists

fossil help purge
--dry-run Make no chances. => ??

fossil help settings
ssl-ca-location
Check your platform behaviour is as required=> ??
if the exact contents of the CA root is critical
for your application.

fossil help sha1sum
If an file => If a file

fossil help sqlite3
content(X)
contenxt => content
symbolic_name_to_rid(X)
Return a the

fossil help ticket
the VALUE Is appended => the VALUE is appended

fossil help zip
If the --name option is used, it argument
it => its


-- 
https://www.juef.tk/
___
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] not correct status code when used "notfound:" tag in the CGI script

2016-03-09 Thread Svyatoslav Mishyn
(Wed, 09 Mar 07:58) Andy Bradford:
> Thus said Svyatoslav Mishyn on Wed, 09 Mar 2016 12:17:58 +0200:
> 
> > recently I  have moved  all repositories from  chiselapp; and  I found
> > that Fossil send not correct status code:
> 
> It seems to be working according to what the comment here says:
> 
> http://www.fossil-scm.org/index.html/artifact/e75796be5338a81c0ed31879287935f07af90523?txt=1=2028,2032
> 
> Not sure if that is correct behavior or not.

But 302 code means[0] 'it is found' ...


[0]: https://tools.ietf.org/html/rfc2616#section-10.3.3


-- 
https://www.juef.tk/
___
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] not correct status code when used "notfound:" tag in the CGI script

2016-03-09 Thread Svyatoslav Mishyn
Oops..

(Wed, 09 Mar 12:17) Svyatoslav Mishyn:
> and I found that Fossil send not correct status code:

s/send/sends/


-- 
https://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] not correct status code when used "notfound:" tag in the CGI script

2016-03-09 Thread Svyatoslav Mishyn
Hello everybody,

recently I have moved all repositories from chiselapp;
and I found that Fossil send not correct status code:


Without "notfound:" tag it is correct.

/home/juef/fossil/e: cat test.cgi
#!/home/juef/fossil/e/fossil/fossil
directory: /home/juef/fossil/e

/home/juef/fossil/e: PATH_INFO='/fossi' SCRIPT_NAME=test fossil/fossil cgi 
test.cgi
Status: 404 not found
X-Frame-Options: SAMEORIGIN
Cache-control: no-cache
Content-Type: text/html; charset=utf-8
Content-Length: 19

Not Found


/home/juef/fossil/e: cat test.cgi
#!/home/juef/fossil/e/fossil/fossil
directory: /home/juef/fossil/e
notfound: http://localhost/404

/home/juef/fossil/e: PATH_INFO='/fossi' SCRIPT_NAME=test fossil/fossil cgi 
test.cgi
Status: 302 Moved Temporarily
Location: http://localhost/404
X-Frame-Options: SAMEORIGIN
Cache-control: no-cache
Content-Type: text/html; charset=utf-8
Content-Length: 67


Redirect to Location: http://localhost/404




Thanks.


-- 
https://www.juef.tk/
___
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] Repository home page as embedded documentation

2016-01-29 Thread Svyatoslav Mishyn
(Fri, 29 Jan 11:09) Warren Young:
> Many more are listed here:
> 
>   https://www.staticgen.com/

Here is even more:
https://staticsitegenerators.net/


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] revert all files: doesn't work

2015-07-18 Thread Svyatoslav Mishyn
Hello,

from `fossil help revert`
...
Revert all files if no file name is provided.


and here is my test:

/home/juef/tmp/fossil/test: f time
=== 2015-07-18 ===
18:55:39 [b0d58a9f51] *CURRENT* c3 (user: juef tags: trunk)
18:55:16 [b2f66fde1a] c2 (user: juef tags: trunk)
18:54:52 [4deb08b494] c1 (user: juef tags: trunk)
18:54:09 [9c3ed79c65] initial empty check-in (user: juef tags: trunk)
+++ no more data (4) +++

/home/juef/tmp/fossil/test: ls
1  2

/home/juef/tmp/fossil/test: f revert -r b2f66fde1a
the --revision option does not work for the entire tree

/home/juef/tmp/fossil/test: f revert -r b2f66fde1a 1
REVERTED: 1
 fossil undo is available to undo changes to the working checkout.


(Fossil version: 82206af110)


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] /reports | Timeline Events by Day of the Week

2015-06-04 Thread Svyatoslav Mishyn
Hello,

What did I do on 2015-06-02 ?

see:
http://chiselapp.com/user/juef/repository/tclsoldout/reports?view=byweekdaytype=ci
vs.
http://chiselapp.com/user/juef/repository/tclsoldout/timeline?n=50y=civ=0


-- 
http://www.juef.tk/
___
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] Version 1.33

2015-05-28 Thread Svyatoslav Mishyn
(Wed, 27 May 14:03) Warren Young:
 On May 23, 2015, at 1:25 PM, Svyatoslav Mishyn j...@openmailbox.org wrote:
  
  /tmp: wget -S http://localhost:8080/reports
  --2015-05-23 21:42:12--  http://localhost:8080/reports
  Resolving localhost (localhost)... 127.0.0.1
  Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
  HTTP request sent, awaiting response... No data received.
  Retrying.
 
 That works here.

Finally, I found why ;)
It is just  CFLAGS=' -O2'.


(and if it matters: Clang - 3.6.0; GCC - 4.8.4

+ if Clang:
./src/rss.c:99:40: warning: address of 'g.perm.Read' will always evaluate to 
'true' [-Wpointer-bool-conversion]
  assert( !g.perm.RdTkt  g.perm.Read  g.perm.RdWiki );
~~  ~~~^~~~
/usr/include/assert.h:86:5: note: expanded from macro 'assert'
  ((expr)   \
^
1 warning generated.


and of course much more warnings with CFLAGS=' -ansi -pedantic -Wall -Wextra'
)


Should I add `unset CFLAGS` to  Pkgfile?


-- 
http://www.juef.tk/
___
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] Version 1.33

2015-05-23 Thread Svyatoslav Mishyn
(Sat, 23 May 07:47) Richard Hipp:
 Fossil version 1.33 has been tagged.  Binaries are available on the
 download page:  https://www.fossil-scm.org/download.html

link http://localhost:8080/reports; doesn't work;

+ fixes for the sitemap:

Index: src/sitemap.c
==
--- /home/juef/fossil/e/fossil/src/sitemap.c~0  2015-05-23 20:21:52.973711745 
+0300
+++ /home/juef/fossil/e/fossil/src/sitemap.c2015-05-23 20:08:46.743666938 
+0300
@@ -43,18 +43,17 @@
   @
 #endif
   @ ul
-  @ li%z(href(%R/home))Home Page/a
+  @ li%z(href(%R/home))Home Page/a/li
   if( srchFlags  SRCH_DOC ){
 @   ul
-@   li%z(href(%R/docsrch))Search Project Documentation/a/li
+@ li%z(href(%R/docsrch))Search Project Documentation/a/li
 @   /ul
   }
-  @ /li
   if( g.perm.Read ){
 @ li%z(href(%R/tree))File Browser/a/li
-@   ul
+@ ul
 @   li%z(href(%R/tree?type=treeci=trunk))Tree-view,
-@Trunk Check-in/a/li
+@   Trunk Check-in/a/li
 @   li%z(href(%R/tree?type=flat))Flat-view/a/li
 @   li%z(href(%R/fileage?name=trunk))File ages for Trunk/a/li
 @ /ul
@@ -75,7 +74,6 @@
 @   li%z(href(%R/leaves))Leaf Check-ins/a/li
 @   li%z(href(%R/taglist))List of Tags/a/li
 @ /ul
-@ /li
   }
   if( g.perm.RdWiki ){
 @ li%z(href(%R/wikihelp))Wiki/a
@@ -146,9 +144,9 @@
 @   li%z(href(%R/test-rename-list))List of file renames/a/li
   }
   @   li%z(href(%R/hash-color-test))Page to experiment with the automatic
-  @   colors assigned to branch names/a
-  @   li%z(href(%R/test-captcha))Random ASCII-art Captcha image/li
+  @   colors assigned to branch names/a/li
+  @   li%z(href(%R/test-captcha))Random ASCII-art Captcha image/a/li
   @   /ul/li
-  @ /ul/li
+  @ /ul
   style_footer();
 }


-- 
http://www.juef.tk/
___
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] Version 1.33

2015-05-23 Thread Svyatoslav Mishyn
(Sat, 23 May 13:50) Richard Hipp:
 On 5/23/15, Svyatoslav Mishyn j...@openmailbox.org wrote:
  link http://localhost:8080/reports; doesn't work;
 
 For what browser does it not work?

if it matters, Firefox 36.0, but

/tmp: wget -S http://localhost:8080/reports
--2015-05-23 21:42:12--  http://localhost:8080/reports
Resolving localhost (localhost)... 127.0.0.1
Connecting to localhost (localhost)|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... No data received.
Retrying.

 What browser actually requires /li tags on list elements?

Oops, I made redundant changes,

and it's enough to have only this:
+  @   li%z(href(%R/test-captcha))Random ASCII-art Captcha image/a/li

because if links are in footer they might look like [0]


here a new version:

Index: src/sitemap.c
==
--- /home/juef/fossil/e/fossil/src/sitemap.c~0  2015-05-23 21:44:39.347328112 
+0300
+++ /home/juef/fossil/e/fossil/src/sitemap.c2015-05-23 21:35:42.120630829 
+0300
@@ -75,7 +75,6 @@
 @   li%z(href(%R/leaves))Leaf Check-ins/a/li
 @   li%z(href(%R/taglist))List of Tags/a/li
 @ /ul
-@ /li
   }
   if( g.perm.RdWiki ){
 @ li%z(href(%R/wikihelp))Wiki/a
@@ -147,8 +146,8 @@
   }
   @   li%z(href(%R/hash-color-test))Page to experiment with the automatic
   @   colors assigned to branch names/a
-  @   li%z(href(%R/test-captcha))Random ASCII-art Captcha image/li
+  @   li%z(href(%R/test-captcha))Random ASCII-art Captcha image/a/li
   @   /ul/li
-  @ /ul/li
+  @ /ul
   style_footer();
 }


[0]: 
https://cloud.openmailbox.org/public.php?service=filest=2834e816d70dfd5e9ee21f47b72713d6


-- 
http://www.juef.tk/
___
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] html_entities for the commit comment

2015-05-06 Thread Svyatoslav Mishyn
(Tue, 05 May 15:17) Richard Hipp:
 That's configurable.  Go to /Admin/Timeline on the web interface.

There is the option:
  * Plaintext comments on timelines

How about to add more extended options ?
* HTML
* Wiki
* Markdown(?)

as renderer for the commit comment

and if HTML is enabled then,
html_entities - disabled; otherwise - enabled.


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] html_entities for the commit comment

2015-05-05 Thread Svyatoslav Mishyn
Hello,

How about to replace all special characters in the commit (only Web-UI) ?


without it looks like this:
http://chiselapp.com/user/juef/repository/repospage/info/83636ece930


-- 
http://www.juef.tk/
___
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] html_entities for the commit comment

2015-05-05 Thread Svyatoslav Mishyn
(Tue, 05 May 15:17) Richard Hipp:
 On 5/5/15, Svyatoslav Mishyn j...@openmailbox.org wrote:
  Hello,
 
  How about to replace all special characters in the commit (only Web-UI) ?
 
 
  without it looks like this:
  http://chiselapp.com/user/juef/repository/repospage/info/83636ece930
 
 
 That's configurable.  Go to /Admin/Timeline on the web interface.

Thank you


-- 
http://www.juef.tk/
___
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] How to pull back from a git mirror?

2015-04-24 Thread Svyatoslav Mishyn
+
How about to add a dot:

Index: src/export.c
==
--- /home/juef/fossil/e/fossil/src/export.c~0   2015-04-24 14:44:22.013432681
+0300
+++ /home/juef/fossil/e/fossil/src/export.c 2015-04-24 14:13:35.323413908
+0300
@@ -338,12 +338,14 @@
 zTagname += 4;
 zEncoded = mprintf(%s, zTagname);
 for(i=0; zEncoded[i]; i++){
-  if( !fossil_isalnum(zEncoded[i]) ) zEncoded[i] = '_';
+  if( !fossil_isalnum(zEncoded[i])  zEncoded[i] != '.' )
+zEncoded[i] = '_';
 }

0.0.1 looks better than 0_0_1

(Tue, 21 Apr 12:32) Ron W:
 # incremental import
 fossil import --git --inc mirror.fossil secondexport

What am I missing ?
https://cloud.openmailbox.org/public.php?service=filest=a42e1dab28fe9574bca06dca77feb8fd

I made
initial:
git fast-export --all --export-marks=$new  $export
cat $export | fossil import --git $fossilRepo

and then:
mv $new $old
git fast-export --all --import-marks=$old --export-marks=$new  $export
cat $export | fossil import --git --incremental $fossilRepo


-- 
http://www.juef.tk/
___
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] How to pull back from a git mirror?

2015-04-24 Thread Svyatoslav Mishyn
(Fri, 24 Apr 12:30) Ron W:
 On Fri, Apr 24, 2015 at 8:26 AM, Svyatoslav Mishyn j...@openmailbox.org
 wrote:
 
  What am I missing ?
 
  https://cloud.openmailbox.org/public.php?service=filest=a42e1dab28fe9574bca06dca77feb8fd
 
  I made
  initial:
  git fast-export --all --export-marks=$new  $export
  cat $export | fossil import --git $fossilRepo
 
  and then:
  mv $new $old
  git fast-export --all --import-marks=$old --export-marks=$new  $export
  cat $export | fossil import --git --incremental $fossilRepo
 
 
 Have you done a round trip, Fossil = Git = Fossil  ?  Also, probably also
 Git = Fossil = Git as well.

Yes,

Why  did `fossil import --incremental` create every time  a new Leaf ?

 I know only commits are supported in Git, so I don't expect anything more
 than commits to survive the round trip.


-- 
http://www.juef.tk/
___
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] revised new ticket page

2015-04-24 Thread Svyatoslav Mishyn
(Fri, 24 Apr 14:21) Erik Lechak:
 Hey guys,
 
 This is a simple modification to the tktnew page (alpha code).  I'd
 appreciate any feedback.

Hi,

looks nice! ;)


-- 
http://www.juef.tk/
___
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] How to pull back from a git mirror?

2015-04-22 Thread Svyatoslav Mishyn
(Tue, 21 Apr 12:32) Ron W:
 On Tue, Apr 21, 2015 at 5:27 AM, Natacha Porté nata...@instinctive.eu
 wrote:
 
  So a more realistic request would a procedure to backport the git
  commits into fossil, and a new update script to only export stuff beyond
  the synchronization point.
 
  Would the export-marks feature be what I need? I haven't really
  understood what it is and how it works.
 
 
 Fossil's incremental export/import works like:
 
 # initial export
 fossil export --git --export marksfile -R repo.fossil firstexport
 
 # incremental export
 fossil export --git --import marksfile --export newmarks -R repo.fossil
 secondexport
 mv marksfile oldmarks
 mv newmarks marksfile
 
 # initial import
 fossil import --git mirror.fossil firstexport
 
 # incremental import
 fossil import --git --inc mirror.fossil secondexport
 

Hello, 

lightweight (non-annotated) tags vs. annotated tags
How to export tags (from fossil to git) ?

I got this error, and did not get any tags
error: Multiple updates for ref 'refs/tags/release' not allowed.

with quick fix (aka lightweight (non-annotated) tags):

Index: src/export.c
==
--- /home/juef/fossil/e/fossil/src/export.c~0   2015-04-22 22:45:54.366630409
+0300
+++ /home/juef/fossil/e/fossil/src/export.c 2015-04-22 22:36:38.84953
+0300
@@ -340,10 +340,11 @@
 for(i=0; zEncoded[i]; i++){
   if( !fossil_isalnum(zEncoded[i]) ) zEncoded[i] = '_';
 }
-printf(tag %s\n, zEncoded);
+/*  printf(tag %s\n, zEncoded); */
+printf(reset refs/tags/%s\n, zEncoded);
 printf(from :%d\n, COMMITMARK(rid));
-printf(tagger tagger %s +\n, zSecSince1970);
-printf(data 0\n);
+/*  printf(tagger tagger %s +\n, zSecSince1970);
+printf(data 0\n); */
 fossil_free(zEncoded);
   }
   db_finalize(q);

everything works as expected.


Also how to export fossil repository to git ?

$ fossil export --git ../fossil.fossil   | git fast-import

fatal: Unsupported command: def.txt
fast-import: dumping crash report to .git/fast_import_crash_28224


and now i'm working on the wrapper: fossil=git=fossil
Thanks for the inspiration ;)


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] How about cgit-like view for the Flat-View?

2015-03-28 Thread Svyatoslav Mishyn
Hello,

currently, it is like just `ls`
it would be great if it was like
`ls -l --human-readable --group-directories-first`
via some magic :))


https://cloud.openmailbox.org/public.php?service=filest=a831ee627195547f30c3bf2bdb406902
vs.
https://cloud.openmailbox.org/public.php?service=filest=204fb1456f0b95dcfb0ea343aff81e75
or
https://cloud.openmailbox.org/public.php?service=filest=a2cabf5e2317e097e35c93c56c6d5a47


-- 
http://www.juef.tk/

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] many duplicate links @ www/permutedindex.html

2015-03-20 Thread Svyatoslav Mishyn
Hello,

$ sed -ne 's/.*\\(.*\.wiki\).*/\1/p' www/permutedindex.html | sort | wc -l
163

$ sed -ne 's/.*\\(.*\.wiki\).*/\1/p' www/permutedindex.html | sort -u | wc -l
49

$ sed -ne 's/.*\\(.*\.md\).*/\1/p' www/permutedindex.html | sort  | wc -l
9

$ sed -ne 's/.*\\(.*\.md\).*/\1/p' www/permutedindex.html | sort -u | wc -l
2


-- 
http://www.juef.tk/
___
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] need additional padding for the .filelist li

2015-03-09 Thread Svyatoslav Mishyn
(Mon, 09 Mar 06:15) Richard Hipp:
 On 3/8/15, Svyatoslav Mishyn j...@openmailbox.org wrote:
  Hello,
 
  for example:
  padding: 1px 0;
 
  see:
  https://cloud.openmailbox.org/public.php?service=filest=27ee378f8bdc47ebcd06069d907916fc
 
 What is that hyperlink suppose to demonstrate?  I do not understand
 why extra padding is needed.

'g' (from src/graph.c) and
'i' (from src/import.c) are crossing

 
 
 
  --
  http://www.juef.tk/
  ___
  fossil-users mailing list
  fossil-users@lists.fossil-scm.org
  http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
 
 
 
 -- 
 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

-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] need additional padding for the .filelist li

2015-03-08 Thread Svyatoslav Mishyn
Hello,

for example:
padding: 1px 0;

see:
https://cloud.openmailbox.org/public.php?service=filest=27ee378f8bdc47ebcd06069d907916fc


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Mouse-over effects for the file-age table, except the thead

2015-02-24 Thread Svyatoslav Mishyn
Hello,


Index: src/browse.c
==
--- /home/juef/fossil/e/fossil/src/browse.c~0   2015-02-24 16:31:46.677114589 
+0200
+++ /home/juef/fossil/e/fossil/src/browse.c 2015-02-24 16:21:11.700411735 
+0200
@@ -1035,7 +1035,7 @@
   @ %z(href(%R/timeline?c=%t,zNow))%s(zNow)/a./p
   @
   @ div class='fileage'table
-  @ trthTime/ththFiles/ththCheckin/th/tr
+  @ theadtrthTime/ththFiles/ththCheckin/th/tr/theadtbody
   db_prepare(q1,
 SELECT event.mtime, event.objid, blob.uuid,\n
coalesce(event.ecomment,event.comment),\n
@@ -1091,7 +1091,7 @@
 @
 fossil_free(zAge);
   }
-  @ /table/div
+  @ /tbody/table/div
   db_finalize(q1);
   db_finalize(q2);
   style_footer();
Index: src/style.c
==
--- /home/juef/fossil/e/fossil/src/style.c~02015-02-24 16:31:46.827114598 
+0200
+++ /home/juef/fossil/e/fossil/src/style.c  2015-02-24 16:07:38.153698705 
+0200
@@ -1244,7 +1244,7 @@
 The fileage table,
 @ border-spacing: 0;
   },
-  { .fileage tr:hover,
+  { .fileage tbody tr:hover,
 Mouse-over effects for the file-age table,
 @ background-color: #eee;
   },


BTW, the manual page is not installing by the command ```make install```


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Duplicate headers | markdown (| only-Wiki?)

2015-02-22 Thread Svyatoslav Mishyn
Hello,

See,
http://www.fossil-scm.org/index.html/artifact/020e48a0879e9763a48ba559697b69460fac50e2
there is ## Status:

but here:
http://www.fossil-scm.org/index.html/wiki?name=Fossil+2.0

h1Status:/h1
div class=markdown

h2Status:/h2


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] The /tree n /dir page

2015-02-22 Thread Svyatoslav Mishyn
Hello,

Will be dropped the /tree page.?)
because:
http://www.fossil-scm.org/index.html/tree?ci=tip


the /dir page
missing parameter: type
http://www.fossil-scm.org/index.html/help?cmd=/dir


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] dot | info.c

2015-02-08 Thread Svyatoslav Mishyn
Hello,

just a dot :)


Index: src/info.c
==
--- /home/juef/fossil/e/fossil/src/info.c~0 2015-02-08 19:53:47.770006991 
+0200
+++ /home/juef/fossil/e/fossil/src/info.c   2015-02-08 19:46:36.750002609 
+0200
@@ -383,7 +383,7 @@
   if( fossil_strcmp(zOld, zNew)!=0 ){
 @ pModified %z(href(%R/finfo?name=%T,zName))%h(zName)/a
 @ from %z(href(%R/artifact/%s,zOld))[%S(zOld)]/a
-@ to %z(href(%R/artifact/%s,zNew))[%S(zNew)]./a
+@ to %z(href(%R/artifact/%s,zNew))[%S(zNew)]/a.
   }else if( zOldName!=0  fossil_strcmp(zName,zOldName)!=0 ){
 @ pName change
 @ from %z(href(%R/finfo?name=%T,zOldName))%h(zOldName)/a


-- 
http://www.juef.tk/

___
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] Please contribute skins

2015-01-26 Thread Svyatoslav Mishyn
(Wed, 21 Jan 21:14) Richard Hipp:
 If you have suggestions on how to improve the existing skins, please
 send in diffs, either to this list or to one of the developers (like
 me).
 

https://cloud.openmailbox.org/public.php?service=filest=66be8aedb2c79d8814615dc8219efec4
is it only for me?

if not,
how about to add something like (not perfect) to footer:

script type=text/javascript

  if (document.querySelector('.sbsdiffcols') !== null 
   || document.querySelector('.report') !== null) {

document.write('style type=text/cssdiv.header, div.mainmenu, 
div.submenu, div.content, div.footer {max-width: 100em}/style');

  }

/script

or just use sl theme:)


-- 
http://www.juef.tk/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] custom 404 error page; the /doc web page

2015-01-22 Thread Svyatoslav Mishyn
Hi,

a) Could you add please, to the doc.c - doc_page - doc_not_found:
cgi_set_status(404,Not Found);


b) It would be nice to have a custom 404 error page for all cases.
with ability to edit in WebUI (like footer, header, css)
..or to make similar to github (404.html)
https://help.github.com/articles/custom-404-pages/

http://localhost:8080/doc/tip/tes
http://localhost:8080/tesss


c) index page for the /doc/tip/
http://localhost:8080/doc - index.wiki
http://localhost:8080/doc/ - No such document: index.html
http://localhost:8080/doc/tip - No such document: index.html
http://localhost:8080/doc/tip/ - No such document: 

Is it possible to make one index page (index.wiki?) for all those pages?


Thanks ;)


-- 
http://www.juef.tk/

___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


  1   2   >