Re: [fossil-users] Fossil process hanging on sync to remote server?

2014-05-11 Thread Rene

On 2014-05-10 17:46, Andy Bradford wrote:

Thus said Gerald Gutierrez on Sat, 10 May 2014 01:53:56 -0700:


frame #8: 0x000105719ba2 fossil`ssl_receive(NotUsed=unavailable,
pContent=unavailable, N=unavailable) + 50 at http_ssl.c:399
   396   size_t got;
   397   size_t total = 0;
   398   while( N0 ){
- 399 got = BIO_read(iBio, pContent, N);
   400 if( got=0 ) break;
   401 total += got;
   402 N -= got;




I'm not sure if it is the course of the problem but got = unsigned,
So when bio_read returns -1 got is a big number because by definition it 
cannot go below 0;

on my machine if i declare
 int l=-1;
size_t r = l;
printf(l = %d r = l = %zu\n,l,r);
l = -1  r =l = 18446744073709551615

N cannot go below 0 also  subtracting got in this case will only yield 0 
by coincidence.


the 3rd argument to bio_read is listed as an int on my machine int is 4 
bytes and size_t is 8 bytes
depending on input this can go wrong with sufficient values not fitting 
in a int .

e.g.

this fits in an int,  0x1000
this does not fits in an int, 0x1 e.g the int will be 0

changing ssl_receive to
 /*
 ** Receive content back from the SSL connection.
 */
 size_t ssl_receive(void *NotUsed, void *pContent, size_t N){
   ssize_t got;
   size_t total = 0;
   while( N0 ){
 got = BIO_read(iBio, pContent, N = INT_MAX ? N : INT_MAX);
 if( got=0 ) break;
 total += got;
 N -= got;
 pContent = (void*)((char*)pContent)[got];
   }
   return total;
 }

will yield better results (I hope) because I cannot test it I attached a 
unified patch.
I patched http_socket.c and http_ssl.c against the latest of the trunk. 
I wonder if it solves your problem?


--
Rene--- http_socket.c
+++ http_socket.c
@@ -182,14 +182,14 @@
 
 /*
 ** Send content out over the open socket connection.
 */
 size_t socket_send(void *NotUsed, void *pContent, size_t N){
-  size_t sent;
+  ssize_t sent;
   size_t total = 0;
   while( N0 ){
-sent = send(iSocket, pContent, N, 0);
+sent = send(iSocket, pContent, NSSIZE_MAX ?SSIZE_MAX:N , 0);
 if( sent=0 ) break;
 total += sent;
 N -= sent;
 pContent = (void*)((char*)pContent)[sent];
   }

--- http_ssl.c
+++ http_ssl.c
@@ -444,19 +444,19 @@
   cert = PEM_read_bio_X509(mem, NULL, 0, NULL);
   free(zCert);
   BIO_free(mem);  
   return cert;
 }
-
+#include limits.h
 /*
 ** Send content out over the SSL connection.
 */
 size_t ssl_send(void *NotUsed, void *pContent, size_t N){
-  size_t sent;
+  ssize_t sent;
   size_t total = 0;
   while( N0 ){
-sent = BIO_write(iBio, pContent, N);
+sent = BIO_write(iBio, pContent,N = INT_MAX ? N : INT_MAX);
 if( sent=0 ) break;
 total += sent;
 N -= sent;
 pContent = (void*)((char*)pContent)[sent];
   }
@@ -465,18 +465,18 @@
 
 /*
 ** Receive content back from the SSL connection.
 */
 size_t ssl_receive(void *NotUsed, void *pContent, size_t N){
-  size_t got;
+  ssize_t got;
   size_t total = 0;
   while( N0 ){
-got = BIO_read(iBio, pContent, N);
+got = BIO_read(iBio, pContent, N = INT_MAX ? N : INT_MAX);
 if( got=0 ) break;
 total += got;
 N -= got;
 pContent = (void*)((char*)pContent)[got];
   }
   return total;
 }
 
 #endif /* FOSSIL_ENABLE_SSL */

___
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] ssl implementation

2013-08-11 Thread Rene

On 2013-08-10 04:21, Chad Perrin wrote:

On Sun, Aug 04, 2013 at 01:06:38PM +0200, Rene wrote:

The reason I choose axTLS

. . . snip . . .


If this is of interest  I can add it on a branch.

I find it pretty interesting.  The biggest problem I see with axTLS is
the protocol support limitation you identified.

Are there good howtos for using axTLS out there on the web somewhere?


No there isn't. I used the information from http://axTLS.sf.net to 
create the fossil interface.


on unix you can do make menuconfig and everything it provide can be 
selected.

The writer Cameron Rich is responsive when asked questions.

As to the protocol 
(http://en.wikipedia.org/wiki/Transport_Layer_Security)

looking at ths table:

Protocol
version Website
support Security
SSL 2.0 27.4%   Insecure
SSL 3.0 99.7%   Depends on cipher and depends on patching with RFC 5746
TLS 1.0 99.3%   Depends on cipher
TLS 1.1 14.5%   Depends on cipher
TLS 1.2 17.0%   Depends on cipher

It seems not to be a problem

In testing I used
fossil clone https://fossil-scm.org/
and I cloned via my own internal Apache web server

I checked yesterday and you can build on windows with msc and cygwin. 
The documentation states that you always needs GnuMake (also under 
windows, The cygwin environment is used to build a config executable 
(make config or menuconfig But then you need the curses library). After 
that the config is started and you have your choice of build 
environment.


As I stated before my frustration came from setting up openss[hl] on 
windows and Solaris. Therefore I looked at this option.


Having read your question about team setup on freebsd, My recommendation 
is to go with ssh keys.

Much simpler provided that all you need/want is cmdline access.
With the standard ssh functionality you can get by. The only minor thing 
in that setup is that the log is not recording the user that did 
clone/sync/pull/push but the fossil owner. I quess that  is easy enough 
to fix. But do use forced commands otherwise people can gain access to 
the fossil account. If you so wish to prevent logins. Or prevent logins 
by using the shell /bin/nologin.


I have been looking at abusing  the current ssh where users are elevated 
to the highest user level within fossil. I found it surprisingly 
difficult to get the tunnels to setup and talk to the fossil process
I thought of socat but that is not something you pick of the net and use 
:-(.


If your ssh package is flawed  (You have a much bigger problem)
or an unauthorized person got a hold of a ssh key
or you have a rogue user
(in al 3 cases they have access to test-http) I assume(BUT CAN NOT 
PROVE) that it is possible to look at the fossil source and craft a 
package that could rearrange your setup over ssh. Why someone would want 
that is beyond me! (AGAIN it is very possible that I'm completely wrong 
here!)



Andy's patch will mean that you have to login into ssh and fossil. It 
means you have to administrate the users in fossil also. While in the 
standard the ssh key is enough.


If you have a separation of jobs with different capabilities in fossil 
and you want to enforce them you need andy's patch



--
Rene

___
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] ssl implementation

2013-08-11 Thread Rene

On 2013-08-11 14:49, Chad Perrin wrote:

Thanks for all your information about issues related to axTLS.  Not
everything you said warrants a specific response from me, but the
thanks is my general response for everything to which I do not

[snip]


Much simpler provided that all you need/want is cmdline access.
With the standard ssh functionality you can get by. The only minor 
thing

in that setup is that the log is not recording the user that did
clone/sync/pull/push but the fossil owner. I quess that  is easy enough
to fix. But do use forced commands otherwise people can gain access to
the fossil account. If you so wish to prevent logins. Or prevent logins
by using the shell /bin/nologin.

Err . . . wait.  Is it not logging the *user*, or just the IP address?
What would it log in place of the actual authenticated Fossil user
account that initiated the sync?
The user in the current ssh functionality is not authenticated against 
fossil.
And in a single user setup that makes sense. In most cases a ssh key has 
a 1 on 1 relation
with the unix account. In which case having the ssh key is OK and login 
in to fossil is redundant.
And since you are the owner of that account. You already have the 
highest level
of capabilities. Logging the owner makes perfect sense because of this 1 
on 1 relationship


However If your going to break that relation by having n keys on 1 
account
then, I presume,  your doing something with fossil which wasn't 
designed.


--
Rene
___
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] ssl implementation

2013-08-11 Thread Rene

On 2013-08-11 15:26, Stephan Beal wrote:

On Sun, Aug 11, 2013 at 3:24 PM, Rene renew...@xs4all.nl wrote:

However If your going to break that relation by having n keys on 1 
account
then, I presume,  your doing something with fossil which wasn't 
designed.


One of the devs (Andy?) has been working on integrating ssh forced
commands with fossil so that ssh connections can use fossil's
authentication. i'm not sure what the status of that is, but from what
i've read it sounds like a promising solution.
 --
- stephan beal
http://wanderinghorse.net/home/stephan/ [1]
http://gplus.to/sgbeal [2]

Links:
--
[1] http://wanderinghorse.net/home/stephan/
[2] http://gplus.to/sgbeal

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


It is. I have been testing it. As I said if you have a multi user 
project with different job responsibilities and you want to maintain 
that in fossil then you need andy's patch!

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


[fossil-users] cmdline arguments for repopsitory are inconsequent

2013-08-08 Thread Rene

on some commands one has to use -R repo e.g.
sync
pull
push
and others not

clone
ui
server

-R seems redundant.
--
Rene
___
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] cmdline arguments for repopsitory are inconsequent

2013-08-08 Thread Rene

On 2013-08-08 10:58, Stephan Beal wrote:

On Thu, Aug 8, 2013 at 10:47 AM, Rene renew...@xs4all.nl wrote:

-R seems redundant.

It's not _entirely_ redundant - in some cases it changes how the
arguments are processed. Yes, there are inconsistencies there, but
some of the argument handling relies on one or the other approach.
When the app looks for a CLI flag, e.g. -R, fossil actually removes
that flag and its argument from the global argument list, which
changes the argument count, and many of the commands use logic like
if(g.argc==3){...}, so there non-obvious side effects when changing
whether a command expects -R or not. It the context of libfossil,
that's been one of the minor points on the list of things to consider,
and while i don't much care for inconsistency in software, i _think_
that i'll end up doing it similar to how it is done now. e.g. a clone
implies a -R (but normally in the form of a URL), and doesn't need a
flag. The commands you listed where -R is optional almost always
derive their repo db from the current checkout (which is why -R is not
required). i'm not sure why ui/server don't require -R, but instead
take their repo filename as a non-flag argument. Historical in nature,
i guess.

--
- stephan beal
http://wanderinghorse.net/home/stephan/ [1]
http://gplus.to/sgbeal [2]

Links:
--
[1] http://wanderinghorse.net/home/stephan/
[2] http://gplus.to/sgbeal

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


Well lets go the other way  a repo, if not in an checkout, must always 
be specified with -R.
and maybe if a -R repo is specified in a checkout the -R takes 
precedent.

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


[fossil-users] ssl implementation

2013-08-04 Thread Rene

I have been running fossil on 3 platforms windows, linux and solaris.
Setting up openssl can be a major hassle.
I have used axTLS (http://axtls.sf.net) to create an interface 
compatible src/http_ssl.c. (I still struggle with X509 certificates).


The reason I choose axTLS

1) BSD style licensing
2) Size the source tree is 3.2M. Which is the same size as zlib.
3) It has, an optional, https Server axhttps include in the source tree
4) It support out of the box Windows(cygwin, Microsoft), BSD, linux and 
Solaris

5) No dependencies on other libraries, only needs a c compiler to build.

Possible downsides are:
1) it only support TLSv1.0/1.1
2) Mingw is not supported. But you can do cygwin with option -mno_cygwin 
(I have been told :-).

3) I'm not sure if this is a downside
axTLS  has language bindings to a number of scripting languages but not 
TCL.


I have not (yet) integrated it in  the build tools.
Although I have been mucking around with http_${SSL_LIBRARY}.c.
That gave me the impression that adding this to the build system is 
fairly easy.


If this is of interest  I can add it on a branch.

--
Rene
___
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] New command proposal?

2013-07-20 Thread Rene

On 2013-07-20 23:06, Andy Bradford wrote:

Hello,

I've been  working on a simple  fossil command that will  integrate 
with
SSH accounts where SSH  keys are in use and wonder if  there is a 
formal
process for coming up with new subcommand  names? Here is what I have 
at

the moment:

$ fossil help gate
Usage: fossil gate ?FILENAME?

fossil gate ?FILENAME?

Scans filename for the requested fossil path found in the
SSH_ORIGINAL_COMMAND environment variable and runs
fossil http path if found.

If filename is not present, just run fossil http with the
requested path and the operating system will impose restrictions.

Any suggestions?

Thanks,

Andy
--
TAI64 timestamp: 400051eafbf8
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

I don not understand  this.
A forced command is in place and it can only be fossil http.This will 
check

if it is started via ssh and then look in the environment to see if
the request was fossil gate myotherdb.

what are you trying to archive?
--
Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Is building on win32 (32bits) with mingw32 broken?

2013-07-18 Thread Rene

Yesterday I compiled fossil on a 32 bits vista machine and I got
cannot link/find WinMain@16.

Did I do something wrong?

And yes also building it on linux gives:
usr/lib/gcc/i486-mingw32/4.7.2/../../../../i486-mingw32/lib/libmingw32.a(main.o):(.text+0xf3): 
undefined reference to `WinMain@16'

and see below under the line(BUT I think this is an other problem)

Hopwever this
make -f win/Makefile.mingw PREFIX=i486-mingw32-




-
/home/renez/src/fossil/sshwin/./src/cgi.c:1201: undefined reference to 
`getpeername@12'
/home/renez/src/fossil/sshwin/./src/cgi.c:1204: undefined reference to 
`inet_ntoa@4'

bld/http_socket.o: In function `socket_global_init':
/home/renez/src/fossil/sshwin/./src/http_socket.c:90: undefined 
reference to `WSAStartup@8'

bld/http_socket.o: In function `socket_global_shutdown':
/home/renez/src/fossil/sshwin/./src/http_socket.c:105: undefined 
reference to `WSACleanup@0'

bld/http_socket.o: In function `socket_close':
/home/renez/src/fossil/sshwin/./src/http_socket.c:119: undefined 
reference to `closesocket@4'

bld/http_socket.o: In function `socket_open':
/home/renez/src/fossil/sshwin/./src/http_socket.c:143: undefined 
reference to `htons@4'
/home/renez/src/fossil/sshwin/./src/http_socket.c:144: undefined 
reference to `inet_addr@4'
/home/renez/src/fossil/sshwin/./src/http_socket.c:164: undefined 
reference to `inet_ntoa@4'
/home/renez/src/fossil/sshwin/./src/http_socket.c:166: undefined 
reference to `socket@12'
/home/renez/src/fossil/sshwin/./src/http_socket.c:171: undefined 
reference to `connect@12'
/home/renez/src/fossil/sshwin/./src/http_socket.c:148: undefined 
reference to `gethostbyname@4'

bld/http_socket.o: In function `socket_send':
/home/renez/src/fossil/sshwin/./src/http_socket.c:189: undefined 
reference to `send@16'

bld/http_socket.o: In function `socket_receive':
/home/renez/src/fossil/sshwin/./src/http_socket.c:206: undefined 
reference to `recv@16'

bld/winhttp.o: In function `win32_process_one_http_request':
/home/renez/src/fossil/sshwin/./src/winhttp.c:83: undefined reference to 
`recv@16'
/home/renez/src/fossil/sshwin/./src/winhttp.c:128: undefined reference 
to `closesocket@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:102: undefined reference 
to `recv@16'
/home/renez/src/fossil/sshwin/./src/winhttp.c:113: undefined reference 
to `inet_ntoa@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:121: undefined reference 
to `send@16'

bld/winhttp.o: In function `win32_http_service_ctrl':
/home/renez/src/fossil/sshwin/./src/winhttp.c:366: undefined reference 
to `closesocket@4'

