Re: [fossil-users] Errors trying to compile

2016-10-13 Thread Jan Nijtmans
Op 13 okt. 2016 03:28 schreef "Joe Mistachkin":
> Using that makefile with Cygwin is untested, unlikely to work, and
unsupported.

Yes, it works and is supporter (by me). You need the mingw-w64
cross-compiler package for Cygwin (either the 32-bit or 64-bit one). See
the comments at the top of the Makefile how to do that.

Regards,
  Jan Nijtmans
___
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

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-13 Thread Nickolas Lloyd
Svyatoslav Mishyn writes:
>> 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..?
Correct.  The local fossil repository is kept within the .git subdir of
the git clone.  The script just manages the details when I want to sync
up with the remote.
Typical usage would be as follows:
repo.git $ git fossil pull # pull in changes from the remote
repo.git $ # hack hack hack...
repo.git $ git commit -a -m "Changed some stuff"
repo.git $ git fossil push trunk

I have this set up to be a separate step rather than having `git fossil
commit' do the `git commit' for me so that I can e.g. keep private
branches, rebase, delete, etc, before merging my work into trunk and
pushing _that_.

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.

-Nick
___
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&ln=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] outdated www/webui.wiki file

2016-10-13 Thread jungle Boogie
On 13 October 2016 at 07:26, Svyatoslav Mishyn  wrote:
> 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&ln=30,31
>
>

You can send a patch and have someone with commit access update it.
What's running the download page now? I vaguely recall something about
unversioned files running it, is that correct?


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


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