Re: [fossil-users] false positive UTF-8 test

2016-07-20 Thread Stephan Beal
On Tue, Jul 19, 2016 at 9:16 AM, Svyatoslav Mishyn 
wrote:

> 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
> ...
> If someone want to get that file, I will send it.
>
> Also I have .fossil-settings/binary-glob (with *.gpg) in the repository.
>

Note that test-looks-like-utf will not honor the binary-glob setting - it
examines the file you give it as-is, with no inspection of any
ignore-lists. Also, be sure that in your binary-glob, you have one entry
per line, not multiple entries on one line (each line is a separate
wildcard).

-- 
- stephan beal
http://wanderinghorse.net/home/stephan/
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
___
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 v1.35[3aa86af6aa] - Is this multi-line timeline a bug?

2016-07-20 Thread sky5walk
Yahoo!
Fossil v1.36[2dec4bdfcb] fixed the problem!
Compiled with VS2013 Express.
Wow, that was weird and confusing. So glad to have unified timeline back.

Thanks for Fossil!

On Wed, Jul 20, 2016 at 10:37 PM,  wrote:

> Curious, I was not familiar with /bloblist URL?
> I found it in the sitemap as 'List Of Artifacts'.
>
> But it does show all 4414 entries with valid events:
> ticket/wiki/filename/commit.
>
> On Wed, Jul 20, 2016 at 10:11 PM, Richard Hipp  wrote:
>
>> On 7/20/16, sky5w...@gmail.com  wrote:
>> > I'll try compiling latest code.
>>
>> Always good to do, even if you are not having problems.  But my guess
>> is that it will make no difference
>>
>> What does the /bloblist URL show you.  Do you have many artifacts.  Do
>> any of them show up as "???"
>>
>> --
>> D. Richard Hipp
>> d...@sqlite.org
>> ___
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Fossil v1.35[3aa86af6aa] - Is this multi-line timeline a bug?

2016-07-20 Thread sky5walk
Curious, I was not familiar with /bloblist URL?
I found it in the sitemap as 'List Of Artifacts'.

But it does show all 4414 entries with valid events:
ticket/wiki/filename/commit.

On Wed, Jul 20, 2016 at 10:11 PM, Richard Hipp  wrote:

> On 7/20/16, sky5w...@gmail.com  wrote:
> > I'll try compiling latest code.
>
> Always good to do, even if you are not having problems.  But my guess
> is that it will make no difference
>
> What does the /bloblist URL show you.  Do you have many artifacts.  Do
> any of them show up as "???"
>
> --
> D. Richard Hipp
> d...@sqlite.org
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Fossil v1.35[3aa86af6aa] - Is this multi-line timeline a bug?

2016-07-20 Thread Richard Hipp
On 7/20/16, sky5w...@gmail.com  wrote:
> I'll try compiling latest code.

Always good to do, even if you are not having problems.  But my guess
is that it will make no difference

What does the /bloblist URL show you.  Do you have many artifacts.  Do
any of them show up as "???"

-- 
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


Re: [fossil-users] Fossil v1.35[3aa86af6aa] - Is this multi-line timeline a bug?

2016-07-20 Thread sky5walk
Unfortunately, same results:
c:\myrepo>fossil rebuild myrepo.fossil
  100.0% complete...

c:\myrepo>fossil test-integrity myrepo.fossil
4414 non-phantom blobs (out of 4414 total) checked:  0 errors
low-level database integrity-check: ok

I'll try compiling latest code.

On Wed, Jul 20, 2016 at 9:41 PM, Richard Hipp  wrote:

> Maybe also run "fossil rebuild".  And/or "fossil test-integrity".
> Please report any findings.
>
> On 7/20/16, sky5w...@gmail.com  wrote:
> > ​Thanks for checking. I am confident we have the tip after merging from
> > multiple user commits. But, it is certainly confusing to confirm this
> > visually.
> >
> > http://www.fossil-scm.org/index.html/info/a78e51185326b91f
> > Edited Comment: Partially revert [f73411025e8ebec7]
> > . This
> fixes a
> > problem that when closing a fork by just doing "fossil merge" and
> additonal
> > arrow going up is displayed. Probably not the right fix. Remark:
> reverting
> > more than necessary. Already fixed on trunk.
> >
> > http://www.fossil-scm.org/index.html/info/4cae5c94ea2241b3
> > Comment: (cherry-pick) Fix a timeline bug, showing an unintended arrow
> when
> > closing a fork.
> >
> > Do these commits imply similar errors and fixed on trunk?
> >
> > I will try compiling the latest fossil code and do a rebuild and report
> > back...
> >
> >
> > Thanks for Fossil!
> >
> > On Wed, Jul 20, 2016 at 8:48 PM, Richard Hipp  wrote:
> >
> >> It is difficult to say if this is a bug or a weird repo.  I'd need
> >> access to the repo to tell.
> >>
> >> On 7/20/16, sky5w...@gmail.com  wrote:
> >> > I've noticed weird multi-line timelines with v1.35.
> >> > Is this a bug or is it the skin run amok?
> >> > This repo has only trunk and 1 very old branch.
> >> >
> >> >
> >>
> https://www.reddit.com/r/fossil/comments/4tti7k/fossil_v1353aa86af6aa_is_this_multiline_timeline/
> >> >
> >> > Thanks for Fossil!
> >> >
> >>
> >>
> >> --
> >> 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
> >>
> >
>
>
> --
> D. Richard Hipp
> d...@sqlite.org
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Fossil v1.35[3aa86af6aa] - Is this multi-line timeline a bug?

2016-07-20 Thread Richard Hipp
Maybe also run "fossil rebuild".  And/or "fossil test-integrity".
Please report any findings.

On 7/20/16, sky5w...@gmail.com  wrote:
> ​Thanks for checking. I am confident we have the tip after merging from
> multiple user commits. But, it is certainly confusing to confirm this
> visually.
>
> http://www.fossil-scm.org/index.html/info/a78e51185326b91f
> Edited Comment: Partially revert [f73411025e8ebec7]
> . This fixes a
> problem that when closing a fork by just doing "fossil merge" and additonal
> arrow going up is displayed. Probably not the right fix. Remark: reverting
> more than necessary. Already fixed on trunk.
>
> http://www.fossil-scm.org/index.html/info/4cae5c94ea2241b3
> Comment: (cherry-pick) Fix a timeline bug, showing an unintended arrow when
> closing a fork.
>
> Do these commits imply similar errors and fixed on trunk?
>
> I will try compiling the latest fossil code and do a rebuild and report
> back...
>
>
> Thanks for Fossil!
>
> On Wed, Jul 20, 2016 at 8:48 PM, Richard Hipp  wrote:
>
>> It is difficult to say if this is a bug or a weird repo.  I'd need
>> access to the repo to tell.
>>
>> On 7/20/16, sky5w...@gmail.com  wrote:
>> > I've noticed weird multi-line timelines with v1.35.
>> > Is this a bug or is it the skin run amok?
>> > This repo has only trunk and 1 very old branch.
>> >
>> >
>> https://www.reddit.com/r/fossil/comments/4tti7k/fossil_v1353aa86af6aa_is_this_multiline_timeline/
>> >
>> > Thanks for Fossil!
>> >
>>
>>
>> --
>> 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
>>
>


-- 
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


Re: [fossil-users] Fossil v1.35[3aa86af6aa] - Is this multi-line timeline a bug?

2016-07-20 Thread sky5walk
​Thanks for checking. I am confident we have the tip after merging from
multiple user commits. But, it is certainly confusing to confirm this
visually.

http://www.fossil-scm.org/index.html/info/a78e51185326b91f
Edited Comment: Partially revert [f73411025e8ebec7]
. This fixes a
problem that when closing a fork by just doing "fossil merge" and additonal
arrow going up is displayed. Probably not the right fix. Remark: reverting
more than necessary. Already fixed on trunk.

http://www.fossil-scm.org/index.html/info/4cae5c94ea2241b3
Comment: (cherry-pick) Fix a timeline bug, showing an unintended arrow when
closing a fork.

Do these commits imply similar errors and fixed on trunk?