bld/winhttp.o: In function `win32_http_server':
/home/renez/src/fossil/sshwin/./src/winhttp.c:166: undefined reference 
to `WSAStartup@8'
/home/renez/src/fossil/sshwin/./src/winhttp.c:170: undefined reference 
to `socket@12'
/home/renez/src/fossil/sshwin/./src/winhttp.c:175: undefined reference 
to `htons@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:177: undefined reference 
to `inet_addr@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:186: undefined reference 
to `bind@12'
/home/renez/src/fossil/sshwin/./src/winhttp.c:191: undefined reference 
to `listen@8'
/home/renez/src/fossil/sshwin/./src/winhttp.c:228: undefined reference 
to `accept@12'
/home/renez/src/fossil/sshwin/./src/winhttp.c:232: undefined reference 
to `WSAGetLastError@0'
/home/renez/src/fossil/sshwin/./src/winhttp.c:252: undefined reference 
to `WSACleanup@0'
/home/renez/src/fossil/sshwin/./src/winhttp.c:192: undefined reference 
to `closesocket@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:182: undefined reference 
to `htonl@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:184: undefined reference 
to `htonl@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:251: undefined reference 
to `closesocket@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:252: undefined reference 
to `WSACleanup@0'
/home/renez/src/fossil/sshwin/./src/winhttp.c:237: undefined reference 
to `closesocket@4'
/home/renez/src/fossil/sshwin/./src/winhttp.c:238: undefined reference 
to `WSACleanup@0'


--
Rene
___
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] Ssh and multiple users on the same ssh account

2013-07-15 Thread Rene

On 2013-07-15 02:34, David Mason wrote:

You might want to look at how mercurial-server works.  You set up one
remote account that owns the master repository, but then everyone can
access e.g. ssh://h...@foo.bar/reponame but each key has a command set
up that says who it is that's accessing and then it uses the rules to
control what the person can do.

The clever thing is that there is a special hgadmin repository that
has keys and an access.conf file that essentially says which keys can
do what to which repos.  So that whoever has write access to the
hgadmin repo can edit the access.conf and add/remove keys and then on
the push, it creates the authorized_keys that enforces the
security/permission model

http://www.lshift.net/mercurial-server.html

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

Thanks, I thought of something like that to.
--
Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] Ssh and multiple users on the same ssh account

2013-07-14 Thread Rene

I looked at  andy's patch, but I cannot make a definite conclusion
how it works when multiple users share one ssh account service 
(fossil).


For instance:

I have an ssh account renez@sunny with Repo x.
Andy comes along. I give him a key and an account on repo x. He clones 
to repo x2
(And here we have a problem if I removed clone from nobody and only 
andy and me are allowed to clone Then andy can only clone as renez. But 
this is minor. Because only trusted people can access the account so 
nobody  is still allowed to clone)


if Andy does a push to Repo x with fossil push 
ssh://renez@sunny/scm/x?fossil=bin/fossil


I expect/hope/dream that once fossil http starts a login card with 
Andy's name on it is sent to the server.
and not g.urlUser!. Because, for my intent and purposes, that would be 
wrong.




I do see a solution for this and the problem of cloning mentioned 
before. If I want to work with ssh account sharing then ssh forced  
commands and extra personal keys are, almost, mandatory.


lets view de url ssh://renez@sunny/scm/x with user key rsa-1024 as 
unlocking the transport mechanism.  But not unlocking  the repo.


Because the ssh key is personal so we would know it's Andy (or someone 
who stole his key) knocking on the door.
We start http with --override-user andy and asked for Andy's 
(fossil)password (Now that would be a surprise if his key was stolen)


Actually what is the sense of having a repo behind ssh If only one user 
can access it.

Your not going to give your key to other persons so they can clone?

Well it does make sense when the repo is placed in a shared directory.
and users who have an account on that machine can do their work.
(Actually that could be though to keep the repo save.
you would have to disallow user to bring there own fossil executable.
And the fossil executable should be build en md5 and sha1 by trusted 
person.
In this situation my idea could add an extra layer that they could only 
do fossil.)



I don't know if there is actually interest to have it work like that. 
Having written this email it only seems logical to use g.urlUser
I do think that the added functionality  can be done in such a way that 
it will transparent for the intended usage.
(because they will not have a force command on their own key. And even 
then they would let fossil slide by as legitimate usage)


--
Rene
___
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] SSH client updates.

2013-07-12 Thread Rene

On 2013-07-12 01:49, Andy Bradford wrote:

Thus said Rene on Thu, 11 Jul 2013 22:31:48 +0200:

I would prefer to not have that option. test-http is for testing a 
new
transport method. If you give someone read acces to your ssh repo 
then
test-http circumvents that. In fact test-htp makes you while 
connected

setup user


I agree with  you on this sentiment. Does this  also mean, however, 
that

you would prefer to remove the original clone behavior entirely?

Right now, the original behavior is preserved by default:

fossil clone ssh://amb@remote//tmp/test.fossil test.fossil

Will invoke  a remote shell via  SSH, go through the  echo/reply 
probes,

and then finally launch ``fossil test-http /tmp/test.fossil''.

Should this option be removed entirely?  Should it be changed instead 
to
go through  the same echo/reply  probes, but then finally  call 
``fossil
http  /tmp/test.fossil''  instead? Or  should  the  default behavior  
be
replaced with  simply issuing a remote  ``fossil http 
/tmp/test.fossil''

as I now do using the -h http option?

My vote  would be to remove  the original behavior, and  replace it 
with
simply running a  remote ``fossil http /tmp/test.fossil''  and not 
worry
about shell issues. But, that  does introduce one difference in 
behavior

on clones---because the ``fossil http'' command outputs a

Connection: close

header in the response, each interaction  during the clone will invoke 
a
new SSH  command. This isn't  necessarily a  problem for people  who 
are
using SSH keys, but you will be prompted for a password each time if 
you
aren't using a key.  This may not be so bad,  however, because I 
believe
autosync  already behaves  this way,  so really,  it's only  the 
cloning

operation that would change in behavior.

Perhaps a poll is in order.

Thanks for the feedback.

Andy
--
TAI64 timestamp: 400051df44b5

I prefer the new way and do remove the old way

--
Rene
___
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] SSH client updates.

2013-07-10 Thread Rene

On 2013-07-10 21:31, Martin Gagnon wrote:

On Wed, Jul 10, 2013 at 01:51:05AM -0600, Andy Bradford wrote:

Folks,

As I  mentioned before, I've  been attempting some modifications  to 
the
fossil SSH URL handling. I'm at a  point where I could use some 
feedback

regarding the previous method for handling SSH.


  [snip]


I like the idea to have new ssh implementation that don't depend on
shell and to have capability to use ssh protocol without using 
accounts

with shell access. But I think there's still have some work and test
that need to be done on this implementation.

I tried your patch, I don't know if I'm missing something but it
doesn't work for me... I made a simple test in the same way I was 
using

ssh:// protocol before, without using SSH keys restrictions and I got
following results:

1- Some new line are missing when asking for password, so I'm
   typing password over the first line of sync status output.

   (I guess this is not a problem when using ssh keys
   but output should still be correct when using
   password)

2- Clone return with no warning or error right away with 0
   artifact sent and 0 artifact received and I end up with a
   empty fossil file and a fossil-journal file..

   (On OpenBSD 5.3 amd64)

Exact same command with non-patched fossil work.
On linux (arch) it works. Now if i lower my credentials i'm not allowed 
to write!


I had no problem typing the password. even if i botch my first one!
fossil clone 
ssh://renez@arch:22/src/fossil/myclone.fossil?fossil=bin/fssh new2.fsl

ssh -e none -T renez@arch
renez@arch's password:
Permission denied, please try again.
renez@arch's password:
Round-trips: 6   Artifacts sent: 0  received: 21510
Clone finished with 1592 bytes sent, 28967314 bytes received
Killed by signal 2.
Rebuilding repository meta-data...
  100.0% complete...
project-id: CE59BB9F186226D80E49D1FA2DB29F935CCA0333
admin-user: renez (password is 4b8994)




Is nobody allowed to clone on your repo?



--
Rene
___
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] ForceCommand SSH key with fossil?

2013-07-01 Thread Rene

If I have an account on the remote machine then autosync succeeds.

I have this setup:

archlinux  running this is fossil version 1.25 [878f7008ab] 2013-05-31 
17:41:25 UTC


windows xp virtual machine

arch
fossil create andy.fsl
fossil ui andy.fsl (add user zwart604 as developer)

win
fossil settings ssh-command plink -T
	fossil clone ssh://renez@arch/andy.fsl?fossil=bin/fossil andyclone.fsl 
--sshTrace

plink -T renez@arch
==Using username renez.
Round-trips: 2   Artifacts sent: 0  received: 6
Clone finished with 485 bytes sent, 1294 bytes received
Rebuilding repository meta-data...
  100.0% complete...
project-id: 131a4040153ac69a6f4d1108b23f57eccef102b2
admin-user: zwart604 (password is 45004c)

mkdir t
cd t
fossil open ..\andyclone.fsl
echo #include stdfio.h a.c
fossil add a.c

temp\t..\fossil.exe commit -m did this as zwart604
Autosync:  ssh://renez@arch/andy.fsl?fossil=bin/fossil
plink -T renez@arch
Using username renez.
Round-trips: 1   Artifacts sent: 0  received: 0
Pull finished with 290 bytes sent, 286 bytes received
	./a.c contains CR/NL line endings. Use --no-warnings or the 
crnl-glob setting

to disable this warning.
Commit anyhow (a=all/c=convert/y/N)? a
New_Version: 9eeeca09475fc269e49c1864ec9ff5b669e5664a
Autosync:  ssh://renez@arch/andy.fsl?fossil=bin/fossil
plink -T renez@arch
==  Using username renez.
Round-trips: 1   Artifacts sent: 2  received: 0
Sync finished with 522 bytes sent, 340 bytes received


What is annoying is that all the interaction is done with the name of 
the user who has the ssh-account. like the log is

2   2013-07-01 18:03:02 renez   127.0.0.1
1   2013-06-30 13:36:03 renez

Number 2 is not true that came from zwart604 at ip xxx.xxx.xxx.xxx
Maybe make the force command

  command=/usr/local/bin/fossil http /tmp/test.fossil --user 
zwart604  --ip x.x.x.x  ssh-rsa


if you have given the key to one person then the key will identify the 
user
$SSH2_CLIENT, extract the IP address of the incoming client, which is 
the first (of three) value in the string.
Or fossil could pick that up form cards sent. or from the environment 
or from both

Why not a mode fossil ssh (which would be a special http)



What seems weird if I drop the access of zwart604 to g(Clone) i can 
still sync and enter new files Is that expected behaviour?





--
Rene
___
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] ForceCommand SSH key with fossil?

2013-07-01 Thread Rene

Yes, I dropt it from gjo to g.

I now dropped of the g and my windows repo still sync succesful with 
the master repo. Where zwart604 now has no permissions at all
see below the timeline the one at 20:49 is of zwart604 with no 
permissions on the master one. I probably do something wrong!


2013-07-01

20:49
[0887e49cf5] Leaf: did this as zwart604 (user: zwart604, tags: trunk)
20:48
[9e62c4aafe] did this as zwart604 (user: zwart604, tags: trunk)
19:06
[d5f8fc4fc9] did this as zwart604 (user: zwart604, tags: trunk)
19:03
[6cac74dbb7] did this as zwart604 (user: zwart604, tags: trunk)
19:01
[4576135d8c] did this as zwart604 (user: zwart604, tags: trunk)
18:02
[9eeeca0947] did this as zwart604 (user: zwart604, tags: trunk)


On 2013-07-01 21:35, Stephan Beal wrote:

On Mon, Jul 1, 2013 at 9:16 PM, Rene renew...@xs4all.nl wrote:

What seems weird if I drop the access of zwart604 to g(Clone) i can 
still sync and enter new files Is that expected behaviour?


The i (Inbound/write/checkin) permission controls that. Are you
able to bypass that permission check?

--
- stephan beal
http://wanderinghorse.net/home/stephan/ [1]
http://gplus.to/sgbeal [2]

Links:
--
[1] http://wanderinghorse.net/home/stephan/
[2] http://gplus.to/sgbeal

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


--
Rene
___
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] ForceCommand SSH key with fossil?

2013-07-01 Thread Rene

On 2013-07-01 23:01, Stephan Beal wrote:

On Mon, Jul 1, 2013 at 10:57 PM, Rene renew...@xs4all.nl wrote:

see below the timeline the one at 20:49 is of zwart604 with no 
permissions on the master one. I probably do something wrong!


If i'm not mistaken (and i might be - i'm not familiar with the
details of fossil's ssh bits), a user running over ssh has all
permissions (because that's what fossil uses when run in
non-server/CGI mode). If, however, fossil is using its HTTP server
over ssh (i don't know whether it does or not does, to be honest),
then it should be setting up the permissions properly for the user.
Based on my interpretation of your results, a user running over ssh
has all permissions, as for a local user. i  can't immediately say
whether that's expected or not.

Sorry, not very helpful :/.

--
- stephan beal
http://wanderinghorse.net/home/stephan/ [1]
 http://gplus.to/sgbeal [2]

Links:
--
[1] http://wanderinghorse.net/home/stephan/
[2] http://gplus.to/sgbeal

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


Hm, This is what I see if I do:

C:\temp\techo hallo  g.c

C:\temp\t..\fossil.exe add g.c
ADDED  g.c

C:\temp\t..\fossil.exe commit -m did this as zwart604 
--sshtrace

Autosync:  ssh://renez@arch/andy.fsl?fossil=bin/fossil
plink -T renez@arch
Sent: [echo probe-8b38afea112ef8b4a65dfb639b526c2c]
Using username renez.
Got back---
probe-8b38afea112ef8b4a65dfb639b526c2c
---
Sent: [echo probe-7d8a878c308bc5f5ab12fa1baaf3609f]
Got back---
probe-7d8a878c308bc5f5ab12fa1baaf3609f
---
Sent: [bin/fossil test-http andy.fsl]eceived: 0
Got line: [HTTP/1.0 200 OK]
Got line: [Date: Mon, 1 Jul 2013 21:05:21 GMT]
Got line: [Connection: close]
Got line: [X-Frame-Options: SAMEORIGIN]
Got line: [Cache-control: no-cache]
Got line: [Content-Type: application/x-fossil; charset=utf-8]
Got line: [Content-Length: 280]
Got line: []
Reading 280 bytes with 0 on hand...  Got 280 bytes
Round-trips: 1   Artifacts sent: 0  received: 0
Pull finished with 290 bytes sent, 480 bytes received
./g.c contains CR/NL line endings. Use --no-warnings or the 
crnl-glob setting

to disable this warning.
Commit anyhow (a=all/c=convert/y/N)? a
New_Version: 50122ec07cb3c91d8910105f6a9c8050ddcae4c1
Autosync:  ssh://renez@arch/andy.fsl?fossil=bin/fossil
plink -T renez@arch
Sent: [echo probe-d7c9e86da35acc3286ded3db70a416e4]
Using username renez.
Got back---
probe-d7c9e86da35acc3286ded3db70a416e4
---
Sent: [echo probe-f7e5b3ddbb9a59c5c9e6855723a29fde]
Got back---
probe-f7e5b3ddbb9a59c5c9e6855723a29fde
---
Sent: [bin/fossil test-http andy.fsl]eceived: 0
Got line: [HTTP/1.0 200 OK]
Got line: [Date: Mon, 1 Jul 2013 21:05:28 GMT]
Got line: [Connection: close]
Got line: [X-Frame-Options: SAMEORIGIN]
Got line: [Cache-control: no-cache]
Got line: [Content-Type: application/x-fossil; charset=utf-8]
Got line: [Content-Length: 305]
Got line: []
Reading 305 bytes with 0 on hand...  Got 305 bytes
Round-trips: 1   Artifacts sent: 2  received: 0
Sync finished with 676 bytes sent, 505 bytes received

C:\temp\t

and the answer is

/*
** Note that the following command is used by ssh:// processing.
**
** COMMAND: test-http
** Works like the http command but gives setup permission to all users.
*/
void cmd_test_http(void){
  Th_InitTraceLog();
  login_set_capabilities(sx, 0);
  g.useLocalauth = 1;
  cgi_set_parameter(REMOTE_ADDR, 127.0.0.1);
  g.httpIn = stdin;
  g.httpOut = stdout;
  find_server_repository(0);
  g.cgiOutput = 1;
  g.fullHttpReply = 1;
  cgi_handle_http_request(0);
  process_one_web_page(0, 0);
}


--
Rene
___
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] ForceCommand SSH key with fossil?

2013-06-30 Thread Rene

On 2013-06-30 02:19, Andy Bradford wrote:

Hello,

Next hurdle.  SSL or SSH on Windows.

I just  discovered that fossil.exe  does not  have SSL support,  so 
that
kind of presents a hurdle. By the  way, it works nicely in a chroot 
with

stunnel and SSL client certificates on an OpenBSD server.

So, now on to SSH...

I'm trying to setup a force  command with ssh keys that restricts 
access

with that key to simply ``fossil http REPOSITORY''.

Is there  some trick I need  to tell the  client that it already  has 
an
open fossil http  server waiting to be used on  stdin/stdout and to 
just
start talking  HTTP? SSH will have  already taken care of  wiring up 
the
stdin/stdout  on the  server side,  so this  really just  seems to  be 
a

client side problem.

I setup a ForceCommand SSH key but  the client doesn't seem to know 
what

to do with it and crashes:

$ fossil ver
This is fossil version 1.26 [c9cb6e7293] 2013-06-18 21:09:23 UTC
$ fossil clone ssh://amb@localhost//tmp/test.fossil test.fossil
ssh -e none -T amb@localhost
...
debug1: Offering RSA public key: /home/amb/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 279
debug1: Authentication succeeded (publickey).
...
debug1: channel 1: new [client-session]
debug1: Entering interactive session.
debug1: Remote: Forced command.
debug1: Remote: Forced command.
...
debug1: Exit status 0
$ echo $?
141

As can be seen,  when my SSH key is used, it will  be forced into 
fossil
http  mode,  but  the  client  crashes.  Here  is  what  I  have  in  
my

authorized_keys:

$ grep fossil /home/amb/.ssh/authorized_keys
command=/home/amb/bin/fossil http /tmp/test.fossil ssh-rsa
B3NzaC1yc2EDAQABAAABAQDqKI393xubO69Rs+Y6fbnxDpAgX5kTe31qWepFyfu08wxNj5iX57vNIYFIcC7bwKW4EHMakuEIYr2eDzXl3e1pXLzteFESISaZkXrmspNIMRh4oW/3LqV+pGXfimA//YlmbJOMzEHerSCTi+QG0O6LNyvjlZgJmP8dJgc0ktzw6nAVcpdFxwoNa+tQJb+g7wLHGRCsl9uvf6rfdzXVUm/tAtD/TyPITU7Ni2q7aTm/m8YKsXDUif91UP9XUH8phwwEucQa3MagtIcmUKJzrkuwHT+rr2K/0W8vpjO3iq3g7ejONqaTfqEW2Rc5uydYsc1B5IjsmPm0bVkbB3B6ZBxF
amb

Is there any  way to tell the  local fossil client command  that it 
just
needs to start talking HTTP to  whatever file descriptor it has open 
for
SSH? Or,  is there  another mode that  fossil has that  will do  this? 
I

couldn't find it in the documentation.

By the way, SSH keys, and  just SSH with password authentication do 
work
for cloning, but I want to restrict the access that users make to 
simply
the fossil  command (no  shell access), but  if I just  use the  SSH 
key

without restricting the command, they gain full shell access.

Thanks,

Andy


One possibility seems to be to use the urlShell :
Wed, Feb 6, 2013 at 5:31 PM, Richard Hipp drh at sqlite.org wrote:


I want to understand the problem before I put in the fix.

To try to help better understand what is happening, I have added a new 
query parameter to the ssh: url scheme.  You can now say:


fossil clone ssh://user@host/path/to/repo?shell=/bin/bash 
new.fossil


and that will cause Fossil to add the /bin/bash argument to the end 
of the ssh command.  Please note that you can also do
--sshtrace to get some interactive information on what the ssh command 
is doing.


Tell you users that they can only acces fossil with:
//user@host/path/to/repo?shell=/andy/sh

make the line in authorized hosts

command=/home/amb/bin/forcedcommand.sh

check in the script if the command is /andy/sh in SSH_ORIGINAL_COMMAND.
 If so exec /bin/sh, otherwise close the connection.

S
Look in SSH_ORIGINAL_COMMAND. probably this is always /bin/sh or 
something like that.

Maybe you can check on the ip number if its trusted and then you know.
If not echo back something like you this is me and I want to know who 
you are

If it's fossil it wil send you


then make the dance with the fossil client.

--
Rene
___
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] ForceCommand SSH key with fossil?

2013-06-30 Thread Rene

On 2013-06-30 15:24, Rene wrote:
[snip]

Sorry this should have not been part of the message.
It could be an alternative way. But the urlShell seems to be much 
easier!




S
Look in SSH_ORIGINAL_COMMAND. probably this is always /bin/sh or
something like that.
Maybe you can check on the ip number if its trusted and then you know.
If not echo back something like you this is me and I want to know who 
you are

If it's fossil it wil send you


then make the dance with the fossil client.


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


[fossil-users] cygwin distributes fossil

2013-04-03 Thread Rene

News or Old News? To me it was new.

Just installed cygwin and in the devel group  they offer fossil dated 
feb 2013 so recent.

Nice to see that fossil is getting more popular/known

Rene
___
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] cygwin distributes fossil

2013-04-03 Thread rene
Wow , and  4 or more  leading linux distros have fossil as a package
! 
 
On Thu, 4 Apr 2013 00:25:49 +0200, fossil-users-boun...@lists.fossil-scm.org 
wrote:
 On 4/3/2013 15:24, Rene wrote:
  News or Old News? To me it was new.
 
 ~15 months old news:
 
   http://cygwin.com/ml/cygwin-apps/2012-01/msg00054.html
 
 ___
 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 webserver doesn't respond, windows7

2013-04-01 Thread rene
You could try localhost:8080. strange i know but it works for me.


On Mon, 1 Apr 2013 20:57:54 +0200, fossil-users-boun...@lists.fossil-scm.org 
wrote:
 Hello, after creating my first fossil repository on windows 7 laptop
 and adding some files, command fossil ui starts webserver, but web
 browser cannot connect to http://127.0.0.1:8080, server closes
 connection without sending any data. TCPView shows fossil listening on
 port 8080, turning off firewall and antivirus doesn't help. Am I
 missing something obvious? Thanks!
 
 fossil status when launching fossil webserver:
 
 c:\oefossil status
 repository: c:\_fossil\oe.fossil
 local-root: c:/oe/
 checkout: 7523469413f1e44f69fe4496b11f772c730a303d 2013-04-01 17:47:08 UTC
 parent: a94a4ce81513ed7f0cb836af7e78a06a4642b0be 2013-04-01 17:38:43 UTC
 tags: trunk
 comment: Исходное состояние (user: Миша)
 ___
 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 webserver doesn't respond, windows7

2013-04-01 Thread rene
I do not think it is fossil. You can use -httptrace
. You could try your ip address:8080. Are You sure it is running on  8080 not 
on 8081?

On Mon, 1 Apr 2013 22:47:08 +0200, fossil-users-boun...@lists.fossil-scm.org 
wrote:
 Thanks, I tried, but result is the same, very strange indeed... Maybe
 fossil has some debugging options that could help in this case?
 
 2013/4/2 rene renew...@xs4all.nl:
  You could try localhost:8080. strange i know but it works for me.
 
 
  On Mon, 1 Apr 2013 20:57:54 +0200, 
  fossil-users-boun...@lists.fossil-scm.org wrote:
  Hello, after creating my first fossil repository on windows 7 laptop
  and adding some files, command fossil ui starts webserver, but web
  browser cannot connect to http://127.0.0.1:8080, server closes
  connection without sending any data. TCPView shows fossil listening on
  port 8080, turning off firewall and antivirus doesn't help. Am I
  missing something obvious? Thanks!
 
  fossil status when launching fossil webserver:
 
  c:\oefossil status
  repository: c:\_fossil\oe.fossil
  local-root: c:/oe/
  checkout: 7523469413f1e44f69fe4496b11f772c730a303d 2013-04-01 17:47:08 UTC
  parent: a94a4ce81513ed7f0cb836af7e78a06a4642b0be 2013-04-01 17:38:43 UTC
  tags: trunk
  comment: Исходное состояние (user: Миша)
  ___
  fossil-users mailing list
  fossil-users@lists.fossil-scm.org
  http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
  ___
  fossil-users mailing list
  fossil-users@lists.fossil-scm.org
  http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
 
 
 
 --
 С уважением
 М.Мартынов
 ___
 fossil-users 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 webserver doesn't respond, windows7

2013-04-01 Thread Rene

that should be ./fossil ui --httptrace

On 2013-04-01 23:31, rene wrote:

I do not think it is fossil. You can use -httptrace

. You could try

your ip address:8080. Are You sure it is running on  8080 not on 8081?

On Mon, 1 Apr 2013 22:47:08 +0200,
fossil-users-boun...@lists.fossil-scm.org wrote:

Thanks, I tried, but result is the same, very strange indeed... Maybe
fossil has some debugging options that could help in this case?

2013/4/2 rene renew...@xs4all.nl:

You could try localhost:8080. strange i know but it works for me.


On Mon, 1 Apr 2013 20:57:54 +0200, 
fossil-users-boun...@lists.fossil-scm.org wrote:
Hello, after creating my first fossil repository on windows 7 
laptop
and adding some files, command fossil ui starts webserver, but 
web

browser cannot connect to http://127.0.0.1:8080, server closes
connection without sending any data. TCPView shows fossil listening 
on

port 8080, turning off firewall and antivirus doesn't help. Am I
missing something obvious? Thanks!

fossil status when launching fossil webserver:

c:\oefossil status
repository: c:\_fossil\oe.fossil
local-root: c:/oe/
checkout: 7523469413f1e44f69fe4496b11f772c730a303d 2013-04-01 
17:47:08 UTC
parent: a94a4ce81513ed7f0cb836af7e78a06a4642b0be 2013-04-01 
17:38:43 UTC

tags: trunk
comment: Исходное состояние (user: Миша)
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

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




--
С уважением
М.Мартынов
___
fossil-users 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


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


[fossil-users] Using ssh forced command

2013-02-12 Thread Rene

I have a repository on a machine say sunny.
- I have a login account on sunny and my login is renez
- I have two persons, Joe and Deb, who want to use a repo of mine.
- We all work in a big network where only port 22, 80 and 443 are open.
- I don't have a web server running on sunny.
- Or a web server is running on on sunny but I'm not allowed to use it.

My problem is I only want Joe and Deb to access the repo.

if they give me there public key then they are allowed to log on to my 
account. Not what I want.

There is a ssh feature called forced command.

I generate two key pairs one for Deb and one for Joe with out a 
paraphrase and hand the private keys to them.


I prefix the public key in .ssh/authorized_keys with a command string 
like

  command=path/to/fossil http ssh-rsa KEY comment

Apparently no other command will be executed. (off course if you have 
shell escape in the

forced command then still everything can go wrong)

Here is the fantasy part:

They connect with the url ssh://renez@sunny/work/develop.fossil.
But we know that it is Joe or Deb  knocking on the door to get access 
to the repo,

because of the key used to identify them.

I could make the forced command in Joe's public key line:
  command=path/to/fossil http --ssh-user Joe ssh-rsa KEY comment

and fossil could check if it is running under forced command because 
the environment variable

$SSH_ORIGINAL_COMMAND is set with the command given.
This commit or whatever should be registered under Joe's credentials or 
refused if his credentials are to low.


note:
It is probably better to make the force command a wrapper script that 
checks if the send command

is indeed fossil being requested. If not then exit.

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


[fossil-users] compiling on solaris 10

2013-01-09 Thread Rene

I could not get the head to compile under solaris 10.
somehow (and this is also true for 1.24) autosetup is not capable to 
pickup my openssl config.


I can do from the command line pkg-config openssl --libs and get a 
correct answer.

but autosetup could not find it.

I used the makefile.classic   and had to move -lcrypto to the end of 
LIBS before it could link 1.24


Also under Mingw32 I could not get the head to compile.

If I find the time I try to make a more definite analysis (if that is 
needed. If I am only one with this  problem then ..).
I had estimated to be 1 hour tops for installing it on solaris and 
mingw. it took the better part of a day now!

--
Rene
___
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 vs. Git/Mercurial/etc.?

2012-12-19 Thread Rene

On 2012-12-18 22:50, j. v. d. hoff wrote:

On Tue, 18 Dec 2012 22:29:19 +0100, Mike Meyer m...@mired.org wrote:

well-balanced assessment.


On Tue, 18 Dec 2012 14:42:34 +0100
Gilles gilles.gana...@free.fr wrote:
	Out of curiosity, if someone is well-versed with Fossil and the 
main

DVCS systems (Mercurial, Git),


Well, since no one else has answered publicly, I'll take a stab at
it. Fossil has been my goto SCM for over a year now. I use mercurial
for things I want to share publicly via GoogleCode (yes, I know about
chiselapp, but that's a different discussion). I've used git for
client projects for months at a time over the past couple of years,
including a week-long project this month. I also have years of
experience with subversion, perforce (I am, or was, a PCP), CVS, RCS
and a proprietary precursor to perforce.


Besides the fact that Fossil includes a wiki and a bug tracker, does
it offer features that would make it a better solution than the big
names?


I'd say no. The three are different enough to notice, but whether or
not the differences make them a better solution depends more on the
organization that's using them than about their fundamental
behavior. For example, the major difference is how they handle using
rebase to rewrite history. For git, it's a feature. Mercurial 
provides
it as an extension, but the community generally discourages it. 
Fossil

doesn't have it. None of these is universally right, but each is
right for some organization.

Aside from rebase, the major differences are in things external to
their behavior as a SCM, and those tend to be the ones that drive the
decision as to which one you want to use if you don't care about
rebase.

Fossil: it's strong points are the built-in wiki and ticket tracking
system, and that it's a single self-contained binary.  What sets it
apart as a DSCM is autosync mode and that you can have multiple work


from my recent experience , `autosync' seems to be _the_ feature 
making

