Re: [fossil-users] Bug Candidate: wall Clock as a show Stopper at Cloning

2017-01-24 Thread Richard Hipp
On 1/24/17, Martin Vahi  wrote:
>
>
> I believe that this is a flaw/bug, because
> it is obvious that clocks of different computers
> can differ for various reasons. A value of a clock
> should not be a stopper at cloning a repository.
> If the difference between the clocks of 2 computers
> is also known, then one time is even convertible
> to another time and vice versa.
>
> -citation---start---
> *** time skew *** server is slow by 2.0 minutes
> Clone done, sent: 1262  received: 1121  ip: 195.250.189.35
> server returned an error - clone aborted

The differences in the clocks on the two systems is just a warning.
The clone aborted because of some other error on the server.  The bug
is that the client is not giving better error diagnostics...

Is this reproducible?


> -citation---end---
>
>
> This is fossil version 1.35 [3aa86af6aa]
>
> Thank You :-)
>
> ___
> 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] Feature Request: Search Technotes

2017-01-24 Thread Richard Hipp
On 1/24/17, Chris Rydalch  wrote:
>
> I started by trying to combine them, mainly because I'm not a very good
> programmer (most of my experience is with Python), and I was thinking this
> would be the easiest way.
>

I agree that combining tech-notes with wiki seems like the best approach.

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


Re: [fossil-users] Feature Request: Search Technotes

2017-01-24 Thread Chris Rydalch
Thanks, good to know they're getting through.

No (successful) patches yet, haven't been able to get it to work. I've
tried getting technotes to show up alongside wiki results:

*db_multi_exec(*
*  "WITH event(name,rid,mtime) AS ("*
*  "  SELECT substr(tagname,6), tagxref.rid, max(tagxref.mtime)"*
*  "FROM tag, tagxref"*
*  "   WHERE tag.tagname GLOB 'event-*'"*
*  " AND tagxref.tagid=tag.tagid"*
*  "   GROUP BY 1"*
*  ")"*
*  "INSERT INTO x(label,url,score,id,date,snip)"*
*  "  SELECT printf('Tech-note: %%s',name),"*
*  " printf('/technote/%%s',urlencode(name)),"*
*  " search_score(),"*
*  " 'w'||rid,"*
*  " datetime(mtime),"*
*  " search_snippet()"*
*  "FROM event"*
*  "   WHERE search_match(title('w',rid,name),body('w',rid,name));"*
*);*

But clearly I'm missing something. Does it make sense to just include
Technotes alongside Wiki results? Or should they be their own category?

I started by trying to combine them, mainly because I'm not a very good
programmer (most of my experience is with Python), and I was thinking this
would be the easiest way.

Thanks

On Tue, Jan 24, 2017 at 8:39 PM, Richard Hipp  wrote:

> On 1/24/17, Chris Rydalch  wrote:
> > Is this a complicated issue? Haven't had any luck in this thread, or
> > another technote-related email I sent to the group.
> >
> > I'm not sure if the lack of responses is because the emails aren't
> actually
> > making it to the group, I was having issues with fossil-users list a
> while
> > back. Either way, it'd be good to know if the email is at least making it
> > to the list. Thanks! :)
> >
>
> Your emails are getting through.  But I've been busy with other
> things.  Do you have patches?
> --
> D. Richard Hipp
> d...@sqlite.org
> ___
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
--- search_orig.c	2017-01-24 20:44:48.211517209 -0500
+++ search.c	2017-01-24 20:58:36.911540140 -0500
@@ -739,6 +739,24 @@
   "FROM wiki"
   "   WHERE search_match(title('w',rid,name),body('w',rid,name));"
 );
+db_multi_exec(
+  "WITH event(name,rid,mtime) AS ("
+  "  SELECT substr(tagname,6), tagxref.rid, max(tagxref.mtime)"
+  "FROM tag, tagxref"
+  "   WHERE tag.tagname GLOB 'event-*'"
+  " AND tagxref.tagid=tag.tagid"
+  "   GROUP BY 1"
+  ")"
+  "INSERT INTO x(label,url,score,id,date,snip)"
+  "  SELECT printf('Tech-note: %%s',name),"
+  " printf('/technote/%%s',urlencode(name)),"
+  " search_score(),"
+  " 'w'||rid,"
+  " datetime(mtime),"
+  " search_snippet()"
+  "FROM event"
+  "   WHERE search_match(title('w',rid,name),body('w',rid,name));"
+);
   }
   if( (srchFlags & SRCH_CKIN)!=0 ){
 db_multi_exec(
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Bug Candidate: wall Clock as a show Stopper at Cloning

2017-01-24 Thread Martin Vahi


I believe that this is a flaw/bug, because
it is obvious that clocks of different computers
can differ for various reasons. A value of a clock
should not be a stopper at cloning a repository.
If the difference between the clocks of 2 computers
is also known, then one time is even convertible
to another time and vice versa.

-citation---start---
*** time skew *** server is slow by 2.0 minutes
Clone done, sent: 1262  received: 1121  ip: 195.250.189.35
server returned an error - clone aborted
-citation---end---


This is fossil version 1.35 [3aa86af6aa]

Thank You :-)

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


Re: [fossil-users] Feature Request: Search Technotes

2017-01-24 Thread Richard Hipp
On 1/24/17, Chris Rydalch  wrote:
> Is this a complicated issue? Haven't had any luck in this thread, or
> another technote-related email I sent to the group.
>
> I'm not sure if the lack of responses is because the emails aren't actually
> making it to the group, I was having issues with fossil-users list a while
> back. Either way, it'd be good to know if the email is at least making it
> to the list. Thanks! :)
>

Your emails are getting through.  But I've been busy with other
things.  Do you have patches?
-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Feature Request: Search Technotes

2017-01-24 Thread Chris Rydalch
Is this a complicated issue? Haven't had any luck in this thread, or
another technote-related email I sent to the group.

I'm not sure if the lack of responses is because the emails aren't actually
making it to the group, I was having issues with fossil-users list a while
back. Either way, it'd be good to know if the email is at least making it
to the list. Thanks! :)

On Wed, Jan 18, 2017 at 10:58 PM, Chris Rydalch  wrote:

> I really like the concept of technotes, but it'd be super useful if
> technotes could be included in search results. I find technotes are
> convenient for adding information and reminders, sort of a work-journal,
> but I really miss not having that information show up in search results.
>
> Could they be added to search? Perhaps there was/is a technical reason
> technotes aren't currently included, in which case sorry for the bother!
>
> Thanks!
>
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users