I will try compiling the latest fossil code and do a rebuild and report
back...


Thanks for Fossil!

On Wed, Jul 20, 2016 at 8:48 PM, Richard Hipp  wrote:

> It is difficult to say if this is a bug or a weird repo.  I'd need
> access to the repo to tell.
>
> On 7/20/16, sky5w...@gmail.com  wrote:
> > I've noticed weird multi-line timelines with v1.35.
> > Is this a bug or is it the skin run amok?
> > This repo has only trunk and 1 very old branch.
> >
> >
> https://www.reddit.com/r/fossil/comments/4tti7k/fossil_v1353aa86af6aa_is_this_multiline_timeline/
> >
> > Thanks for Fossil!
> >
>
>
> --
> D. Richard Hipp
> d...@sqlite.org
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Fossil v1.35[3aa86af6aa] - Is this multi-line timeline a bug?

2016-07-20 Thread Richard Hipp
It is difficult to say if this is a bug or a weird repo.  I'd need
access to the repo to tell.

On 7/20/16, sky5w...@gmail.com  wrote:
> I've noticed weird multi-line timelines with v1.35.
> Is this a bug or is it the skin run amok?
> This repo has only trunk and 1 very old branch.
>
> https://www.reddit.com/r/fossil/comments/4tti7k/fossil_v1353aa86af6aa_is_this_multiline_timeline/
>
> Thanks for Fossil!
>


-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Fossil v1.35[3aa86af6aa] - Is this multi-line timeline a bug?

2016-07-20 Thread sky5walk
I've noticed weird multi-line timelines with v1.35.
Is this a bug or is it the skin run amok?
This repo has only trunk and 1 very old branch.

https://www.reddit.com/r/fossil/comments/4tti7k/fossil_v1353aa86af6aa_is_this_multiline_timeline/

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


[fossil-users] Summertime ...

2016-07-20 Thread Rolf Ade

... and it doesn't happen much, at the sqlite timeline as well as the
fossil timeline. Enjoy the couples of days off!

As it's unusual hot here and that would be some kind of excuse to just
tinker around I tried to come up with an orderd list of the longest time
spans without any commit in a repository.

It may be the heat or my SQL is to limited or my limited understanding
of the fossil database inner yard or all together but the closest I was
able to find within a half hour is:

select datetime(b.mtime), datetime(a.mtime), a.mtime - b.mtime
from event as a, event as b
where a.mtime > b.mtime
and a.type = 'ci'
and b.type = 'ci'
-- limit to past years, if you wish
-- and cast (strftime('%Y', a.mtime) as integer) > 2012
and not exists (select 1 from event
where event.mtime < a.mtime
and event.mtime > b.mtime)
union
select datetime(c.mtime), datetime('now'), julianday('now') - c.mtime
from event as c
where c.type = 'ci'
and not exists (select 1 from event where mtime > c.mtime)
order by 3 desc
limit 100;

Although, that is painful slow. Is there a better way?

While trying this I missed some explanation of the database schema -
what is stored in which tables, what are the relations between the
tables - or my search fu missed me. Is there something like this?

It's not so hard, to find its way by just looking at the thing and the
source code. But then there is obviously fine print. Say: The fossil
repository as of 2dec4bdf has 9587 rows with type 'ci' in the event
table, but the UI says and shows only 9553 check-ins. So some of the
'ci' type rows of event doesn't document a check-in, but something else.
Maybe something related to shuning - but looking at that table doesn't
show a clear match, so ...


___
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] diff of wiki-page

2016-07-20 Thread jungle Boogie
On 20 July 2016 at 11:50, Andy Bradford  wrote:
> Thus said Warren Young on Fri, 15 Jul 2016 12:16:53 -0600:
>
>>   https://www.fossil-scm.org/xfer/doc/trunk/www/embeddeddoc.wiki
>>
>> In order  to view  such content  in the wiki,  the viewing  user needs
>> checkout  rights on  the  whole  repository. If  you  can't give  your
>> viewer-only users that ability, you can't use embedded doc links.
>
> I once wrote a patch that  would allow read-only access to certain pages
> that did not require the ability to clone/checkout:
>
> http://marc.info/?l=fossil-users=144565838441517=2
>
> Does this sound at all relevant?
>
> Here's the full thread:
>
> http://marc.info/?t=144565838700013=1=2
>