the move to DVCS tolerable for some die-hard `svn' users.


spaces checked out of the same repository.  However, the fossil mail
list sees regular though infrequent issues with people who've 
stumbled
over a problem caused by them putting the fossil repo in a work 
space.


could you please elaborate on this? I came to fossil only very
recently  and, for now,
have decided to keep the repo in the checkout directory (just like
`hg',  say). if
I don't won't to have multiple checkouts from the same repo what's  
potentially

bad about this setup? what kind of problems do you have in mind?

j.



For a single user not having to push/pull merges between multiple 
work

spaces is a win, though you can do that if you want to.

For small teams, the self-contained binary means it users fewer
resources to deploy if you need a version not in the package manager
(or on a system without a package manager).

I don't know of anyone using it for a large team. I don't know of any
reason not to, except for the risk of being the first to try that.


the NetBSD example seems to indicate that fossil's has performance 
problems
for such projects with a massive code base. is this still the state of 
affairs?

not that this would matter for 99.9% of all projects.

j.



Mercurial: it's strong point is the plugin system. If you need it to
do something that's not in the base, there's a good chance there's a
plugin that does it. With no extensions, it's a good, vanilla DSCM
with a you can't change history philosophy, except for the
rollback command that lets you undo the last commit. I use
rollback to undo commits that didn't include the right set of
files. People regularly show up on the hg users mail list having
problems getting it to find the correct versions of all the parts
after doing an install or upgrade.

Git: I don't like git, because I think mutable history is anathema to
what a SCM should be. That said, it's strong point is it's
popularity. As a DSCM, what sets it apart is using rebase to rewrite
history, and the staging area. The staging area provides the kind of
brain fart protection you get from the hg rollback command. On 
the
other hand, I do an empty commit in git because I forgot to set up 
the

staging area far more often than I use the hg rollback command.

mike


To me, in small projects (1 to 10 persons), the  biggest advance of 
fossil is the use of http, ssh and single binary.
If you are in a big company and you need to set up shop then port 80,22 
is most of the time open.
Asking for firewall changes can be a major problem. Getting access to 
the scm system can be a major problem to.


As to the BSD repositories. I don't think that they represent a normal 
development work flow.
But joerg's work has delivered, important, enhancements to fossil 
(syncing big repositories)

I'm glad he took the time to do that.
Better example might be TCL/Tk, sqlite,
--
Rene
___
fossil-users mailing list
fossil-users@lists.fossil

Re: [fossil-users] Partial clone/sync

2012-09-09 Thread Rene

On 2012-09-09 17:30, Baruch Burstein wrote:

Would it be possible to do partial clones/syncs? It seems that by the
definition of a fossil repository this should be trivial (receiving
artifacts in any order). I am asking because It took me a few days to
successfully clone http://netbsd.sonnenberger.org/ [1] on a bad
connection. A few times I had already gotten over 1GB, and it was all
lost when the clone couldn't be completed.

That is a big repository!
I don't think it is possible to have clone continue its operation where 
it was so rudely interrupted!

--
Rene
___
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] Unable to push on remote repository.

2012-08-26 Thread Rene

On 2012-08-26 18:32, Gautier DI FOLCO wrote:

Hi all,

I'm new to fossil and I have followed this post

(http://blog.appamatto.com/2011/11/13/multiple-fossil-repositories-setup.html
[1]) to setup a fossil on my home server (an OpenBSD 5.1 i386).
 I have the following nginx.conf :

user _nginx;
worker_processes  1;
events {
    worker_connections  1024;
}
http {
    include   mime.types;
    default_type  application/octet-stream;
     sendfile    on;
    keepalive_timeout  65;
     server {
    listen   80;
    server_name  localhost;
    location / {
    proxy_pass http://127.0.0.1:8080/ [2];
    proxy_redirect off;
     proxy_set_header  
Host $host;
    proxy_set_header   X-Real-IP   
$remote_addr;
    proxy_set_header   X-Forwarded-For 
$proxy_add_x_forwarded_for;
    }
    }
 }

I launch fossil with this command line : fossil serve
/home/fossil/repositories.
Then I tried the following command :

~ $ FOSSIL CLONE

TEST.FOSSIL

     Bytes  Cards 
Artifacts Deltas
Sent:  53 
1  0  0
Received: 6601193    245   
121  0
Sent:  70 
2  0  0
 Received: 5596705    251   
123  0
Sent:  55 
4  0  0
Received: 6868686 19 
8  0
Sent:  55 
1  0  0
 Received: 8166176  5 
1  0
Sent:  55 
1  0  0
Received:    15695969    179
88  0
Sent:  55 
1  0  0
 Received: 5093090 97
47  0
Sent:  55 
1  0  0
Received: 5011321    117
57  0
Sent:  55 
1  0  0
 Received: 5002566    283   
140  0
Sent:  55 
1  0  0
Received: 5022130   1826   
913  0
Sent:  56 
1  0  0
 Received: 5017688    641   
320  0
Sent:  56 
1  0  0
Received: 3972895   1137   
568  0
Total network traffic: 2664 bytes sent, 72051060 bytes received
 Rebuilding repository meta-data...
  100.0% complete...
project-id: cee0eea7fb387d0bb2c07430f999aafc56fc9c9a
server-id:  5abbb01562d3b7d9861433e1cbe3739217c17ac5
admin-user: black (password is 872461)
  ~ $ mkdir

test

 ~ $ cd

test   

  test $

ls

 test $ fossil open ../test.fossil
. a very long list
  test $ mv _real.sh real.sh
 test $ fossil mv _real.sh real.sh
RENAME _real.sh real.sh
 TEST $ FOSSIL COMMIT -M TEST

PUSH 

Autosync:  http://192.168.0.42/cours-3if [3]
     Bytes  Cards 
Artifacts Deltas
Sent: 130 
1  0  0
Received:  78  2 
0  0
Total network traffic: 290 bytes sent, 307 bytes received
 New_Version: d58c3a5521a658a8a393a466d779d3d4adab1d50
Autosync:  http://192.168.0.42/cours-3if [4]
    Bytes  Cards 
Artifacts Deltas
Sent: 603 
4  0  1
 Error: not authorized to write
Received: 111  1 
0  0
Total network traffic: 525 bytes sent, 335 bytes received
fossil: Autosync failed
 TEST $ FOSSIL PUSH
     Bytes  Cards 
Artifacts Deltas
Sent: 222 
3  0  0
Received:   23532    501 
0  0
Total network traffic: 400 bytes sent, 12763 bytes received

The strangest thing is that I can see my commit on my local 
repository

but not on my remote repository while it makes me no error and I have
the grade 'Setup' (s) on the remote repository.
 I'm new, so I may have missed something, but what?

For your help,
In advance,
Thanks.

PS : I have compiled the d7736649cd check-in on both sides.


Links:
--
[1]

http://blog.appamatto.com/2011/11/13/multiple-fossil-repositories-setup.html
[2] http://127.0.0.1:8080/
[3] http://192.168.0.42/cours-3if
[4] http://192.168.0.42/cours-3if

Has the user _nginx  on the server write permissions to the repo?
--
Rene
___
fossil-users mailing

Re: [fossil-users] Is there a way to disable wiki links when using HTML?

2012-08-22 Thread Rene

On 2012-08-21 07:21, Stuart Rackham wrote:

On 21/08/12 17:08, rene wrote:

  nowiki?


I tried enveloping the HTML in the nowiki tag but it had not effect.
I also took a look at the the source in wikiformat.c for clues but it
looks to me like the nextRawToken() function is unconditionally
parsing wiki links.


On Tue, 21 Aug 2012 05:10:04 +0200, 
fossil-users-boun...@lists.fossil-scm.org wrote:

Hi

The text in my HTML wiki pages contains square brackets and they 
are

being translated into HTML links to non-existent wiki pages.  I've
ticked the 'Use HTML as wiki markup language' configuration option 
to

allow me to use pure HTML in my wiki pages but I've been unable to
find a way of disabling wiki links [...]. Does anyone know how I 
can

do this?

Cheers, Stuart
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Weird I just used
nowiki

h2this is a footnote /h2
[Footnote|http://localhost:8080/wikiedit]

/nowiki

and the link is not activated i just get plain 
[Footnote|http://localhost:8080/wikiedit]


I used Fossil version [b6a7e52c93] 2012-08-22 11:51:01
--
Rene
___
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] Is there a way to disable wiki links when using HTML?

2012-08-20 Thread rene
 nowiki? 
On Tue, 21 Aug 2012 05:10:04 +0200, fossil-users-boun...@lists.fossil-scm.org 
wrote:
 Hi
 
 The text in my HTML wiki pages contains square brackets and they are
 being translated into HTML links to non-existent wiki pages.  I've
 ticked the 'Use HTML as wiki markup language' configuration option to
 allow me to use pure HTML in my wiki pages but I've been unable to
 find a way of disabling wiki links [...]. Does anyone know how I can
 do this?
 
 Cheers, Stuart
 ___
 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] The future of markdown-in-fossil

2012-08-03 Thread Rene

On 2012-08-03 11:53, Michal Suchanek wrote:
On 3 August 2012 11:23, Remigiusz Modrzejewski l...@maxnet.org.pl 
wrote:


On Jul 30, 2012, at 19:43 , Gautier DI FOLCO wrote:


2012/7/30 Bill Burdick bill.burd...@gmail.com


I'd like to see it included, as well!



I'd like it too, it will be easier for beginnes (like me!).


+1


Why markdown and not one of the dozens of other wiki syntaxes?

I don't find wiki syntaxes really easy. Maybe a bit easier to type
than HTML but definitely not easy to read or remember, especially
since there are dozens of slightly (and not so slightly) different
variants.

Note there are JavaScript hacks for interpreting random wiki syntax 
so

you can have markdown interpreted without any direct support in
fossil.

Thanks

Michal
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Nice things are starting to heat up :-) let me throw some oil on the 
fire.




I don't find any wiki syntaxes to be what you need. At one point they 
all fall short.
However writing html isn't my favourite therapy and there a wiki syntax 
can be handy.


I'm quite pleased as a wiki language takes 80% of my hands.

The advantage of this particular implementation is that it is C coded 
and that the license is compatible with fossil.

And with Nataschsa's extension it becomes workable.

I rather write

![class:centered_image](branch05.gif =485x177)\
figure 5

  {on a side note I would prefer this 
![class:centered_image,=485x177](branch05.gif)\
   because a pure markdown implementation would still get the 
link right only the description
   is strange. and in The above example a pure markdown will 
not get the link right}

then

centertable border=1 cellpadding=10 hspace=10 vspace=10
trtd align=center
img src=branch05.gif width=485 height=177br
Figure 5
/td/tr/table/center

But this could have been written like

table class=table_centered_imagetrtdimg src=branch05.gif 
width=485 eight=177brFigure 
5/td/tr/table


or maybe like
div class=centered_image img src=branch05.gif width=485 
eight=177brFigure 5/div


in general tag languages can get rather verbose!
But still the Markdown version ( and most wiki's), IMHO, is, slightly, 
better readable.


Your suggestion to use javascript to display wiki markup is possible.
and interesting

what do we do with the javascript library?
it is not part of your project which will deliver fantastic software 
without markdown.



So is it part of fossil?
If you clone the repo than you want the same kind of services as the 
original.

How can that be done in a consistent manor?
It gives me a headache to think that out.
Of course you don't want MarkDown but you want MarkUp. Stephen will say 
that you have to resort to JSON.

maybe that is the right answer.

On his site http://daringfireball.net/projects/markdown/ the markdown 
inventor says
 The idea is that a Markdown-formatted document should be 
publishable as-is, as plain text,
  without looking like it’s been marked up with tags or formatting 
instructions.

I think it looks awkward any way.
--
Rene
___
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] usability of in-project documentation

2012-08-03 Thread Rene
 stylistic-only header and content div which
implements the margin and possibly background in place of the body
element would work wonderfully.
Is there any chance that the in-repo doc serving is polished at least
to the point that it's usable by unsuspecting people
just browsing the
web without realizing this is in fact a fossil repository. As it is
the fossil served pages need to be used very carefully because they
are quite fragile compared to what you would expect from, say, static
directory structure served off apache.



What do you mean by fragile fossil served pages



I am not opposed to writing patches, and all these issues are quite
trivial but I am also aware that some patches are rotting in the
fossil tickets for years so I guess patches are not what gives you
fixed fossil. I can apply them locally but it does not help if I want
other people to be able to mirror my repo or use chiselapp, or
whatever. And I need to rebuild for every architecture myself since
whatever official packages exist will never get my local patches.



Hm, You are a bit of a sceptic. Even before you tried you are
convinced that you fail. Just fill in the developer form.
Send it to Richard. Even if your patches  won't get in the trunk.
 Then it still will be in the official repository. and you are welcome
 to update your branch. And everyone who clones the fossil
 repo get your branch. You could even make the better documentation
part of your repo As I said I have used docbook, lyx to generate
documentation from de Jim Schimpf book and put that in fossil.


Thanks

Michal
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


--
Rene

___
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] usability of in-project documentation

2012-08-03 Thread Rene

On 2012-08-03 18:15, Stephan Beal wrote:

On Fri, Aug 3, 2012 at 6:06 PM, Rene renew...@xs4all.nl [1] wrote:


I'm not sure I follow you. again fossil has evolved this way. You
have a wonderful opportunity to take fossil system and build ...you
can set the the first page to anything you want. including
index.html


He was referring to fossil's (possibly undocumented) feature that if 
a

/doc dir has a file named index.html then it is served as-is,
without any of the normal bling wrapped around it. i only recently
learned about it.


That is not only for a directory called /doc. If I make a directory 
hans i get also

No such document: hans/index.html

However as you call the doc page it has 2 forms
** WEBPAGE: doc
** URL: /doc?name=BASELINE/PATH
** URL: /doc/BASELINE/PATH
**
since name is nonexisting and path also
the default is used tip/index.wiki
and then you get
No such document: index.wiki

If you do have a path /doc/trunk/hans/
 I am without words by the fact that is does come back with

No such document: hans/index.html

while the code says:
doc_not_found:
  /* Jump here when unable to locate the document */
  db_end_transaction(0);
  style_header(Document Not Found);
  @ pNo such document: %h(PD(name,tip/index.wiki))/p

Which probably means that it is not coming there! ;-)


 --
- stephan beal
http://wanderinghorse.net/home/stephan/ [2]
http://gplus.to/sgbeal [3]


Links:
--
[1] mailto:renew...@xs4all.nl
[2] http://wanderinghorse.net/home/stephan/
[3] http://gplus.to/sgbeal


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


[fossil-users] future of markdown

2012-08-02 Thread Rene

Well I have been playing with the markdown implementation at
http://fossil.instinctive.eu/fossil-scm and libsoldout.

My understanding is that the fossil markdown implementation is pure 
one.


I used the html renders which are included in libsoldout with several 
extensions enabled.


I recommend to include most if not all extensions. these are (copied 
verbatim from libsoldout readme.html)


libsoldout extension: PHP-Markdown-like tables

Tables are one of the few extensions that are quite difficult and/or 
hacky to implement using vanilla Markdown parser and a renderer. Thus a 
support has been introduced into the parser, using dedicated callbacks:


table_cell, which is called with the span-level contents of the 
cell;

table_row, which is called with data returned by table_cell;
table, which called with data returned by table_row.

The input format to describe tables is taken from PHP-Markdown, and 
looks like this:


header 1| header 2  | header 3  | header 4
|:-:|--:|:--
first line  |   centered| right-aligned | left-aligned
second line |   centered|:   centered  :| left-aligned
third line  |: left-aglined | right-aligned | right-aligned :
column-separator | don't need | to be | aligned in the source
| extra speratators | are allowed | at both ends | of the line |
| correct number of cell per row is not enforced |
| pipe characters can be embedded in cell text by escaping it: \| |


Discount-ish renderer

discount_html and discount_xhtml implement on top of the standard 
markdown some of the extensions found in Discount.


Actually, all Discount extensions that are not provided here cannot be 
easily implemented in libsoldout without touching to the parsing code, 
hence they do not belong strictly to the renderer realm. However some 
(maybe all, not sure about tables) extensions can be implemented fairly 
easily with libsoldout by using both a dedicated renderer and some 
preprocessing to make the extension look like something closer to the 
original markdown syntax.


Here is a list of all extensions included in these renderers:

image size specitication, by appending  =(width)x(height) to the 
link,

pseudo-protocols in links:
abbr:description for abbr title=description.../abbr
class:name for span class=name.../span
id:name for a id=name.../a
raw:text for verbatim unprocessed text inclusion
class blocks: blockquotes beginning with %class% will be rendered 
as a div of the given class(es).


Natasha's own extensions

nat_html and nat_xhtml implement on top of Discount extensions some 
things that I need to convert losslessly my existing HTML into extended 
markdown.


Here is a list of these extensions :

id attribute for headers, using the syntax id#Header text
class attribute for paragraphs, by putting class name(s) between 
parenthesis at the very beginning of the paragraph
ins and del spans, using respectively ++ and -- as delimiters 
(with emphasis-like restrictions, i.e. an opening delimiter cannot be 
followed by a whitespace, and a closing delimiter cannot be preceded by 
a whitespace).

plain span without attribute, using emphasis-like delimiter |





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


[fossil-users] Markdown question

2012-08-01 Thread Rene
So I converted all the embedded documentation to markdown and on a, 
cursory, inspection it looks the same.

I found one peculiar thing which is reported to Natacha.

I think I like it.

There are extensions to markdown syntax. but I'm not sure how they can 
be used. example


centertable border=1 cellpadding=10 hspace=10 vspace=10
trtd align=center
img src=branch05.gif width=485 height=177br
Figure 5
/td/tr/table/center

is translated in

  
  ![](branch05.gif)\
   Figure 5
  

I'm missing height and width here. In the soldout documentation it is 
mentioned that

Discount-ish renderer

discount_html and discount_xhtml implement on top of the standard 
markdown some of the extensions found in Discount.


image size specitication, by appending  =(width)x(height) to the 
link,

pseudo-protocols in links:
abbr:description for abbr title=description.../abbr
class:name for span class=name.../span
id:name for a id=name.../a
raw:text for verbatim unprocessed text inclusion
class blocks: blockquotes beginning with %class% will be rendered 
as a div of the given class(es).


Are these available?  If so what is the syntax I tried:
![](branch05.gif)=(485)x(177)\
![](branch05.gif =(485)x(177))\
![]=(485)x(177)(branch05.gif )\
![=(485)x(177)](branch05.gif )\


I like this feature because it is much less to specify and given that 
you can add class and id attributes CSS can be used for style.

If I only new how to use it :-)

---
Wiki pages
--

When I add markdown markup to a wiki-page e.g.
I add:   **rene de Zwart**
This  rendered as **rene de Zwart** .

What is the strategy with respect to wiki pages and the use of 
markdown?



--
Rene
___
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] The future of markdown-in-fossil

2012-07-30 Thread Rene

On 2012-07-30 10:41, Natacha Porté wrote:

Hello,

I don't want to look impatient, and I personally hate to be 
constantly
reminded about something that hasn't actually left my mind, so I'm a 
bit
reluctant to send e-mails like this one. All my apologies if I'm 
doing

it wrong.

So my point is only to remind you all that I'm still committed to 
make
the fossil-in-markdown thing going forward, and I'm eagerly waiting 
any

instructions on what to do about it next.

Currently the code is in a new branch off a clone of the official 
fossil

repository, available at
http://fossil.instinctive.eu/fossil-scm/timeline?r=markdown

There is also a live demo (dedicated repository served using a fossil
compiled off this branch) at
http://fossil.instinctive.eu/markdown-examples/doc/tip/README.mkd

What is done:
  + complete and seamless integration of the markdown engine into 
fossil

(e.g. using fossil blobs as dynamic buffers),
  + support of markdown embedded documentation (.markdown and .mkd
extensions), using current fossil style,
  + regular merge of latest changes from trunk.

What remains to do:
  + review my code to ensure it meets fossil level of quality,
  + format it using fossil code style if needed,
  + any other code change that comes up during the review.

I'm still willing to perform any maintenance needed on the markdown
library code and/or the glue between it and fossil, for as long as I
can. I would also gladly handle any knowledge-transfer needed to 
prevent
myself from being a single point of failure in the maintenance of 
that

code.



Thanks for your interest,
Natacha Porté
Are we going to move all the wikipages to markdown? I converted the 
attached file to markdown it wasn't to difficult with

bit of sed, awk and pandoc.
What do you see as an advantage of markdown compared to the current 
wiki syntax?


--
Reneadd
---

The often used `add` command is how you tell **fossil** to include a
(usually new) file in the repository.

**fossil** is designed to manage artifacts whose role is being source
for something, most probably software program code or other text. One
can imagine all kinds of ways to let fossil know just what constitutes a
source; the simplest and most direct way it *actually* finds out is when
you give it the ` fossil add path ` command.

It's reasonable to think of the [`import`](./cmd_import.wiki) and
[`clone`](./cmd_clone.wiki) commands as very high-powered versions of
the `add` command that are combined with system level file movement and
networking functions. Not particularly accurate, but reasonable.

Typing `fossil add myfile` causes fossil to put *myfile* into the
repository at the next `commit`provided you issue it from within the
source tree, of course.

By contrast, `fossil add mydirectory` will add ***all*** of the files in
*mydirectory*, and all of its sub-directories. In other words, adding a
directory will recursively add all of the directory's file system
descendants to the repository. This was an oft-requested feature,
recently implemented. It is very flexible. Only when you add a directory
do you get the recursive behavior. If you are globbing a subset of
files, you won't get the recursion.

Realize that the repository is not changed by the `add` command, but by
the `commit` command. `add` *myfile* tells **fossil** to mark *myfile*
as part of the repository. Only commands which actually manipulate the
content of the repository can physically put source artifacts into (or
remove them from) the repository.

Just to keep things symmetric, there are also commands that can
manipulate the repository without affecting the checked-out sources (see
[fossil pull](./cmd_pull.wiki), for instance.)

It's worthwhile reiterating that **fossil** is storing the content of
source artifacts and the names of the artifacts in their native
habitat, a sequence of temporal slices (aka versions) of the state
of the whole system, and a set of unique identifiers. When you add a
file to a repository, the *path* to the file is a part of the *name* of
the file. There is a mis-match between the file system's idea of a
directory (a file containing pointers to files) and fossil's idea (a
substring of the name of the artifact.) The names of the artifacts
specify their relative locations because of the way the file system
interprets them. If you don't keep this in mind, you may fool yourself
into thinking **fossil** somehow stores directories. It doesn't, and
believing it does will eventually confuse you.

See also: [fossil rm](./cmd_rm.wiki), [fossil
import](./cmd_import.wiki), [fossil clone](./cmd_clone.wiki), [fossil
commit](./cmd_commit.wiki), [fossil pull](./cmd_pull.wiki), [fossil
setting](./cmd_settings.wiki) (async), [Reference](./reference.wiki)
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] asciidoc

2012-07-29 Thread Rene
One of the things I would like from the documentation is that it can be 
provide in other formats. I haven been playing with asciidoc and a 
utility called pandoc. A converter from many things to many things. HTML 
to asciidoc is one of the possibilities.


I converted 3 embedded documentation files tech_overview.wiki, 
delta_encoder_algorithm.wiki en delta_format.wiki and created a docbook 
manifest which looks like:


= Several documents combined
Joe Bloggs
v1.0, 12-Aug-03
:numbered:
:doctype: book

include::tech_overview.txt[]

include::delta_format.txt[]

include::delta_encoder_algorithm.txt[]



and a reasonable document was generated. Reasonable because
1) obvious the conversion wasn't 100 %
2) these documents were not made with an eye for book integration
3) Links were difficult to reproduce. I had to make them absolute 
referencing


I have been playing with lyx and docbook but those solutions are using 
extern generated docs and allow you to show them in fossil. This could 
work from the embedded html documentation.
Although one document had mixed html with wiki syntax and that caused 
some grief in the conversion. :-)


A goal for me is to have an updated lyx fossil manual in fossil and be 
able to use that to produce a pdf. I'll ponder a bit more about that.


--
Rene
___
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] Markdown engine integrated into fossil

2012-07-10 Thread Rene

On 2012-07-09 15:41, Richard Hipp wrote:

On Mon, Jul 9, 2012 at 3:31 AM, Baptiste Daroussin
baptiste.darous...@gmail.com [6] wrote:


2012/6/7 Richard Hipp d...@sqlite.org [1]:


My priority is to get WYSIWYG wiki editing going, at which point the
underlying wiki formatting language becomes largely irrelevant, no?
Far from criticising your decision to write such an editor, I offer the 
observation that


If a markdown jquery editor would be used,
then the available markdown library could be used for rendering,
jquery for client side Since we are using it anyway.
Those wysiwyg markdown editors are available and leave us only with 
interfacing/integration.

The maintenance burden on the editor is not with us
And, maybe,  we can offer a migration path for existing wiki and/or 
embedded documentation?



D. Richard Hipp
d...@sqlite.org [5]


--
Rene
___
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] Thoughts about the Custom Pages feature

2012-07-07 Thread Rene

On 2012-07-07 13:04, Gary_Gabriel wrote:

Hi Stephan and List,

 You posted some good ideas and took on the difficult job of 
beginning

the development spec. The Münich event addressed some of the points
you consider below. As you remember the event occasionally split into
groups and Richard took the time to discuss and clarify a few of the
points below in a small group.

 For 1). Another migration path that natively supports this method
is the source documentation method used by SQLite. As you know; 
SQLite
documentation is written in the c sources and Tcl scripts pull it 
into

the finished documentation form. These docs and scripts are available
on the docs respository. Generating source documentation would be an
alternative to 1). Richard was kind enough in one of these small
groups to outline the basics of this system. I noted the originating
files and could forward it if desired.


2) Custom pages serve output in one of the following forms:



If TH1 is not powerful enough for this case (i don't know if it is
or isn't, or if it is easy enough to extend), the next obvious
choice would be the TCL support (which is, AFAIK, still living in
its own branch?).


 For 2) Joe Mistachkin's previous answer in this thread simplifies
these considerations. According to the information given at the 
Munich

Event enabling Tcl will either enable the system Tcl or the
abbreviated, small footprint version Jim.
 Link: Jim Tcl Jim Home
http://jim.tcl.tk/index.html/doc/www/www/index.html [1] . These
options can provide the needed scripting support.

 Tcl also offers a possible alternative to jquery. tDom http
[2]://tdom.github.com/ contains XPath which queries the Dom and parse
Html. I also agree that Tcl use should be pursued.

 - Gary Gabriel



Links:
--
[1] http://jim.tcl.tk/index.html/doc/www/www/index.html
[2] http://wiki.tcl.tk/http
What is essential to understand in the consideration between TCL and 
Jquery is that

  * TCl is a server side language
  * jQeury(javascript) is a client side (browser) language

I think it is
  * not a tcl or jquery(=javascript) question
  * more a tcl and jquery question
  * or you could go for javascript as server and client language,
well you could have if we started with that language.
  * going al the way with tcl(also on the client side) seems to fight
against the direction where most projects are moving to (e.g. more 
javascript).
It will be much effort to get tcl at a level where it can compete 
with javascript (facilities)

on the client side.
--
Rene
___
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] trouble figuring out ssh

2012-06-16 Thread rene

On Sat, 16 Jun 2012 04:07:24 +0200, fossil-users-boun...@lists.fossil-scm.org 
wrote:
 Hey guys,
 
 I have a fossil repository I would like to push to a remote url via ssh.
 What steps am I missing?
 
 1. (remote)  $ cd repo-dir; fossil init repo.fsl
 2. (local) $ cd repo-dir; fossil open repo.fsl; fossil push
 ssh://user@url:port//path-to/repo.fsl
 
 I get a password prompt and output indicates bytes are transferred, but
 on the remote side, nothing. What am I doing wrong?
 
 thanks
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
you have to set the ssh setting to path/plink -T (win). Something with 
preventing interactieve Shell. It has been discussed on the list .
René
___
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 vs. Windows

2012-06-13 Thread Rene

On 2012-06-12 00:36, Mike Meyer wrote:

My boss just sent me mail that said, and I quote:

   Fossil sucks and is actually not compatible with Windows

I'm pretty sure I've seen people here who use it no Windows, and
there's a Windows distribution, which makes me think he's wrong.

His problem is that he has lots of spaces in his directory and file
names, and we (Windows is a third-line gaming platform for me, but I
try...) couldn't figure out how to get such passed to fossil as file
names, instead of broken up by command.com or whatever does that job
these days. Quoting again:

If I try adding parentheses or quotes then the ignorant
application bombs out.

So, anyone got advice on this? Maybe a GUI that works with the fossil
Windows binary from fossil.org?

Thanks,
mike

Mike,

I think he doesn't want to move to fossil. And all the arguments you 
make will not help.

He keep up making arguments why it sucks
Better sit down with him and ask him what the problem is, maybe first a 
few pints of strong lager.
Maybe you selected the tool without him participating (enough) in the 
decision.


It is not a technical issue.
--
Rene

___
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] Update of checkout after push operations.

2012-06-13 Thread Rene

On 2012-06-13 19:07, Ron Wilson wrote:
On Thu, Jun 7, 2012 at 5:54 PM, John Found johnfo...@evrocom.net 
wrote:
I have one central repository, that I use as an archive for a web 
site. The web site root directory is actually checkout of the trunk

branch of the repository.
I am using lighttpd server on Linux and fossil as a CGI script in 
very standard manner.
So, I need when I make a push (or commit with autosync) from a 
remote computer to the central repository, some script  to make 
fossil update to the checkout directory and this way to update the 
content of the web site.


Is it possible at all? Any Ideas?


Last I knew, the closest Fossil has to hooks is an RSS feed. You can
run a RSS monitor that looks for events of interest, then triggers
actions based on those events.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Hm wild idea I don't know if it is practical

cgi1 script monitor if a push or commit command is given
if so set a flag and connect to cgi2(your original script)
after the operation do a checkout.
--
Rene
___
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] Update of checkout after push operations.

2012-06-13 Thread Rene

On 2012-06-13 19:07, Ron Wilson wrote:
On Thu, Jun 7, 2012 at 5:54 PM, John Found johnfo...@evrocom.net 
wrote:
I have one central repository, that I use as an archive for a web 
site. The web site root directory is actually checkout of the trunk

branch of the repository.
I am using lighttpd server on Linux and fossil as a CGI script in 
very standard manner.
So, I need when I make a push (or commit with autosync) from a 
remote computer to the central repository, some script  to make 
fossil update to the checkout directory and this way to update the 
content of the web site.


Is it possible at all? Any Ideas?


Last I knew, the closest Fossil has to hooks is an RSS feed. You can
run a RSS monitor that looks for events of interest, then triggers
actions based on those events.
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org