Wow, that sounds very interesting! Hopefully this can be revived and
it's implemented.

> Thanks,
>
> Andy
> --
> TAI64 timestamp: 4000578fc827
>
>




-- 
---
inum: 883510009027723
sip: jungleboo...@sip2sip.info
___
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] diff of wiki-page

2016-07-20 Thread Andy Bradford
Thus said Warren Young on Fri, 15 Jul 2016 12:16:53 -0600:

>   https://www.fossil-scm.org/xfer/doc/trunk/www/embeddeddoc.wiki
> 
> In order  to view  such content  in the wiki,  the viewing  user needs
> checkout  rights on  the  whole  repository. If  you  can't give  your
> viewer-only users that ability, you can't use embedded doc links.

I once wrote a patch that  would allow read-only access to certain pages
that did not require the ability to clone/checkout:

http://marc.info/?l=fossil-users=144565838441517=2

Does this sound at all relevant?

Here's the full thread:

http://marc.info/?t=144565838700013=1=2

Thanks,

Andy
-- 
TAI64 timestamp: 4000578fc827


___
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  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] diff of wiki-page

2016-07-20 Thread Warren Young
On Jul 17, 2016, at 11:29 AM, Richard Hipp  wrote:
> 
> On 7/15/16, Warren Young  wrote:
>> 
>> In order to view [embedded documentation] content in the wiki, the viewing 
>> user
>> needs checkout rights on the whole repository.
> 
> In general, this is true.  But there is one obscure exception.
> 
> On the Setup/Access page there is a "Public Pages” setting

As it happens, I know about the restriction because we have a use case here 
where the ability to see the occasional embedded doc reference via the wiki 
would be useful.  We have a user that currently has cnouw perms, with the ‘o’ 
purely so they can see such wiki references.

To test this feature, I created a new user with cnuw perms and set the Public 
Pages pref to “*.svg, *.md”, then restarted “fossil server” and tried viewing 
the wiki pages that refer to these SVG and Markdown files.  No joy.

The URLs look like this:

  /reponame/doc/trunk/doc/path/to/image.svg
  /reponame/doc/trunk/path/to/document.md

If the wiki page references the target inline, as with the SVGs, you get the 
alt-text inline instead of the image.  If the link is supposed to show you the 
other file as a separate page, as with the Markdown links, the Fossil server 
sends you to the Login/Logout page when you click the link, telling you the 
user doesn’t have sufficient privilege to access the URL.

I then tried using absolute glob patterns, with * in place of the branch and 
other variable parts of the path, also with no luck.

Then I started swinging the heavy hammer, setting the Public Pages pref to a 
single absolute glob pattern, each more specific than the last:

  /reponame/doc/trunk/doc/*
  /reponame/doc/trunk/doc/path/to/*.svg
  /reponame/exact/path/to/specific/file.svg

Still no luck.

I also tried dropping the /reponame prefix, also with no useful effect.

This is with “fossil server” pointing to a directory full of fossils, so the 
/reponame part is required, at least in the wiki source.  (We use Markdown wiki 
syntax here.)

The last path above was actually copy-pasted from the Login/Logout page into 
the Public Pages box, to see if I could grant access to just that one image.

Did this feature get broken somewhere along the line?

> 'A comma-separated list of glob patterns for pages that are accessible
> without needing a login and using the privileges given by the "Default
> privileges" setting below.

My “Default privileges” is set to ‘u’.
___
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 Warren Young
On Jul 19, 2016, at 1:16 AM, Svyatoslav Mishyn  wrote:
> 
> I'm using Fossil to store GPG encrypted passwords;

By that I assume it’s a pure binary file with all byte values having equal 
probability of appearing?

If so, it’s possible you’re just getting “lucky.”  Since every possible byte 
stream out of GPG is possible, valid UTF-8 byte strings are ipso facto possible.

That’s the problem with using heuristics.

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

So what problem is the false positive giving you, then?
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users