http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

You could make a second cgi script that will do a checkout.
and after a commit
do http://yoursever/checkout.cgi

It has the added benefit that you can save your work from location 1.
Go to location 2 finalize the work and publish then.


--
Rene
___
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] Building portable fossil

2012-06-02 Thread Rene

On 2012-06-02 03:16, Jacek Cała wrote:
Thank you for the hint but it doesn't help. This time I get with my 
binary:


FATAL: kernel too old
Segmentation fault

while the official one works fine.

  Jacek

2012/6/2 Richard Hipp d...@sqlite.org:



On Fri, Jun 1, 2012 at 8:34 PM, Jacek Cała jacek.c...@gmail.com 
wrote:


 Hi,

I built fossil on Ubuntu with a standard configuration 
(./configure;
make) but when moved and ran the binary on fedora it complained 
that

there's no libssl.so.1.0.0. Indeed, on the fedora is no
libssl.so.1.0.0 but libssl.so.

When I turned off the ssl support (./configure --with-ssl=none; 
make)
and rebuilt, it complained on fedora about missing versions of 
glibc:


 /lib/libc.so.6: version `GLIBC_2.7' not found
 /lib/libc.so.6: version `GLIBC_2.15' not found



Try:

./configure --with-ssl=none --static; make

Then run strip fossil when done.




What is the trick to build a portable binary like the one 
officially

available on the website?

Also, I noticed that my binary is over 3.5MB whereas the official 
one

takes only 1.6MB. Any hints appreciated.

 Cheers,
 Jacek
___
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



./configure --with-openssl=none --static; make
   
then it says:

bld/shell.o: In function `find_home_dir':
/home/renez/src/fossil/./src/shell.c:2700: warning: Using 'getpwuid' in 
statically linked applications requires at runtime the shared libraries 
from the glibc version used for linking

bld/http_socket.o: In function `socket_open':
/home/renez/src/fossil/./src/http_socket.c:151: warning: Using 
'gethostbyname' in statically linked applications requires at runtime 
the shared libraries from the glibc version used for linking


libnsl and libc are necessary to run this executable.
That is probably also true for the fossil executable  from the website.

http://www.kernel.org/pub/software/libs/glibc/hjl/compat/ tells how to
compile for  a version of glibc


I think we need to look at environments to see what causes the 
differences

Yours are
   1) Ubuntu version ?? libc  ??
   2) Fedora version ?? libc  ??
Mine
   1) Arch linux latest(64 bits that might add something to the 
size)

  libc (just type /lib/libc.so.6  and press enter)
  GNU C Library stable release version 2.15, by Roland McGrath 
et al

  Compiled by GNU CC version 4.7.0 20120324 (prerelease).
  Compiled on a Linux 3.3.0 system on 2012-03-29.
  Available extensions:
 crypt add-on version 2.1 by Michael Glad and others
 GNU Libidn by Simon Josefsson
 Native POSIX Threads Library by Ulrich Drepper et al
 BIND-8.2.3-T5B
  libc ABIs: UNIQUE IFUNC
   2) uclibc 0.9.3?

Richard
debian ?? libc ??

As to size
Well static means include everything and the kitchen sink in the 
executable.

It tends to get bigger. Strip will remove quite a bit of symbols.
Don't use strip if you want to use a debugger.

Mine is 6.5M before strip. After strip 2.2M (64 bits)

If I compile against uclibc(=32 bits) I get 3.6M after strip 1.3M after 
gzip -9 638K.


If you want de uclibc executable drop me a line.

--
Rene

___
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] Side-by-side wiki editing?

2012-04-23 Thread Rene

On 2012-04-23 18:25, Cunningham, Robert wrote:

I'm evaluating Trac vs. Fossil for use within our small engineering

[snip]

FWIW, while searching for other implementations of similar
capabilities I stumbled across Wiky
(http://goessner.net/articles/wiky/ [2]), which could permit such a
feature to be implemented using only client-side code. (Not that
that's an issue for Fossil, where the entire local UI server is
client side!)

TIA,

-BobC



Links:
--
[1] http://trac.edgewall.org/wiki/TracWiki
[2] http://goessner.net/articles/wiky/
The wiky thing will not render the same as fossil. probably confusing 
your non-technical persons even more!


maybe a webpage wiki_preview could be added which is in essence a call 
to wiki_convert.
Then with a bit of ajax you can sent the buffer to the server and get 
the wiki stuff back.

The ajax thing could be small enough to fit in the header.

The short answer is it is not in fossil.

--
Rene
___
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] Side-by-side wiki editing?

2012-04-23 Thread Rene

On 2012-04-23 20:08, Rene wrote:

On 2012-04-23 18:25, Cunningham, Robert wrote:

I'm evaluating Trac vs. Fossil for use within our small engineering

[snip]

FWIW, while searching for other implementations of similar
capabilities I stumbled across Wiky
(http://goessner.net/articles/wiky/ [2]), which could permit such a
feature to be implemented using only client-side code. (Not that
that's an issue for Fossil, where the entire local UI server is
client side!)

TIA,

-BobC



Links:
--
[1] http://trac.edgewall.org/wiki/TracWiki
[2] http://goessner.net/articles/wiky/

The wiky thing will not render the same as fossil. probably confusing
your non-technical persons even more!

maybe a webpage wiki_preview could be added which is in essence a
call to wiki_convert.
Then with a bit of ajax you can sent the buffer to the server and get
the wiki stuff back.
The ajax thing could be small enough to fit in the header.

The short answer is it is not in fossil.


I just tested my idea
add to wiki.c

/*
** WEBPAGE: wikipreview
** URL: /wikipreview
*/
void wikipreview_page(void){
  Blob wiki;
  char *zBody = (char*)P(w);

  if( zBody ){
zBody = mprintf(%s, zBody);
  }
  login_check_credentials(); /* are those really needed */
  if( zBody==0 ){
zBody = mprintf(iEmpty Page/i);
  }
  blob_zero(wiki);
  blob_append(wiki, zBody, -1);
  wiki_convert(wiki, 0, 0);
  blob_reset(wiki);
}

compile run fossil ui and do something like
curl --data 'w=
  *  hello
  *  world

Now is the time for all good man ...
' http://localhost:8080/wikipreview
response is
ullihello
/liliworld/li/ul

pNow is the time for all good man ...
/p

with this inplace you can build your side by side editing.
--
Rene
___
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] Compiling with digital Mars compiler

2012-03-14 Thread Rene

On 2012-03-14 19:36, Rene wrote:

I am checking if I could get polarssl compiled with dmc.
And to see if it would work with fossil compiled with dmc (and if
that still worked!).

The polarssl library compiling wasn't much of a problem. Mainly
creating a makefile for gnu make and
in 2 places I had to change
#ifdef _WIN32
in
#if defined(_WIN32) || defined(__DMC__)
in order to get vsnprintf and family recognized.


Compiling fossil
I ran  into problems with winhttp.c because it uses
SERVICE_DESCRIPTION and dmc uses an old win32/winsvc.h
I copied winsvc.h from mingw and that worked.

Now I'm trying to compile sqlite3.c and ran into
  { AreFileApisANSI, (SYSCALL)AreFileApisANSI, 
0 },

   ^
 ..\src\sqlite3.c(32280) : Error: constant initializer 
expected

  pMap = osMapViewOfFile(hMap, FILE_MAP_WRITE | FILE_MAP_READ,
^
  ..\src\sqlite3.c(34886) : Error: ')' expected

And I'm totally lost. Anyone a clue?

Thanks


if I change the 2 offending lines like so:

#define osAreFileApisANSI ((BOOL(WINAPI*)(VOID))aSyscall[0].pCurrent)
#define osAreFileApisANSI ((BOOL(WINAPI*)(void))aSyscall[0].pCurrent)
#define osMapViewOfFile 
((LPVOID(WINAPI*)(HANDLE,DWORD,DWORD,DWORD,SIZE_T))aSyscall[47].pCurrent)
#define osMapViewOfFile 
((LPVOID(WINAPI*)(HANDLE,DWORD,DWORD,DWORD,DWORD))aSyscall[47].pCurrent)


then sqlite3.c compiles.
I'm do not understand why that works!
--
Rene
___
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 thinks my configure script is binary

2011-07-22 Thread Rene
Fossil thinks my configure script is binary. This probably due
to one or more chars like ^H or something like that.

Is there a way to convince fossil that it is not binary?
And I don't want to change the configure script!

-- 
Rene
___
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] question

2011-07-21 Thread Rene
On Wed, 20 Jul 2011 20:10:45 -0400, Richard Hipp wrote:
 On Wed, Jul 20, 2011 at 5:15 PM, Zhang, Jenny  wrote:

 HI,

  

 I WOULD LIKE TO KNOW IF FOSSIL CAN HANDEL VERSION CONTROL FOR
 BINARY FILES?

 Yes.  For example I store all of my presentation slides (odp files
 generated by open office) in a Fossil repository.  There are also
 some binary files in the Fossil's self-hosting repository.  For
 example, the Fossil logo (a gif image) is stored in the repo: 
 http://www.fossil-scm.org/fossil/artifact/0fa38d60655 [3]
OK it stores binary files. does  it make deltas of  the versions or
is every binary file just stored as is?   

 WHERE IS YOUR SUPPORT WEBSITE FOR SUBMIT QUESTION AND GET HELP?

 The fossil-users mailing list fossil-users@lists.fossil-scm.org [4]
   

  



 Links:
 --
 [1] mailto:d...@sqlite.org
 [2] mailto:jenny.zh...@tqs.com
 [3] http://www.fossil-scm.org/fossil/artifact/0fa38d60655
 [4] mailto:fossil-users@lists.fossil-scm.org

-- 
Rene
___
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] tar file is different then zip file

2011-07-21 Thread Rene
On Wed, 20 Jul 2011 16:44:17 -0700 (PDT), Gé Weijers wrote:
 I have submitted a bug report on this issue. The 'tar' format has
 been extended over the years, and it's now a fairly interesting mess.
 File names over 100 bytes are split into two. Posix requires this to
 be done at a '/' (which you can delete). Fossil splits it anywhere,
 which confuses all the extraction utilities I've tried.

 If the splitting position is calculated correctly Fossil should be
 able to support file names that:

 - have = 256 characters.
 - have a slash no further than 100 characters from the end.
 - have a slash no further than 155 character from the beginning.
 - contain only ASCII characters if standard compliance is required.

 The 2001 Posix.1 standard defines extensions that can support any
 length of file name, encoded in UTF8, any size file (tar is otherwise
 limited to 8GB), and all kinds of other stuff. It's known as Pax
 Interchange Format. GNU and FreeBSD tar understand these extensions.
 The pax utility on Linux and FreeBSD does not implement it (beats
 me).

 Gé

 On Mon, 18 Jul 2011, Rene wrote:

 On Mon, 18 Jul 2011 16:15:50 -0400, Richard Hipp wrote:
 On Mon, Jul 18, 2011 at 4:09 PM, Rene  wrote:

 It must be something specific for this repo because if I do a
 tarball
 from my local
 copy of fossil (hence the same version) I don't see multiple
 directories.

 What version of Fossil are you running on the server, and what
 version are you running locally?


 odd the command
 fossil tarball ffd22b79fe24110d rene.tar --name rene
 does create a single directory rene.
 with and without the --name option it is still one single directory
 -- Rene
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Thanks for the bug report. I wonder are you able to get the same 
(mis)behavior
out of fossil as I did out of my repository?
-- 
Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] added a javascript file on a branch and loading in the header works

2011-07-21 Thread Rene


I mucked around with javascript and fossil on a branch (owncheckout) in 
the
repo on http://chiselapp.com/user/renez/repository/cvs2scm/.

what surprised me is that the reference in the header to 
$home/doc/tip/ext/syn.js
works.

When by the browser asked for the file $home/doc/tip/ext/syn.js. How 
does fossil
choose ext/syn.js  when it is created on the branch owncheckout and on 
the trunk?



-- 
Rene
___
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] added a javascript file on a branch and loading in the header works

2011-07-21 Thread Rene
On Thu, 21 Jul 2011 13:04:13 -0400, Richard Hipp wrote:
 On Thu, Jul 21, 2011 at 9:22 AM, Rene  wrote:

 When by the browser asked for the file $home/doc/tip/ext/syn.js.
 How
 does fossil
 choose ext/syn.js 

 tip means choose the most recent check-in.  trunk means choose
 the most recent check-in on the trunk branch.  otherbranch means
 choose the most recent check-in on otherbranch.  version-3.7.6
 means us specifically the version tagged with version-3.7.6. 
 2010-01-01 means use the first check-in on or after 2010-01-01
 00:00:00.000.  trunk:2011-04-01 means choose the first trunk
 check-in after 2011-04-01.  And so forth
   
thanks. I wasn't aware of those possibilities. I guess I was just
lucky that the highlighting worked.

But to be absolutely sure, if I do a check-in on the trunk (But still 
don't add
ext/sym.js) ext/syn.js won't be found?
-- 
Rene
___
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] The fossil service command

2011-07-19 Thread Rene
Why not make an option e.g.
   fossil server -service?
-- 
Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] tar file is different then zip file

2011-07-18 Thread Rene
I have converted a cvs repo to fossil.
I checked if the tag release_v5_1_0 would yield the same number of 
files

as you can see from this timeline fragment it is version 186f4fdca4
[186f4fdca4] brokerhost geintroduceert

* Upd mxflex/gbo/app_po.inc: 1.39
* Upd mxflex/gbo/app_bo.inc: 1.36 (user: renez, tags: trunk, 
release_v5_1_0)

 mxflex/gbo/app_bo.inc   [diff]
 mxflex/gbo/app_po.inc   [diff]

The tar file contains 2 directories
   mxflex-186f4fdca41c087b(has 991 files)  xflex-186f4fdca41c087b(has 2 
files)
while the zip file contains only one directory
   mxflex-186f4fdca41c087b(has 993 files)

The tar file doesn't produce the release while the zip does.


-- 
Rene
___
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] tar file is different then zip file

2011-07-18 Thread Rene
On Mon, 18 Jul 2011 15:38:07 -0400, Richard Hipp wrote:
 On Mon, Jul 18, 2011 at 3:32 PM, Rene  wrote:

 I have converted a cvs repo to fossil.
 I checked if the tag release_v5_1_0 would yield the same number of
 files

 as you can see from this timeline fragment it is version
 186f4fdca4
        [186f4fdca4] brokerhost geintroduceert

 * Upd mxflex/gbo/app_po.inc: 1.39
 * Upd mxflex/gbo/app_bo.inc: 1.36 (user: renez, tags: trunk,
 release_v5_1_0)

     mxflex/gbo/app_bo.inc   [diff]
     mxflex/gbo/app_po.inc   [diff]

 The tar file contains 2 directories
   mxflex-186f4fdca41c087b(has 991 files)
  xflex-186f4fdca41c087b(has 2
 files)
 while the zip file contains only one directory
   mxflex-186f4fdca41c087b(has 993 files)

 The tar file doesn't produce the release while the zip does.

 Perhaps the long filename support in tarball generator is busted. 
 Do the two files that differ have very long pathnames?  Are they the
 longest two pathnames in the repository?
   

 --
 Rene
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org [1]


 
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
 [2]

xflex-186f4fdca41c087b has 
xflex-186f4fdca41c087b/mxflex/xbr_bus/general/gui/smarty/internals/core.assemble_plugin_filepath.php
mxflex-186f4fdca41c087b has 
mxflex-186f4fdca41c087b/mxflex/xbr_bus/general/gui/smarty/internals/core.process_cached_inserts.php
which is 1 shorter.

If I do a tar bal from the head i get this in the top directory
22b79fe24110d  d22b79fe24110d   -ffd22b79fe24110d
x-ffd22b79fe24110d
2b79fe24110d   ex-ffd22b79fe24110d  flex-ffd22b79fe24110d
xflex-ffd22b79fe24110d
79fe24110d fd22b79fe24110d  lex-ffd22b79fe24110d
b79fe24110dffd22b79fe24110d mxflex-ffd22b79fe24110d

while the zip just produces mxflex-ffd22b79fe24110d

It seems how closer I come to the latest the more directories the 
tarbal creates.

It must be something specific for this repo because if I do a tarball 
from my local
copy of fossil (hence the same version) I don't see multiple 
directories.

-- 
Rene
___
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] tar file is different then zip file

2011-07-18 Thread Rene
On Mon, 18 Jul 2011 16:15:50 -0400, Richard Hipp wrote:
 On Mon, Jul 18, 2011 at 4:09 PM, Rene  wrote:

 It must be something specific for this repo because if I do a
 tarball
 from my local
 copy of fossil (hence the same version) I don't see multiple
 directories.

 What version of Fossil are you running on the server, and what
 version are you running locally?
Fossil version 1.18 [5acc3e4cc4] 2011-06-29 17:10:05  the server is my 
localhost
-- 
Rene
___
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] tar file is different then zip file

2011-07-18 Thread Rene
On Mon, 18 Jul 2011 16:15:50 -0400, Richard Hipp wrote:
 On Mon, Jul 18, 2011 at 4:09 PM, Rene  wrote:

 It must be something specific for this repo because if I do a
 tarball
 from my local
 copy of fossil (hence the same version) I don't see multiple
 directories.

 What version of Fossil are you running on the server, and what
 version are you running locally?
Upgrading to Fossil version 1.18 [06e9ca23e7] 2011-07-18 20:04:34
doesn't make a difference
-- 
Rene
___
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] tar file is different then zip file

2011-07-18 Thread Rene
On Mon, 18 Jul 2011 16:15:50 -0400, Richard Hipp wrote:
 On Mon, Jul 18, 2011 at 4:09 PM, Rene  wrote:

 It must be something specific for this repo because if I do a
 tarball
 from my local
 copy of fossil (hence the same version) I don't see multiple
 directories.

 What version of Fossil are you running on the server, and what
 version are you running locally?


odd the command
fossil tarball ffd22b79fe24110d rene.tar --name rene
does create a single directory rene.
with and without the --name option it is still one single directory
-- 
Rene
___
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] Shun old versions of (large) binary files

2011-07-16 Thread Rene
On Sat, 16 Jul 2011 13:36:26 +0200, Remigiusz Modrzejewski wrote:
 On Jul 14, 2011, at 18:17 , Marco Maggesi wrote:

 I use fossil to host some latex documents and it is very practical 
 for me to store in the fossil repository the generated pdf documents 
 together with the latex sources.  However, as the time passes, these 
 old versions lose interest and they make the fossil repository
 uselessly large.  I suppose that a similar problem can arise in 
 other cases.  E.g. when you want to distribute through fossil an up to 
 date compiled version of your software.

 While this could be useful, don't expect current Fossil developers to
 jump on it. It's been stated that Fossil is not a distribution tool,
 neither a package building tool, thus features dedicated to that are
 out of scope. And as there are not many frequent contributors, they'd
 better keep their focus on the things Fossil aims at.

 On the other hand, this is OSS. You can just go for it :)


 Kind regards,
 Remigiusz Modrzejewski



 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
what you could do is serving the documents from outside you repository.

e.g. like the download page for fossil.
The pdf can always be recreated from the sources
-- 
Rene
___
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] optimize size of binary

2011-07-14 Thread Rene
On Thu, 14 Jul 2011 08:03:17 +1000, Steve Bennett wrote:
 On 13/07/2011, at 10:35 PM, Rene wrote:

 On Tue, 12 Jul 2011 14:48:42 +0200, Müller, Rainer wrote:
 Hello, I want to use fossil on an ARM based platform. We have only 
 a
 few MB flash, so i tried to strip the binary - but the best result
 was
 about 1.1MB.

 I read that someone managed to build a 330kB binary, any 
 suggestions
 on this issue? I don't need the bug tracking or wiki feature but i
 doubt they can be deactivated, right?

 Regards, Rainer.

 Development Software Systems
 Festo Gesellschaft m.b.H.
 LINZER STRAßE 227
 Austria - 1140 WIEN

 Firmenbuch Wien
 FN 38435y

 Tel: +43(1)91075-362
 Fax: +43(1)91075-282
 www.festo.at


 I'm not the one who build a small binary. You could try to:

 use ulibc http://www.uclibc.org/  (I'm not sure if fossil will
 compile/work)

 That's won't help. Either uClibc or glibc are going to be linked
 as shared libraries and the size indicated above excludes libc.

 use compression http://upx.sourceforge.net/

 We use squashfs (http://squashfs.sourceforge.net/) on many of our 
 systems.
 Using this approach, all your files, including binaries and shared 
 libraries
 will be compressed in flash. Better than compressing apps one at a 
 time.

 Cheers,
 Steve

 --
 µWeb: Embedded Web Framework - http://uweb.workware.net.au/
 WorkWare Systems Pty Ltd
 W: www.workware.net.au  P: +61 434 921 300
 E: ste...@workware.net.au   F: +61 7 3391 6002





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

if you don't have that kind of control over your phone or tablet the 
individual compression is a nice option.

Anyway it was an interesting exercise.
-- 
Rene
___
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] optimize size of binary

2011-07-13 Thread Rene
On Tue, 12 Jul 2011 14:48:42 +0200, Müller, Rainer wrote:
 Hello, I want to use fossil on an ARM based platform. We have only a
 few MB flash, so i tried to strip the binary - but the best result 
 was
 about 1.1MB.

 I read that someone managed to build a 330kB binary, any suggestions
 on this issue? I don't need the bug tracking or wiki feature but i
 doubt they can be deactivated, right?

 Regards, Rainer.

 Development Software Systems
  Festo Gesellschaft m.b.H.
  LINZER STRAßE 227
  Austria - 1140 WIEN

  Firmenbuch Wien
  FN 38435y

  Tel: +43(1)91075-362
  Fax: +43(1)91075-282
  www.festo.at

  Der Inhalt dieses E-Mails ist ausschliesslich fuer den bezeichneten
 Adressaten bestimmt. Jede Form der Kenntnisnahme,
  Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts
 dieses E-Mails durch unberechtigte Dritte ist unzulaessig. Wir
  bitten Sie, sich mit dem Absender des E-Mails in Verbindung zu
 setzen, falls Sie nicht der Adressat dieses E-Mails sind und das
  Material von Ihrem Computer zu loeschen.

  This e-mail and any attachments are confidential and intended solely
 for the addressee. The perusal, publication, copying or
  dissemination of the contents of this e-mail by unauthorised third
 parties is prohibited. If you are not the intended recipient of this
  e-mail, please delete it and immediately notify the sender.

I'm not the one who build a small binary. You could try to:

use ulibc http://www.uclibc.org/  (I'm not sure if fossil will 
compile/work)
use compression http://upx.sourceforge.net/

with regards to disable wiki and bug tracking you could change relevant 
sections
like

/*
** WEBPAGE: tktview
** URL:  tktview?name=UUID
**
** View a ticket.
*/

if your would  change WEBPAGE: to  WEB: then the fossil preprocessor 
will not
include those functions. It is a bit of work, I don't know if it works.
(I wonder if it could be make configurable e.g. -DWIKI=1 -DTICKET=1 to 
compile
in this subsystems.)
if it will save you a lot of space I don't know.

upx compression is the easiest and simplest and can give you instant 
results.
The other 2 options is a lot of work.
But I find the ulibc one interesting. Maybe I'll give it a try myself 
:-)

-- 
Rene
___
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] optimize size of binary

2011-07-13 Thread Rene
On Wed, 13 Jul 2011 14:39:04 +0200, Müller, Rainer wrote:
 Hello,

 I managed to reduce the size to 850kB by removing help texts, wiki
 and ticket system. Yes, would be nice to make this configurable.

 Regards, Rainer.

strip and compress with upx deliver on linux
   1.0M Jul 13 16:58 fossil
   415k Jul 13 16:58 fossilupx

under windows it became
1.2M Jul 11 11:54 fossil.exe
553K Jul 11 11:54 fossilupx.exe

-- 
Rene
___
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] Possibility of nicer diffs?

2011-06-23 Thread Rene
On Wed, 22 Jun 2011 18:19:17 +0300, Ron Aaron wrote:
 Hi, Rene -

 I tried the instructions here:

 http://fossil-scm.org/index.html/wiki?name=Cookbook#HighlightDiff

 But have not got it to work; perhaps the instructions aren't quite
 correct, I haven't looked into it yet.

 On 06/22/2011 05:30 PM, Rene wrote:

 in the fossil wiki does not work for me, not sure why.

 Which one(s) doesn't work for you? maybe I can be of help.
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

I tested the solution and it works ON Ff 5.0, Chrome latest and IE 6.0

You might have forgotten the CSS. I added the following

style type=text/css
pre.diff {
  color: #000;
}

pre .diff-position {
  display:-moz-inline-stack;
  display:inline-block;
  zoom:1;
  *display:block;
  width: 100%;
  font-style: italic;
  padding: 0.5em 0;
  margin: 0.5em 0;
  border-top: 1px dotted #A2B5CD;
  border-bottom: 1px dotted #A2B5CD;
  color: #A2B5CD;
}

pre .diff-added {
  background-color: #CEFBC3 !important;
}

pre .diff-removed {
  background-color: #F5C2C1 !important;
}
/style



to the header Just after the last link ../
and you have to add the javascript in the footer Before the /body
After the div in the (standard) footer:

/div

script
/*  Simple diff highlighting */
var DiffHighlighter = {

  isDiff : function(s){
return (s.match(/^@@.*@@/m)  s.match(/^[+-]/m));
  },

  highlightElement : function(el){
var s = el.innerHTML;
if (!this.isDiff(s)){
  return;
}
s = s.replace(, lt;);
s = s.replace(/^\+.*$/mg, 'span class=diff-added$/span');
s = s.replace(/^\-.*$/mg, 'span class=diff-removed$/span');
s = s.replace(/^@@.*$/mg, 'span class=diff-position$/span');
s = pre class='diff' + s + /pre; // workaround for IE
el.innerHTML = s;
  },

  highlightElementsWithTagName : function(tagName){
var els = document.getElementsByTagName(tagName);
for (var i=0; i  els.length; i++){
  this.highlightElement(els[i]);
}
  }
};

DiffHighlighter.highlightElementsWithTagName('pre');
/script

/body


-- 
Rene
___
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 ui does not launch

2011-05-27 Thread Rene
On Fri, 27 May 2011 07:41:53 +0200, Gour-Gadadhara Dasa wrote:
 On Fri, 27 May 2011 00:38:37 +0200
 Rene renew...@xs4all.nl wrote:

 Just out of curiosity I installed PC-BSD latest in a virtual 
 machine.
 (Long install nice user interface!)

 Heh, nice that you tried PC-BSD. ;)

 I installed firefox-4.0.1 I downloaded the latest fossil release 
 compiled
 that cloned fossil fossil ui myclone.fossil and I got a web 
 interface

 As you may guess from my previous email, it might be that it is
 something with
 the repos which were darcs -- fossil converted via git and/or with
 FF 'stale'
 session.


 Sincerely,
 Gour
Yes, I understand you did a conversion :-)

I did one more check

I renamed fossil to newfossil
I down loaded 2011-04-13 12:05:18
build it and named it oldfossil
 oldfossil clone http://www.fossil-scm.org/ myclone.fossil
 oldfossil ui myclone.fossl (works nosurprise)
 newfossil ui myclone.fossl (gives html pages with need to 
rebuild the database)
 newfossil reb myclone.fossl
 newfossil ui myclone.fossl (works)

I earlier said to down grade to an older version of fossil.
Richard warns on
http://www.fossil-scm.org/fossil/event/a1f9f17b6 (The Irreversible 
Schema Change)
That it is not an option.

Did you do something like oldfossil reb repo? that would cause 
problems?



-- 
Rene
___
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 ui does not launch

2011-05-26 Thread Rene
On Thu, 26 May 2011 06:48:58 +0200, Gour-Gadadhara Dasa wrote:
 On Wed, 25 May 2011 23:42:58 +0200
 Rene renew...@xs4all.nl wrote:

 make
 ./fossil rebuild
 ./fossil ui
 and voila a previous release

 Tried, but still does not work... :-/

 I had to convert some repos to bzr (via git) ind order to continue
 commiting to
 them. :-/


 Sincerely,
 Gour
I'm  lost!
1) you were a happy camper with PC-BSD latest and fossil version 
xx.
2) You updated to the latest version of fossil and the fossil 
webinterface stopped working.
3) You downgraded to fossil version xx and still no dice.

take the latest fossil
do

fossil new gour.fossil
fossil ui gour.fossil

if that fails

take the previous fossil and  do the same thing

one or both should work. Otherwise item 1 above never happened
-- 
Rene
___
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 ui does not launch

2011-05-26 Thread Rene
On Thu, 26 May 2011 13:17:58 +0200, Gour-Gadadhara Dasa wrote:
 On Thu, 26 May 2011 06:50:39 -0400
 Martin Gagnon eme...@gmail.com wrote:

 Do you explicitly set the web-browser setting

 Yes...that's how I change setting in order to be able to try/test 
 with Midori
 browser.

 If you try to start firefox from cli with any url as argument, does 
 it work ?

 Yes.

 If this give you same behavior, so fossil have nothing to do with 
 the
 problem.

 Well, I admit it's strange problem, but, at the same time it's very 
 real for
 me. :-/



 Sincerely,
 Gour

does the
fossil new gour.fossil
fossil ui gour.fossil

still doesn't show the webinterface?
If you do the same with the previous fossil version allow you to show 
the webinterface?


has  firefox been updated? if so can you downgrade with ports?
which version off firefox are you using? 4.0,0, 4.0.1 or 5.0.0

-- 
Rene
___
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 ui does not launch

2011-05-26 Thread Rene
On Thu, 26 May 2011 12:06:19 +0200, Gour-Gadadhara Dasa wrote:
 On Thu, 26 May 2011 10:18:46 +0200
 Rene renew...@xs4all.nl wrote:

 1) you were a happy camper with PC-BSD latest and fossil version
 xx.

 Yes.

 2) You updated to the latest version of fossil and the fossil
 webinterface stopped working.

 Yes.

 3) You downgraded to fossil version xx and still no dice.

 Yes.

 one or both should work. Otherwise item 1 above never happened

 There is a little flaw in your reasoning - you forgot that it works
 with Midori
 browser (I didn't want to install Chromium to test.) So, e.g. Fossil 
 version
 [a2e1c48373] works with Midori here, but not with Firefox.

 The only problem is that my regular browser is FF and not Midori and 
 it's
 painful investigating what's wrong with Fossil  FF combo.


 Sincerely,
 Gour
Just out of curiosity I installed PC-BSD latest in a virtual machine.
(Long install nice user interface!)
I installed firefox-4.0.1
I downloaded the latest fossil release compiled that
cloned fossil
fossil ui myclone.fossil and I got a web interface

-- 
Rene
___
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] [newbie] Can't get started

2011-05-25 Thread Rene
On Wed, 25 May 2011 13:29:58 +0200, Gilles wrote:
 Hello

 This is the first time I'm trying Fossil and I'm using the Windows
 version (d8221b9863 2011-05-12).

 I will be the only user, and the repository will be located on the
 same Windows host where the repository is saved.

 There are a few of questions to which I found no answer in the wiki:

 1. Should the repository be located at the very top of the directory
 tree where files will be added and commited?

 For instance, if the files I'll be adding/committing live below C:\,
 should the repository be C:\myrepo, or is it OK to locate it anywhere
 on the hard drive, eg. D:\whatever\lmyrepo?
The repository should not be in the  directory were you work!
e.g
mkdir c:\src\myproject
fossil new c:\src\gilles.fossil
cd c:\src\myproject
fossil open ../gilles.fossil


 2. Is it OK to have spaces in the path leading to the repo and the
 files, eg. C:\This is a directory\myrepo, and D:\This is where my
 files are\some file.txt?
The directories leading up to your repository or your check-out it 
doesn't matter much
But the file names and directories in you repo/checkout it is not 
recommended but possible.
You need to add  around the name.
You might get into trouble when issuing
fossil add *


 3. Is it possible _not_ to be prompted for a comment when committing 
 a
 file? I'd just like to type fossil commit, and be done with it.
fossil commit -m nocomment
not recommend though


 4. Is it possible to open the repository in a DOS box (C:\fossil.exe
 open c:\myrepo), and add/commit from a Windows application such as a
 text editor?
 When I tried this, I got this error: C:\fossil.exe: not within an
 open checkout
The editor  you used wasn't started in that directory.
open a dos box and cd into c:\src\myproject
start your editor


 I guess all the commands should be issued within the DOS box.
Depends if I would be using the editor vim I could issue
   :cd c:\myproject (make sure I'm in the checkout directory)
   :!c:\fossil.exe commit -m Nocomment


 Thank you.

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

-- 
Rene
___
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 ui does not launch

2011-05-25 Thread Rene
On Tue, 24 May 2011 22:38:19 +0200, Gour-Gadadhara Dasa wrote:
 On Tue, 24 May 2011 22:31:27 +0200
 Rene renew...@xs4all.nl wrote:

  I meant one version of fossil.

 Ahh..but how to do it when I did rebuild all the repos and newer 
 fosiil
 involved changes in db schema?
goto http://www.fossil-scm.org/
Tags -- release (I selected 047e06193b 2 releases back)

SHA1 Hash:  047e06193b65c535d845d10f6e64d8c467ef7524
Date:   2011-04-13 12:05:18
User:   drh
Comment:Release
Timelines:  family | ancestors | descendants | both | trunk | release
Other Links:files | Tarball | ZIP archive | manifest

then fossil update 047e06193b65c535d845d10f6e64d8c467ef7524
make
./fossil rebuild
./fossil ui
and voila a previous release

  But http://www.pcbsd.org/ claims 8.2 is the latest?

 Latest stable.


 Sincerely,
 Gour

-- 
Rene
___
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 ui does not launch

2011-05-24 Thread Rene
 On Tue, 24 May 2011 09:24:42 +0200, Gour-Gadadhara Dasa wrote:
 Hello!

 None of my Fossil repos cannot show web interface any longer.

 After issuing: fossil ui

 I'm switched to ff-4 browser, new tab is opened, but it jsut hangs 
 with
 the 'connecting...' message.

 I did rebuild all my repos and I can see output from e.g.

 fossil timeline


 Any idea how to troubleshoot it?

 Here is my version:

 This is fossil version [474850cff5] 2011-05-23 15:11:12 UTC


 Sincerely,
 Gour
 Have you modified your header and/or footer?
-- 
 Rene
___
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 ui does not launch

2011-05-24 Thread Rene
 On Tue, 24 May 2011 13:16:28 +0200, Gour-Gadadhara Dasa wrote:
 On Tue, 24 May 2011 12:41:35 +0200
 Rene renew...@xs4all.nl wrote:

  Have you modified your header and/or footer?

 Nope, and as you can see from other message, it work with another 
 browser.


 Sincerely,
 Gour
 You are using the same version as http://fossil-scm.org/ , Are you able 
 to connect and browse this site with FF4?

 if so,
 Can you go directly to http://localhost:8080/setup_header and the 
 header screen is displayed

 if not,
 Although you claim that your header hasn't changed could you
 reset it to default via midiori or  by 
 http://localhost:8080/setup_headerclear=1
 just to be sure!

 If you still cannot view fossil
 wget -nd http://localhost:8080/ and see if you get index.wiki.
 Then open this file in firefox. Does that work renders oke?

 If so, There is a problem within FF





-- 
 Rene
___
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 ui does not launch

2011-05-24 Thread Rene
 On Tue, 24 May 2011 15:26:50 +0200, Gour-Gadadhara Dasa wrote:
 On Tue, 24 May 2011 14:55:07 +0200
 Rene renew...@xs4all.nl wrote:

  Are you able to connect and browse this site with FF4?

 Yes.

  if so, Can you go directly to http://localhost:8080/setup_header 
 and the
  header screen is displayed

 I can access http://localhost:8080/setup_config page, but 'apply
 changes' does not work and the page hangs afterwards.

  if not, Although you claim that your header hasn't changed could 
 you reset
  it to default via midiori or  by 
 http://localhost:8080/setup_headerclear=1
  just to be sure!

 I did. Moreover, don0t forget it hangs with *ALL* my repos.

  If you still cannot view fossil wget -nd http://localhost:8080/ and 
 see if
  you get index.wiki.

 I got index.html.

  Then open this file in firefox. Does that work renders oke?

 It opens but renders without any graphic/CSS.


 Sincerely,
 Gour

 I have updated my version to 474850cff5 and don't have the problem 
 under windows. I'll have to check linux later.
 I assume you are under linux?

-- 
 Rene
___
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 ui does not launch

2011-05-24 Thread Rene
 On Tue, 24 May 2011 16:08:35 +0200, Gour-Gadadhara Dasa wrote:
 On Tue, 24 May 2011 15:57:18 +0200
 Rene renew...@xs4all.nl wrote:

  I assume you are under linux?

 No, (Free)PC-BSD.


 Sincerely,
 Gour
 I tested on linux and no problem.

 Which version of pc freebsd are you running?

 Can you go back one version and see if the problem still exists?

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


[fossil-users] javascript and fossil

2011-05-04 Thread Rene
 fossil does not do anything with javascript libraries.
 I don't have a problem with that. :-)
 What is important to understand is that:
release  repository contents

 I mean you could add javascript libraries and modifications
 to the fossil header, footer, ticket, report. This won't jeopardise
 your software project. Because your release doesn't depend on
 the javascript enhancements to fossil.

 So you could build your fossil template repository which
 you could clone for every new project you start. and reap the
 benefits of your javascript enhancements
 (diff highlighting , source code highlighting, wiki editing)
 This is also be a great way to experience the influence of
 javascript and give recommendations for, more (or less), javascript in
 fossil.

 I do understand that some javascript enhancements are indirect
 because the body generation is buried in fossil. e.g
 for diff highlighting you need to work on the DOM after the
 page has been loaded.
 But if these enhancements become popular than it might migrate into 
 fossil

 Off course this clowning around with javascript might distract
 you from the real thing.
 Your software project

-- 
 Rene
___
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] Line numbers in file view (being greedy)

2011-05-03 Thread Rene
 On Mon, 2 May 2011 13:42:46 -0400, Tomek Kott wrote:
 Hi folks,

 It seems that there is a capability to put in line numbers in file
 view (using ln as part of the query string), and have them be
 highlighted if specified in the url params (ln=10) or even a range
 (ln=10-11). (see src/info.c [1])

 Additionally, there [2] are [3] various [4] libraries [5] that can
 highlight code, and there is even a helpful tutorial  [6]on the 
 fossil
 wiki to get those working. Great!

 I want to put those two together so that if you click on the line
 number, you automatically highlight that line, either using the
 imported library or fossil. Has anyone attempted or succeeded at 
 this?

 Tomek


 Links:
 --
 [1]
 
 http://fossil-scm.org/index.html/artifact?name=acda9c4b5b73eecddd8b14607f9d0a58d3793c68
 [2] http://code.google.com/p/google-code-prettify/
 [3] http://softwaremaniacs.org/soft/highlight/en/
 [4] http://balupton.com/sandbox/jquery-syntaxhighlighter/demo/
 [5] http://alexgorbatchev.com/SyntaxHighlighter/
 [6]
 
 http://www.fossil-scm.org/fossil/info/bde8ce985d52d3d76efafa37d8670a32fe16f79c#source-hilight
 most simple is to adjust src/info.c to generate
 pre tittle='win/version.c' alt='c' class='fossilcat'
  span class='line' onclick='highlightline(this)'1  /*/span
  span class='line' onclick='highlightline(this)'2 ** This C 
 program exists to do the job that AWK would do for the unix/span

 /pre


 Ttitle would help you to identify the file (but could be inferred by 
 get the contents of a 
 href=/index.html/finfo?name=win/version.cwin/version.c/a)
 Alt would hint a the type of file (but could be inferred by get the 
 contents of a 
 href=/index.html/finfo?name=win/version.cwin/version.c/a)
 class fossilcat to do CSS styling

 off course this would require fossil to have a javascript function 
 highlightline which is unacceptable

 but if this was changed to
 span class='line'1  /*/span
 you could do some dom magic and add the function to every span.line 
 element when the page loads.


 if on page artiface then
 for every span in blockquote.pre.span do
span.onclick=highlight(this)


 However you could go the hard way :-)
 if page is artifact
   var el = document.getElementsByTagName('pre')
   s = el.innerHTML
   n = ''
   for every line in s do
 n += 'span onclick=highlight(this) '+line+'/span'

   el.innerHTML = n
-- 
 Rene
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] close last leave on a branch and it disappears

2011-02-11 Thread Rene
 Because of the discussion about many branches and using private 
 branches
 for development, I was experimenting (on a copy) and closed the leave 
 on the
 windowscompilers branch and the trunk. Instantly they disappear from 
 branches.
 For the windowscompilers branch I was glad, I was, initally, 
 disappointed
 in case of the trunk. Luckily you can do shun and the trunk is back 
 again.

 In the end the trunk is just an other branch, nothing special! So the
 behaviour is fine (with me).

 Richard, if you got the time and it fits with your philosophy then by 
 all
 means close the windowscompilers branch since it has fulfilled it's 
 purpose.
 At least one branch less to clutter the display!

-- 
 Rene
___
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] th1 purpose

2011-01-27 Thread Rene
 On Thu, 27 Jan 2011 06:56:29 -0500, Richard Hipp wrote:
 On Thu, Jan 27, 2011 at 2:51 AM, Rene  wrote:

  I wonder what the purpose of th1 is?

 TH1 provides the ability to configure the header and footer on each
 page, and to configure the screens for display and edit of tickets.

 TH1 was originally created as a TCL-compatible scripting language to
 use for SQLite testing on embedded platforms.  But it was never used
 in that role.  
  
 I wonder if you have file which you feed to the command 
 test-th-render?
 if so would you publish it?
 I want to get feel how commands like string last needle haystack et 
 all work
-- 
 Rene
___
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 highlighting

2011-01-21 Thread Rene
 On Thu, 20 Jan 2011 20:29:40 +0100, Dmitry Chestnykh wrote:
 Hello,

 I've made a tiny simple diff highlighting for Fossil (well,
 technically, for any HTML page) in JavaScript, and thought I'd share
 it with you.

 Just put the following somewhere into Footer (not header!) above 
 /body:

 

 script
 /*  Simple diff highlighting */
 var DiffHighlighter = {

   isDiff : function(s){
 return (s.match(/^@@.*@@/m)  s.match(/^[+-]/m));
   },

   highlightElement : function(el){
 var s = el.innerHTML;
 if (!this.isDiff(s)){
   return;
 }
 el.className += 'diff';
 s = s.replace(, lt;);
 s = s.replace(/^\+.*$/mg, 'span class=diff-mark 
 added$/span');
 s = s.replace(/^\-.*$/mg, 'span class=diff-mark 
 removed$/span');
 s = s.replace(/^@@.*$/mg, 'span class=diff-mark 
 position$/span');
 s = pre + s + /pre; // workaround for IE
 el.innerHTML = s;
   },

   highlightElementsWithTagName : function(tagName){
 var els = document.getElementsByTagName(tagName);
 for (var i=0; i  els.length; i++){
   this.highlightElement(els[i]);
 }
   }
 };

 DiffHighlighter.highlightElementsWithTagName('pre');
 /script

 

 And add this (or something to your taste) to your CSS:

 

 .diff-mark {
   display: inline;
   color: #000;
 }

 .diff-mark.position {
   display:-moz-inline-stack;
   display:inline-block;
   zoom:1;
   *display:block;
   width: 100%;
   font-style: italic;
   padding: 0.5em 0;
   margin: 0.5em 0;
   border-top: 1px dotted #A2B5CD;
   border-bottom: 1px dotted #A2B5CD;
   color: #A2B5CD;
 }

 .diff-mark.added {
   background-color: #CEFBC3;
 }

 .diff-mark.removed {
   background-color: #F5C2C1;
 }

 

 That's it: the script will automatically detect diffs and color them.

 You can see it in action here:
 http://codingrobots.org/p/fossil/ci/7ad9a4640a

 --
 Dmitry Chestnykh

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
 You could define every thing in the head   and do

  body
  th1
   if { fdiff eq $current_page || otherdiffed page eq $current_page 
 } {
html  
 onload='DiffHighlighter.highlightElementsWithTagName(\'pre\')'
   }
 /th1


 This would have the benefit of running highlighter only on diff pages 
 and after the page has loaded


-- 
 Rene
___
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 highlighting

2011-01-21 Thread Rene
 On Fri, 21 Jan 2011 13:44:47 +0100, Dmitry Chestnykh wrote:
 On Jan 21, 2011, at 1:30 PM, Rene wrote:

 You could define every thing in the head   and do

  body
  th1
   if { fdiff eq $current_page || otherdiffed page eq 
 $current_page
 } {
html 
 onload='DiffHighlighter.highlightElementsWithTagName(\'pre\')'
   }
 /th1


 This would have the benefit of running highlighter only on diff 
 pages
 and after the page has loaded

 Awesome. The only downside is that onload will wait for images to 
 load
 (http://www.javascriptkit.com/dhtmltutors/domready.shtml)
 but it doesn't matter that much.

 Does anyone has the list of all pages that have diffs?

 --
 Dmitry Chestnykh

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


 I think that we better could do

 script
function init()
{
   th1if { fdiff eq $current_page || otherdiffed page eq 
 $current_page)
   puts DiffHighlighter.highlightElementsWithTagName('pre')/th1
}
 /script

 body onload='init()'

 This has the benefit that if someone else want to do something on load 
 he could
 add it in the init function.

 I did a egrep WEB.*diffon the files in the src directory and found
   info.c:** WEBPAGE: vdiff
   info.c:** WEBPAGE: fdiff
   wiki.c:** WEBPAGE: wdiff

-- 
 Rene
___
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] Automatic creation of file to wiki or embedded docs

2011-01-19 Thread Rene
 I found out that g.zExtra doesn't store the query string parameters  
 but the rest of the path after the page
 e.g. http://localhost:8080/doc/tip/www/index.wiki
 g.zExtra = tip/www/index.wiki


 I had a bit of fun  and made th1 fossil env get var command. (actual 
 looking into fossil cgi_parameters)



  and coded in the header
  if {[env get name]} {
puts  name=$name 
puts  current_page=$current_page 
  } else {
puts  No parameter
  }

 in de case of
 http://localhost:8080/finfo?name=win/version.c
 I got
 name=win/version.c current_page=finfo

 That did work and would make your idea possible. However my conclusion 
 is:
 I'm sorry to say but you cannot get at the QUERY_STRING or the 
 individual
 parameters of the request in TH1 (server-side processing).



 for the curious ( I probably  broke 101 rules in coding, not using 
 subcommand) the routine is
 /*
 ** TH Syntax:
 **
 **   env get VAR
 **
 **  Does do

 **  set rc 0
 **  set VALUE [cgi_parameter VAR ]
 **  if($VALUE){
 ** set VAR $VALUE
 ** set rc 1
 **  }
 **  return rc
 */
 static int env_get_command(
   Th_Interp *interp, void *ctx, int argc, const char **argv, int *argl
 ){
   int rc =0;
   char *value;

   if( argc!=3 ){
 return Th_WrongNumArgs(interp, env get var);
   }
   value = cgi_parameter(argv[2],0); // compiler warning need to include 
 cgi.h and/or define INTERFACE
   if (value){
 Th_SetVar(interp, argv[2], argl[2], value, strlen(value)+1);
 rc=1;
   }
   Th_SetResultInt(interp, rc);
   return TH_OK;
 }


-- 
 Rene
___
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] Automatic creation of file to wiki or embedded docs

2011-01-18 Thread Rene
 On Tue, 18 Jan 2011 09:25:09 +, David Bovill wrote:
 Thanks for the comments Rene...

 On 17 January 2011 23:50, Rene  wrote:

  You can link to the source code file. But the source code file
 cannot
  link to the documentation.

 It could do with a minor tweak to the template for the file info page
 :) It's a basic UX feature - you go from docs to source code but 
 can't
 get back :(

  All the templates fossil is using are under Admin (header,
 footer,
  [skins, css]) and you can change them as much as you want.

 I've been trying these, and they are great. I'm not sure I can use
 them to create conditional links from the file section to the
 documentation section - it may be possible using TH1 / and / or some
 Javascript.

 I've read the TH1 pdf, and it covers the basic language well. I'm
 wandering what access we have to Fossil variables - page title,
 section type etc that may be available to use in the language?

 Can anyone help with posting a TH1 snippet that would detect if a
 user was in a particular section - say the file-info page?

 It is important to understand that
 th1 is server-side processing
 javascript is client-side processing e.g. Your browser

 I checked and in style.c these are axported to TH 1:
   /* Generate the header up through the main menu */
   Th_Store(project_name, db_get(project-name,Unnamed Fossil 
 Project));
   Th_Store(title, zTitle);
   Th_Store(baseurl, g.zBaseURL);
   Th_Store(home, g.zTop);
   Th_Store(index_page, db_get(index-page,/home));
   Th_Store(current_page, g.zPath);
   Th_Store(manifest_version, MANIFEST_VERSION);
   Th_Store(manifest_date, MANIFEST_DATE);
   Th_Store(compiler_name, COMPILER_NAME);
   if( g.zLogin ){
 Th_Store(login, g.zLogin);
   }

 you can check if $current_page == finfo. But you miss the arguments to 
 finfo.



 in g(lobal) are these 3 defined
   char *zPath;/* Name of webpage being served */
   char *zExtra;   /* Extra path information past the webpage 
 name */
   char *zBaseURL; /* Full text of the URL being served */

 zExtra (I assume) contains the name=arg. But it isn't made available in 
 th1. So you cannot
 generate a link to the documentation.

 Bummer. You could ask if richard want to add something like:
   Th_Store(parameters, g.zExtra);


-- 
 Rene
___
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] Automatic creation of file to wiki or embedded docs

2011-01-17 Thread Rene
 On Sun, 16 Jan 2011 10:24:16 +, David Bovill wrote:
 One think I'm missing in terms of usability is the ability to
 intimately link a particular source code file with a wiki page. AFAIK
 this is not part of the structure or interface at the moment - so no
 wiki-tags for linking to / embedding the source code from the wiki.

 as said before you can do that with an [url|display] to the file of you 
 desire.


 It seems that this may be partly possible by creating your own custom
 header in the wiki page - but there is no equivalent for the file
 display page? basically I want to have two-way links between the
 source code file and  a root documentation page. Probably using the
 Embedded docs as then the docs and source code are versioned 
 together.
 You can link to the source code file. But the source code file cannot 
 link to the
 documentation. As said before there is no wiki parsing for source code.


 Is there a way to access / alter the html template for the non-wiki
 pages? In general it is nice to have these templates in the wiki
 itself - reuses the code and allow total flexibility in terms of
 customisation? But if these files are stored in the db somewhere I 
 can
 access and alter these directly?
 All the templates fossil is using are under Admin (header, footer, 
 [skins, css])
 and you can change them as much as you want.

 But the template language is basic, no include other templates. TH1 
 is available so
 you have if then else. But you have to code everything in the header 
 and the footer.
 for instance if you detect that the page is version.c then you could 
 generate a link to the documentation.
 But al the intelligence for connecting the source code to the 
 documentation must be contained in header and footer.

-- 
 Rene
___
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] basic questions about fossil

2010-12-16 Thread Rene
On Wed, 15 Dec 2010 18:44:46 -0800, Russ Paielli
russ.paie...@gmail.com wrote:
 Hi Richard,
 
 I discovered fossil yesterday while reading the Wikipedia page that
 compares version control systems. I read lots of the material on the
 fossil website, and I must say that fossil looks very promising.
 Congratulations on what appears to a great piece of software!
 
 I have very little experience with version control, but I'd like to
 start using it more. I work in a Clearcase environment, but I don't
 use Clearcase myself because I work relatively independently (I am an
 aerospace research engineer who writes prototype software for research
 in air traffic control). I recently started doing a little research on
 the alternatives. I watched Linus Torvalds talk at Google, and he sold
 me on distributed version control. At first I was interested in Git
 and BitKeeper. Then I discovered Bazaar, and I was almost ready to
 start using it, but I decided to take one more look at the options.
 When I saw fossil, I figured, with a name like that, it's a real long
 shot, but I'll take a look anyway. Sure enough, it looks impressive. I
 just have a few questions.
 
 The Bazaar website claims that one advantage of Bazaar over Git is
 that it properly handles renames of files and directories. That is
 important to me. I'm very particular about filenames and directory
 structure, and I don't want to feel that I am stuck with the first
 file name or directory structure I chose because changing it will
 confuse my version control system (or confuse the people using it).
 How does fossil compare to Bazaar in that regard? While your at it,
 I'd be interested to know how it compares to Bazaar in general.
 
 I downloaded fossil and gave it a try on my Linux machine. The first
 time I tried to add files, I got stuck in some mode that I could not
 get out of. Apparently, my EDITOR environment variable was not set,
 and I was supposed to give a comment. Fossil was showing a question
 mark, but I did not know what it wanted, and not even Control-C would
 get me out. I ended up killing the terminal and deleting the
 repository I had just created in case it was corrupted. How was I
 supposed to respond to the question mark?
You were put in ed The standard and always present editor in UN*X's.
q for quit would be the appropriated response. 

instead of setting the EDITOR variable you could do 
 fossil settings editor PutYourFavoriteEditorHere -global

 
 By the way, why do these version control systems insist on a comment?
 Yes, I understand that commenting is good practice, but does that mean
 it should be mandatory and the version control system should force me
 to write one? I tend to think not.
Because when you alter software you have an intent.
It is either correcting a bug, adding features, building.
These commits show the intent why you altered the software. So just the
comment will give you an idea what the intent of the source code change
are. Which will be beneficial 2 months later when you try to remember 
which commit contains the change you made.

I ques that in your  case not setting the EDITOR and going with q enter
y enter
is sufficient
 
 Regards,
 Russ Paielli

In general every software package has it own learning curve. I think in
the case
of fossil you are now over the steepest curve :-)

Regards
-- 
Rene
___
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] A wish for command for creating self - extracting archives

2010-12-06 Thread Rene
On Sun, 05 Dec 2010 17:03:13 +0100, јеромонах Виталије
w...@manastirgradac.edu.rs wrote:
 Hello there!
 First of all I want to thank to the authors of fossil. I have discovered
 it recently and I am very pleasantly surprised with what such a small
 tool offer.
 
 Yet, I have an idea or wish that I am almost sure wont be big trouble to
 implement.
 
 If there are command for exporting a fossil repository attached with
 fossil executable in a self extracting archive then fossil could be used
 as an installer for distributing programs in development version with a
 update feature through http protocol.
 A final user of such installer would extract it in any local folder
 and automatically called fossil open command would be executed to create
 working tree, and after that would be executed program to finish setup
 process in new created tree (for a post installation process).
 
 Developer should be able to define post-installation script and
 destination folder suggestion to be given to the final user. This
 command would than create a self extracting archive which would contain
 fossil executable, repository and a program that should be called after
 extracting. That program would call fossil open command and post-install
 script which could be a member of working tree. That way fossil will
 become capable for creating installers.
 
 I hope someone would find this idea as implementable and usable
 extension to fossil and implement it.
 
 Anyway with or without implementation of this idea fossil is great tool
 already..
 
 Vitalije
 
 
 
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

But you don't know on which platform fossil is running. It could be
that the platform on which your 
repository of interest is running on Sun OS. While you want to clone to
windows or to linux.
Then the fossil executable to which you connect is of no value to you!
-- 
Rene
___
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 would you give out only clone rights?

2010-11-02 Thread Rene


On Tue, 2 Nov 2010 07:35:06 -0400, Richard Hipp  wrote: 

On Tue, Nov
2, 2010 at 4:28 AM, Rene  wrote:

I have some one who wants to clone my
repo. But does that make sense? Clone alone allows you to just clone the
repo. But If I'm a remote developer and want to develop I need clone
rights. Because before I can develop I need to clone. 

If one just
want source code then the Time line, Zip Archive is your option. 

Do I
err some where?  
Some people may want to maintain a private branch of
your code, using a procedure similar to the one described at
http://www.sqlite.org/privatebranch.html [2]   

But how do you give
this permission to clone to every one. My solution was to add clone to
the user nobody. 

I can not oversee if this is to broad or which other
solution i should choose 

-- 
Rene
 

Links:
--
[1]
mailto:renew...@xs4all.nl
[2] http://www.sqlite.org/privatebranch.html
___
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] Cvs2scm

2010-11-01 Thread Rene


On Mon, 1 Nov 2010 09:42:57 +0800, Steve Landers  wrote: 

On
01/11/2010, at 5:43 AM, Rene wrote:  

I have moved my fossil repository
for cvs conversions to https://chiselapp.com/ [1] under the name
csv2scm. If you want to convert a cvs repository give it a go. I have
done successful conversions on the public freebsd cvs repositories
project/compat-fbsd en projects/binup. And the largest I have done is
the public postgres cvs repository. That took on my Intel(R) Core(TM)2
CPU 6320 @ 1.86GHz with 2 GB 

* 20 minutes to construct a meta
database (cvs2sqlite)
* 1,5 hours to get the change sets (commits)
*
4,5 hours to do the actual import (db2fossil)

Unfortunately
https://chiselapp.com/ [2] has an old fossil binary from May. The
documentation isn't shown as homepage an error instead No such
document: tip/doc/wiki/index.wiki  

On the Tclers Chat, Konstantin
Khomoutov (kostix) mentioned a link describing Lessons from
PostgreSQL's Git transition ( http://lwn.net/Articles/409635/ [3] ) and
noted they mention CVS repo accumulated some crap over time which
requited manual intervention, besides other issues, and wondered if a
big project like Tcl/Tk could suffer from the same syndrome. 

A few of
us in the Tcl/Tk community have been wondering how Fossil would cope
with a Tcl/Tk repositiory, Based on your experience with Postgres, are
there any lessons to be learned? 

Steve 

Actually the lessons learned
from the git migration have been put in the postgres cvs repository.
They have cleaned up the repo. There for it is one of the most easy to
migrate. But having said that. I have downloaded the freebsd cvs
repostory and the netbsd public cvs repositories. I had no problem
converting the freebsd projects/compat-fbsd and projects/binup. I did
had a problem with netbsd pkgsrc. It containd a module where the parent
were out of date with respect to the child. 

The reason I started doing
this was that I wanted to migrate a private cvs repo. The project has
been canceled but I can convert the repo with out a problem 

I don't
know what the TCl/tk repo contains. I think it's older than postgres. Is
it a down loadable cvs repo? I can have a look at it. 

What I would
recommend is install cvs2scm and run cvs2sqlite, this won't take long
under an hour . If you get comments that a parent is younger then its
child (or that the child is older then its parent) you definitely have
something to work on. If that didn't happen it looks brighter for you.


Do you use key word substation extensivly. Because you have to do what
postgres did remove the keywords from the tip. 

--

Rene


Links:
--
[1] https://chiselapp.com/
[2]
https://chiselapp.com/
[3] http://lwn.net/Articles/409635/
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


[fossil-users] adding a file with the same name on a branch and the trunk

2010-10-29 Thread Rene


I'm working on CVS conversions and discovered that my branch
conversion 
algorithm is flawed. It means that the postgres repository I
created is
probable wrong for all branches. In working this out I wonder
how fossil
handles this situation:
 1) I create a branch b1 
 2) add fie
hello.c to b1.
 3) switch to trunk.
 4) add an other file hello.c to the
trunk.
Are the 2 files hello.c related? I would expect not, because they
don't have a common ancester.
When I merge the branch with the trunk

fossil says there is a conflict I assume since #trunk:hello.c is not
related to #b1:hello.c.
What does one do then? If I go ahead and commit
then hello.c is still what it was on the trunk b1:hello.c is ignored.


I think fossil should not allow the commit on this merge 

Is the
lesson that the merge is not possible? (Which i think is right)
And the
solution is then to rename one of the files so that the conflict goes
away?

Side Note
In CVS files are allways on the trunk even if created
on a branch.
When created on a branch the trunk version has state
dead.
and the branch version is branched from this not existing 1.1
version
It also showed that I have been doing the wrong thing when
adding files
to CVS on a branch. I would add them to the trunk and then
do
cvs tag -b b1 hello.c 
While the correct way seems to be
cvs co -r
b1
cvs add hello.c
cvs commit

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


[fossil-users] is it possible to tag or branch on a lim ited number of files?

2010-10-27 Thread Rene


I have done 4 cvs conversions and I have notice that tags (and for
that matter branches) in CVS can be set on a limited number of files. I
want to verify that in fossil it is not possible to tag or branch a
limited number of files. Say 4 out of 1000.
I'm not looking for this
feature in fossil, I think it is great if it doesn't allow it. As I said
I just want to verify that it is not possible in fossil.

-- 
Rene
 ___
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 enhancements: Please test

2010-10-23 Thread Rene


Richard, 

A real improvement over the mainline fossil I imported the
postgres cvs in 4:20 minutes. The mainline fossil takes more then 25
hours to import the same repository. The numbers from the stat page are:


REPOSITORY SIZE:
372039680 bytes

NUMBER OF ARTIFACTS:

185467 (stored as 13122 full text and 172345 delta blobs)


UNCOMPRESSED ARTIFACT SIZE:
31828 bytes average, 1547908 bytes max,
5903078879 bytes total

COMPRESSION RATIO:
15:1

NUMBER OF
CHECK-INS:
39820

NUMBER OF FILES:
7405

NUMBER OF WIKI
PAGES:
0

NUMBER OF TICKETS:
0

DURATION OF PROJECT:
5220
days or approximately 14.29 years

PROJECT ID:

4b6f3bb589dc5108195b0b5133a030525751b4f7

SERVER ID:

ee2f268aa1ddb3c05d38e98acb30d208fc6ca3d3

FOSSIL VERSION:

2010-10-21 20:54:28 [fa9dfc34e5] (gcc-4.5.1)

SQLITE VERSION:

2010-10-07 13:29:13 [e55ada8924] (3.7.3)

DATABASE STATS:
363320
pages, 1024 bytes/page, 18 free pages, UTF-8, delete mode

-- 

Rene
 ___
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 enhancements: Please test

2010-10-23 Thread Rene


On Sat, 23 Oct 2010 11:49:10 -0400, Richard Hipp  wrote: 

On Sat,
Oct 23, 2010 at 11:09 AM, Rene  wrote:

Richard, 

A real improvement
over the mainline fossil I imported the postgres cvs in 4:20 minutes.
The mainline fossil takes more then 25 hours to import the same
repository.  
Very cool. Thanks for doing this.

I'm still seeing some
performance issues on larger repositories. Can you make your Postgresql
repository available to me so that I can use it as an example for
performance measurement and tuning?

-- 
D. Richard Hipp
d...@sqlite.org
[2]

I even did a co and rebuild postgress and got All of PostgreSQL
successfully made. Ready to install. 

Sure you can have the repo. I'm
convinced that it is not yet correct imported because i got complains
about 2 files during the import. But having been able to rebuild
postgress is indicating that the trunk is correctly imported. Its 357M
big how do I get that to you? 

-- 
Rene
 

Links:
--
[1]
mailto:renew...@xs4all.nl
[2] mailto: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 enhancements: Please test

2010-10-21 Thread Rene


fossil new --admin-user root --date-override 1996-12-23 05:02:19
../compat.fsl
fossil: hash of rid 1
(997d191127383d712af68962168db05d3802a5ad) does not match its uuid
(a039743df6fc664bb116b323f39a37251851ff01)On Tue, 

This is on the
experimental branch version [85e1e3d4a1] 2010-10-20 12:31:25 UTC

fossil
settings are
auto-captcha 
auto-shun 
autosync (global) no
binary-glob

clearsign (global) off
diff-command 
dont-push 
editor (global)
vi
gdiff-command 
ignore-glob 
http-port (global) 8080
localauth

manifest (global) on
mtime-changes (global) on
pgp-command 
proxy

repo-cksum (global) off
ssh-command 
web-browser (global) firefox

--

Rene
 ___
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 enhancements: Please test

2010-10-21 Thread Rene


I updated to [f8f175cf22] 2010-10-21 20:08:31 UTC even the simple
fossil new ../compat.fsl gives
fossil: hash of rid 1
(dc4698d137f6e3aa348198935bea5ce63e3cb799) does not match its uuid
(30a55cd227ea2451a72f72839f89a06805be41b9) 

On Thu, 21 Oct 2010
16:56:53 -0400, Richard Hipp  wrote: 

On Thu, Oct 21, 2010 at 4:31 PM,
Rene  wrote:

fossil new --admin-user root --date-override 1996-12-23
05:02:19 ../compat.fsl
fossil: hash of rid 1
(997d191127383d712af68962168db05d3802a5ad) does not match its uuid
(a039743df6fc664bb116b323f39a37251851ff01)On Tue, 

This is on the
experimental branch version [85e1e3d4a1] 2010-10-20 12:31:25 UTC

Are
you sure? I found this bug in [f8f175cf22]. A new version is checked in
with a fix. But I could not recreate the problem with
[85e1e3d4a1].

Thanks for reporting the problem.

fossil settings
are

auto-captcha 
auto-shun 
autosync (global) no
binary-glob

clearsign (global) off
diff-command 
dont-push 
editor (global)
vi

gdiff-command 
ignore-glob 
http-port (global) 8080
localauth

manifest (global) on
mtime-changes (global) on
pgp-command 
proxy


repo-cksum (global) off
ssh-command 
web-browser (global) firefox

--

Rene

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

-- 
D. Richard Hipp
d...@sqlite.org [4]

-- 
Rene



Links:
--
[1] mailto:renew...@xs4all.nl
[2]
mailto:fossil-users@lists.fossil-scm.org
[3]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[4]
mailto: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] Wiki Help

2010-10-14 Thread Rene


Sorry but i didn't answer your question (I would like the Fossil wiki
to host at least a link to the local files
$basedir/api/index.htm?...just cannot get things working.) 

. I assume
you have this directory structure 

* fossilckout 

* doc 

* html


* src

Your Doxyfile in fossilckout/src has set
HTML_OUTPUT=../DOC/HTML . Document the source and run doxygen. Then
FOSSIL UI. Type the following url
HTTP://LOCALHOST:8080/DOC/CKOUT/DOC/HTML/INDEX.HTML. And you see the
doxygen generate html. Unfortunate you lost fossil. YOU HAVE TO GO
BACK IN HISTORY OR TYPE HTTP://LOCALHOST:8080/ TO GO BACK TO FOSSIL.


This is on the CHECKOUT SOURCES. If you would want to serve the
documentation from your repository you need to check in
fossilckout/doc/html/*. I think that is not what you want because the
documentation can be produced by running doxygen so there is no need to
put it in the repository.  

I tried the html way but there is no way I
can get doxygen to play nice with fossil. 

On Thu, 14 Oct 2010 09:54:38
+0200, Rene  wrote:  

On Wed, 13 Oct 2010 17:44:15 -0500, Bruce
Chidester wrote:  

What is the best way to incorporate documentation
generate by your project, like with doxygen into (or link from) the
Fossil wiki? 
I would like the Fossil wiki to host at least a link to
the local files $basedir/api/index.htm?...just cannot get things
working. 
Thanks, 
Bruce Chidester  

If documentation is to integrate
with fossill it needs to be able to generate nowiki pages. 

e.g. native
html is 

[optional javascript] 

CONTENT 

nowiki is 

CONTENT


Docbook and Lyx can be easily made to work in nowiki mode. 

Doxygen
can not be integrated with fossil because it is using javascript in its
user interface. e.g. In 

the CONTENT there are javascript and input
elements. That doesn't play nice with fossil. 

You might get away with
html. I have to try that at home. If you need instructions for docbook
and/or lyx let me know. 

-- 
Rene

-- 
Rene

20 MOST RECENT TIMELINE
ITEMS

2010-09-19  

16:51

 [8d79764675] [1] Leaf: Update HOT
README about when single-page vacuums happen. (user: momjian, tags:
trunk)

15:27

 [ec862ced60] [2] Replace last remaining $Id$ with
$PostgreSQL$. (user: tgl, tags: trunk)

15:17

 [391f443956] [3]
Fix several broken $PostgreSQL$ keywords. Noted while experimenting with
Magnus's script to remove these. (user: tgl, tags: trunk)

2010-09-18 


19:10

 [85e16d9f87] [4] Make sure we wait for protocol-level
EOF when ending binary COPY IN. The previous coding just terminated the
COPY immediately after seeing the EOF marker (-1 where a row field count
is expected). The expected CopyDone or CopyFail message just got thrown
away later, since we weren't in COPY mode anymore. This behavior
complicated matters for the JDBC driver, and arguably was the wrong
thing in any case since a CopyFail message after the marker wouldn't be
honored. Note that there is a behavioral change here: extra data after
the EOF marker was silently ignored before, but now it will cause an
error. Hence not back-patching, although this is arguably a bug. Per
report and patch by Kris Jurka. (user: tgl, tags: trunk)

17:37


[cae7a33e87] [5] Give a suitable HINT when an INSERT's data source is a
RowExpr containing the same number of columns expected by the insert.
This suggests that there were extra parentheses that converted the
intended column list into a row expression. Original patch by Marko
Tiikkaja, rather heavily editorialized by me. (user: tgl, tags: trunk)




Links:
--
[1] http://localhost:8080/info/8d79764675
[2]
http://localhost:8080/info/ec862ced60
[3]
http://localhost:8080/info/391f443956
[4]
http://localhost:8080/info/85e16d9f87
[5]
http://localhost:8080/info/cae7a33e87
___
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] importing cvs cannot override date and user for tags and branches

2010-09-30 Thread Rene


On Wed, 29 Sep 2010 19:23:21 -0400, Richard Hipp  wrote: 

On Wed,
Sep 29, 2010 at 7:16 PM, Rene  wrote:
 I'm importing a cvs repo and are
able to override in the checkins the
 user
 and the date

 fossil
commit
 --override-user olduser
 --override-date 2004-04-01 08:10:42

-m oldlog message

 Is there a similar possibility for branches and
tags?

Not at this time. But that is easy enough to add.

I'll try to
get to this later tonight, or failing that tomorrow. Remind me if I
forget.

 Thanks

 --
 Rene


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

-- 
D. Richard Hipp
d...@sqlite.org [4] 

I remember that you
migrated sqlite from cvs to fossil. 

So I looked at
http://www.sqlite.org/src/ and saw the branches and tags with correct


dates. I wonder how did you do that? 

-- 
Rene
 

Links:
--
[1]
mailto:renew...@xs4all.nl
[2]
mailto:fossil-users@lists.fossil-scm.org
[3]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
[4]
mailto: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] importing cvs cannot override date and user for tags and branches

2010-09-29 Thread Rene
I'm importing a cvs repo and are able to override in the checkins the 
user
and the date

fossil commit
 --override-user olduser
 --override-date 2004-04-01 08:10:42
 -m oldlog message

Is there a similar possibility for branches and tags?

Thanks

--
Rene

___
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] Compiling fossil under windows

2010-04-14 Thread Rene de Zwart

Op Zo, 11 april, 2010 12:59, schreef D. Richard Hipp:

 On Apr 11, 2010, at 6:46 AM, Rene de Zwart wrote:


 Having had my way with fossil compiling under windows. I was looking
 for
 new challenges by compiling with other free compilers.
 I tried digital mars c compiler. Which promptly said
  unistd.h is for unix systems (The smart little bugger :-)

 Do I correctly infer from this that native windows compilers are not
 tested/used/supported?


 Correct.

 I don't own a windows machine. The windows binaries on the website are
 generated by cross-compiling off of Linux.  I do have the capability
 of running windows under VMWare (for testing), but I don't bring
 VMWare up that often and do not have any compilers installed there.

 D. Richard Hipp
 d...@hwaci.com



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

Richard,

In my latest experiment I installed on my arch linux machine wine.
Then under wine I installed msys, digital mars c compiler, zlib , fossil
and compiled fossil with dmc under wine. I started fossil under wine and
started firefox (under linux). I can see the windows fossil on
localhost:8080


-- 
Rene de Zwart

___
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] Compiling fossil under windows

2010-04-11 Thread Rene de Zwart

Op Zo, 11 april, 2010 12:59, schreef D. Richard Hipp:

 On Apr 11, 2010, at 6:46 AM, Rene de Zwart wrote:


 Having had my way with fossil compiling under windows. I was looking
 for
 new challenges by compiling with other free compilers.
 I tried digital mars c compiler. Which promptly said
  unistd.h is for unix systems (The smart little bugger :-)

 Do I correctly infer from this that native windows compilers are not
 tested/used/supported?


 Correct.

 I don't own a windows machine. The windows binaries on the website are
 generated by cross-compiling off of Linux.  I do have the capability
 of running windows under VMWare (for testing), but I don't bring
 VMWare up that often and do not have any compilers installed there.

 D. Richard Hipp
 d...@hwaci.com



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

Richard,

I had success compiling fossil with Digital Mars Compiler.
This compiler identifies itself with __DMC__
so basically everwhere
  if __MINGW32__ or if!__min...@__
stands has to change to
   if __MINGW32__ || __DMC__ or if !__MINGW32__  !__DMC__
there are a few quirks
dmc doesn't have

-) close-, open- and read-dir but a public header fixes that in construct,
add and vfile
-)  strncasecmp and strcasecmp a simple  -Dstrncasecmp=memicmp
-Dstrcasecmp=stricmp
-) winsock inclusing is different
I had to do
  #if defined(__MINGW32__)
  #  include windows.h   /* for Sleep once server works again */
  #  include winsock2.h  /* socket operations */
  #  define sleep Sleep/* windows does not have sleep, but   
Sleep */
  #  include ws2tcpip.h
  #elif defined(__DMC__)
typedef int socklen_t;
  #  include winsock2.h  /* socket operations */
  #else
in cgi.c http_socket.c
it seems that winsock2.h includes windows.h

if it is of importance to you i can send the diffs


-- 
Rene de Zwart

___
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] can this be done in fossil: hyperlinking to subdir of fossil repo

2010-04-06 Thread Rene de Zwart

Op Di, 6 april, 2010 23:03, schreef Stephan Beal:
 On Tue, Apr 6, 2010 at 9:10 PM, verizon vze35...@verizon.net wrote:

 From advice I got previously here is how I can access a PDF that is in
 the
 repository with a relative link (works both locally and in a server)

 [http:doc/tip/Ethernet/DOCS/npincomplete.pdf | Code Description (pdf) ]


 That won't work in this case because...

 The document i need to serve is a demo PHP page, which must be served by
 the
 underlying web server. It uses JavaScript which requires a web server to
 be
 able to POST messages to (it's an RPC framework, so it's all about passing
 messages to/from the web server).

 i was hoping i could link non-fossil'd subdirs without using absolute URLs
 (including domain), but i haven't found a way to do it. They would be
 useful
 because my public website is mirrored on my system, so i could simplify
 local testing before updating the public server. But no big deal, in any
 case.

 --
 - stephan beal
 http://wanderinghorse.net/home/stephan/
 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Its is a bit odd to run 2 http servers (well maybe not that odd)
1) run fossil ui on port 8080
2) run apache (xampp) on port 80 for the php pages.
   use a link or a path to get de directory into the pages that apache
will serve. you could do [http://localhost/fossil/demo/my.php|php
demo].
It is the basic theme you could improve with virtual hosts so that your
development  system uses the same naming (of course you have to edit your
local hostfile )

-- 
Rene de Zwart

___
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] SSL support, prebuilt binaries, Windows

2010-03-30 Thread Rene de Zwart

Op Di, 30 maart, 2010 17:52, schreef Bjorn Toft Madsen:
 I managed a successful build of fossil on Windows, through the kind
 help of other list members.

 The only outstanding issue is some undefined references when
 FOSSIL_ENABLE_SSL=1:
change
  ifdef FOSSIL_ENABLE_SSL
  LIB += -lcrypto -lssl
  endif
to
  ifdef FOSSIL_ENABLE_SSL
  LIB = -lssl -lcrypto -lgdi32 -lmingwex -lz -lws2_32
  endif

and it works (for me :-)



-- 
Rene de Zwart

___
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] SSL support, prebuilt binaries, Windows

2010-03-30 Thread Rene de Zwart

Op Di, 30 maart, 2010 23:11, schreef Dan:
 don't know if its to do with versions, but i had to change it to

 LIB += -leay32 -lssl32

 and that built fine, but i don't really know how to test the end result
 - since i don't have any use for ssl :)

 Daniel
If I do that then fossil.exe exits with cannot find leay32.dll
-- 
Rene de Zwart

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


  1   2   >