[fossil-users] Error: Database error: table mlink has no column named mperm

2011-03-07 Thread Steve Dalton
I just tried to push to my repository and I got

Bytes  Cards  Artifacts Deltas
Sent:3546 75  0  0
Received:4067 88  0  0
Sent:6259 75  0  1
Error: Database error: table mlink has no column named mperm
INSERT INTO mlink(mid,pid,fid,fnid,pfnid,mperm)VALUES(:m,:p,:f,:n,:pfn,:mp)
Received: 147  1  0  0
Total network traffic: 5010 bytes sent, 1444 bytes received

Any ideas?

Upgraded to the latest and it still happens.

Steve


-- 
Refactor
Engage. Succeed. Repeat.
PO Box 802, Labrador, Q 4215, Australia
tel: +61 (0)7 5668 3424 web: refactor.com.au
___
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] Error: Database error: table mlink has no column named mperm

2011-03-07 Thread Steve Dalton
Ok - I realised what it was - I went on the server and did a fossil
rebuild -R /path/to/fossil and it rebuilt and I could then sync.

I didn't realise you had to do this on all the serverside repos to on
upgrade. Is this right? Naively thought that the client would perform
the upgrade.

Steve

On Mon, Mar 7, 2011 at 10:27 PM, Steve Dalton st...@refactor.com.au wrote:
 Yep - one of the first things I did. I've tried going back to an old
 repo and starting again - but seems to happen again on the first
 commit.

 I took a look at the database with sqlite3 and my mlink table is

 sqlite .schema mlink
 CREATE TABLE mlink(
  mid INTEGER REFERENCES blob,
  pid INTEGER REFERENCES blob,
  fid INTEGER REFERENCES blob,
  fnid INTEGER REFERENCES filename,
  pfnid INTEGER REFERENCES filename,
  mperm INTEGER
 );
 CREATE INDEX mlink_i1 ON mlink(mid);
 CREATE INDEX mlink_i2 ON mlink(fnid);
 CREATE INDEX mlink_i3 ON mlink(fid);
 CREATE INDEX mlink_i4 ON mlink(pid);

 Looks like the mperm column is there ok and from looking at some older
 repos it looks like it's a recent addition.

 Steve

 On Mon, Mar 7, 2011 at 9:45 PM, Stephen De Gabrielle
 stephen.degabrie...@acm.org wrote:
 did you try recreate the datebase with
 fossil rebuild

 Cheers,

 Stephen


 On Mon, Mar 7, 2011 at 10:24 AM, Steve Dalton st...@refactor.com.au wrote:
 I just tried to push to my repository and I got

                Bytes      Cards  Artifacts     Deltas
 Sent:            3546         75          0          0
 Received:        4067         88          0          0
 Sent:            6259         75          0          1
 Error: Database error: table mlink has no column named mperm
 INSERT INTO
 mlink(mid,pid,fid,fnid,pfnid,mperm)VALUES(:m,:p,:f,:n,:pfn,:mp)
 Received:         147          1          0          0
 Total network traffic: 5010 bytes sent, 1444 bytes received

 Any ideas?

 Upgraded to the latest and it still happens.

 Steve


 --
 Refactor
 Engage. Succeed. Repeat.
 PO Box 802, Labrador, Q 4215, Australia
 tel: +61 (0)7 5668 3424 web: refactor.com.au
 ___
 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





 --
 Refactor
 Engage. Succeed. Repeat.
 PO Box 802, Labrador, Q 4215, Australia
 tel: +61 (0)7 5668 3424 web: refactor.com.au




-- 
Refactor
Engage. Succeed. Repeat.
PO Box 802, Labrador, Q 4215, Australia
tel: +61 (0)7 5668 3424 web: refactor.com.au
___
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] Error: Database error: table mlink has no column named mperm

2011-03-07 Thread Steve Dalton
Email crossed paths... yes - did it on server and fixed the problem.

So am I right in saying client and server always have to match
versions and rebuilt on both?

Will a newer repo version on the server work with an old client?

I am pretty quick with my upgrades, but I know some of the other users
in my team might not be so on the ball with things...

Steve

On Mon, Mar 7, 2011 at 10:31 PM, Richard Hipp d...@sqlite.org wrote:
 On Mon, Mar 7, 2011 at 7:27 AM, Steve Dalton st...@refactor.com.au wrote:

 Yep - one of the first things I did. I've tried going back to an old
 repo and starting again - but seems to happen again on the first
 commit.

 I took a look at the database with sqlite3 and my mlink table is

 sqlite .schema mlink
 CREATE TABLE mlink(
  mid INTEGER REFERENCES blob,
  pid INTEGER REFERENCES blob,
  fid INTEGER REFERENCES blob,
  fnid INTEGER REFERENCES filename,
  pfnid INTEGER REFERENCES filename,
  mperm INTEGER
 );
 CREATE INDEX mlink_i1 ON mlink(mid);
 CREATE INDEX mlink_i2 ON mlink(fnid);
 CREATE INDEX mlink_i3 ON mlink(fid);
 CREATE INDEX mlink_i4 ON mlink(pid);

 Looks like the mperm column is there ok and from looking at some older
 repos it looks like it's a recent addition.

 Did you do fossil rebuild on the server too?



 Steve

 On Mon, Mar 7, 2011 at 9:45 PM, Stephen De Gabrielle
 stephen.degabrie...@acm.org wrote:
  did you try recreate the datebase with
  fossil rebuild
 
  Cheers,
 
  Stephen
 
 
  On Mon, Mar 7, 2011 at 10:24 AM, Steve Dalton st...@refactor.com.au
  wrote:
  I just tried to push to my repository and I got
 
                 Bytes      Cards  Artifacts     Deltas
  Sent:            3546         75          0          0
  Received:        4067         88          0          0
  Sent:            6259         75          0          1
  Error: Database error: table mlink has no column named mperm
  INSERT INTO
  mlink(mid,pid,fid,fnid,pfnid,mperm)VALUES(:m,:p,:f,:n,:pfn,:mp)
  Received:         147          1          0          0
  Total network traffic: 5010 bytes sent, 1444 bytes received
 
  Any ideas?
 
  Upgraded to the latest and it still happens.
 
  Steve
 
 
  --
  Refactor
  Engage. Succeed. Repeat.
  PO Box 802, Labrador, Q 4215, Australia
  tel: +61 (0)7 5668 3424 web: refactor.com.au
  ___
  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
 
 



 --
 Refactor
 Engage. Succeed. Repeat.
 PO Box 802, Labrador, Q 4215, Australia
 tel: +61 (0)7 5668 3424 web: refactor.com.au
 ___
 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




-- 
Refactor
Engage. Succeed. Repeat.
PO Box 802, Labrador, Q 4215, Australia
tel: +61 (0)7 5668 3424 web: refactor.com.au
___
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] Error: Database error: table mlink has no column named mperm

2011-03-07 Thread Richard Hipp
On Mon, Mar 7, 2011 at 7:30 AM, Steve Dalton st...@refactor.com.au wrote:

 Ok - I realised what it was - I went on the server and did a fossil
 rebuild -R /path/to/fossil and it rebuilt and I could then sync.

 I didn't realise you had to do this on all the serverside repos to on
 upgrade. Is this right? Naively thought that the client would perform
 the upgrade.


You have to do fossil rebuild on the machine where you upgrade Fossil.
The client and server do not necessarily need to be at the same version
(though there have been a few historical bugs where different versions on
client and server caused problems - ignore that inconvenient fact for the
moment).  But the schema of the repository on each client and server need to
match the expectations of the fossil executable that lives there.

So when I'm working on Fossil and I make a change to the schema (which, btw,
I try to avoid because I recognize that running fossil rebuild is
inconvenient, but sometimes it is necessary in the name of progress) then
I'll install the new fossil on my local machine and run fossil all rebuild
locally.  Then I push to the http://www.fossil-scm.org/ site, which is still
running with the previous version of Fossil.  After a while, once I'm
convinced that everything is working, I'll recompile fossil on the server
and run fossil all rebuild there.  Two independent steps that happen at
different points in time.






 Steve

 On Mon, Mar 7, 2011 at 10:27 PM, Steve Dalton st...@refactor.com.au
 wrote:
  Yep - one of the first things I did. I've tried going back to an old
  repo and starting again - but seems to happen again on the first
  commit.
 
  I took a look at the database with sqlite3 and my mlink table is
 
  sqlite .schema mlink
  CREATE TABLE mlink(
   mid INTEGER REFERENCES blob,
   pid INTEGER REFERENCES blob,
   fid INTEGER REFERENCES blob,
   fnid INTEGER REFERENCES filename,
   pfnid INTEGER REFERENCES filename,
   mperm INTEGER
  );
  CREATE INDEX mlink_i1 ON mlink(mid);
  CREATE INDEX mlink_i2 ON mlink(fnid);
  CREATE INDEX mlink_i3 ON mlink(fid);
  CREATE INDEX mlink_i4 ON mlink(pid);
 
  Looks like the mperm column is there ok and from looking at some older
  repos it looks like it's a recent addition.
 
  Steve
 
  On Mon, Mar 7, 2011 at 9:45 PM, Stephen De Gabrielle
  stephen.degabrie...@acm.org wrote:
  did you try recreate the datebase with
  fossil rebuild
 
  Cheers,
 
  Stephen
 
 
  On Mon, Mar 7, 2011 at 10:24 AM, Steve Dalton st...@refactor.com.au
 wrote:
  I just tried to push to my repository and I got
 
 Bytes  Cards  Artifacts Deltas
  Sent:3546 75  0  0
  Received:4067 88  0  0
  Sent:6259 75  0  1
  Error: Database error: table mlink has no column named mperm
  INSERT INTO
  mlink(mid,pid,fid,fnid,pfnid,mperm)VALUES(:m,:p,:f,:n,:pfn,:mp)
  Received: 147  1  0  0
  Total network traffic: 5010 bytes sent, 1444 bytes received
 
  Any ideas?
 
  Upgraded to the latest and it still happens.
 
  Steve
 
 
  --
  Refactor
  Engage. Succeed. Repeat.
  PO Box 802, Labrador, Q 4215, Australia
  tel: +61 (0)7 5668 3424 web: refactor.com.au
  ___
  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
 
 
 
 
 
  --
  Refactor
  Engage. Succeed. Repeat.
  PO Box 802, Labrador, Q 4215, Australia
  tel: +61 (0)7 5668 3424 web: refactor.com.au
 



 --
 Refactor
 Engage. Succeed. Repeat.
 PO Box 802, Labrador, Q 4215, Australia
 tel: +61 (0)7 5668 3424 web: refactor.com.au
 ___
 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] round(julianday(last_useful_date) - julianday('now'), 0) AS 'days left',

2011-03-07 Thread Stephen De Gabrielle
Hi,

My SQL query statement against the TICKET table includes a line crafted to
return the number of whole days till the 'last useful date'
  round(julianday(last_useful_date) - julianday('now'),0) AS 'days left',

Problem is, it returns '.0'  when [I believe] I specified zero decimal
places as the second argument of the 'round()' function.

What am I doing wrong?

Cheers,

Stephen


--
Stephen De Gabrielle
___
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] Error: Database error: table mlink has no column named mperm

2011-03-07 Thread Stephen De Gabrielle
Is it worth making clone/rebuild/new 'version stamp' the database, so fossil
can check it is attempting to action the right one?

Cheers,

Stephen

On Mon, Mar 7, 2011 at 12:42 PM, Richard Hipp d...@sqlite.org wrote:

  On Mon, Mar 7, 2011 at 7:30 AM, Steve Dalton st...@refactor.com.auwrote:

 Ok - I realised what it was - I went on the server and did a fossil
 rebuild -R /path/to/fossil and it rebuilt and I could then sync.

 I didn't realise you had to do this on all the serverside repos to on
 upgrade. Is this right? Naively thought that the client would perform
 the upgrade.


 You have to do fossil rebuild on the machine where you upgrade Fossil.
 The client and server do not necessarily need to be at the same version
 (though there have been a few historical bugs where different versions on
 client and server caused problems - ignore that inconvenient fact for the
 moment).  But the schema of the repository on each client and server need to
 match the expectations of the fossil executable that lives there.

 So when I'm working on Fossil and I make a change to the schema (which,
 btw, I try to avoid because I recognize that running fossil rebuild is
 inconvenient, but sometimes it is necessary in the name of progress) then
 I'll install the new fossil on my local machine and run fossil all rebuild
 locally.  Then I push to the http://www.fossil-scm.org/ site, which is
 still running with the previous version of Fossil.  After a while, once I'm
 convinced that everything is working, I'll recompile fossil on the server
 and run fossil all rebuild there.  Two independent steps that happen at
 different points in time.






 Steve

 On Mon, Mar 7, 2011 at 10:27 PM, Steve Dalton st...@refactor.com.au
 wrote:
  Yep - one of the first things I did. I've tried going back to an old
  repo and starting again - but seems to happen again on the first
  commit.
 
  I took a look at the database with sqlite3 and my mlink table is
 
  sqlite .schema mlink
  CREATE TABLE mlink(
   mid INTEGER REFERENCES blob,
   pid INTEGER REFERENCES blob,
   fid INTEGER REFERENCES blob,
   fnid INTEGER REFERENCES filename,
   pfnid INTEGER REFERENCES filename,
   mperm INTEGER
  );
  CREATE INDEX mlink_i1 ON mlink(mid);
  CREATE INDEX mlink_i2 ON mlink(fnid);
  CREATE INDEX mlink_i3 ON mlink(fid);
  CREATE INDEX mlink_i4 ON mlink(pid);
 
  Looks like the mperm column is there ok and from looking at some older
  repos it looks like it's a recent addition.
 
  Steve
 
  On Mon, Mar 7, 2011 at 9:45 PM, Stephen De Gabrielle
  stephen.degabrie...@acm.org wrote:
  did you try recreate the datebase with
  fossil rebuild
 
  Cheers,
 
  Stephen
 
 
  On Mon, Mar 7, 2011 at 10:24 AM, Steve Dalton st...@refactor.com.au
 wrote:
  I just tried to push to my repository and I got
 
 Bytes  Cards  Artifacts Deltas
  Sent:3546 75  0  0
  Received:4067 88  0  0
  Sent:6259 75  0  1
  Error: Database error: table mlink has no column named mperm
  INSERT INTO
  mlink(mid,pid,fid,fnid,pfnid,mperm)VALUES(:m,:p,:f,:n,:pfn,:mp)
  Received: 147  1  0  0
  Total network traffic: 5010 bytes sent, 1444 bytes received
 
  Any ideas?
 
  Upgraded to the latest and it still happens.
 
  Steve
 
 
  --
  Refactor
  Engage. Succeed. Repeat.
  PO Box 802, Labrador, Q 4215, Australia
  tel: +61 (0)7 5668 3424 web: refactor.com.au
  ___
  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
 
 
 
 
 
  --
  Refactor
  Engage. Succeed. Repeat.
  PO Box 802, Labrador, Q 4215, Australia
  tel: +61 (0)7 5668 3424 web: refactor.com.au
 



 --
  Refactor
 Engage. Succeed. Repeat.
 PO Box 802, Labrador, Q 4215, Australia
 tel: +61 (0)7 5668 3424 web: refactor.com.au
 ___
 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




-- 

--
Stephen De Gabrielle
stephen.degabrie...@acm.org
Telephone +44 (0)20 85670911
Mobile+44 (0)79 85189045
http://www.degabrielle.name/stephen
___
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] Error: Database error: table mlink has no column named mperm

2011-03-07 Thread Richard Hipp
On Mon, Mar 7, 2011 at 7:49 AM, Stephen De Gabrielle 
stephen.degabrie...@acm.org wrote:

 Is it worth making clone/rebuild/new 'version stamp' the database, so
 fossil can check it is attempting to action the right one?


Fossil does this.  If you attempt to use a repository that has the wrong
schema, it should tell you.  If it doesn't (as it didn't with Mr. Dalton)
then that is a bug of some kind.



 Cheers,

 Stephen

 On Mon, Mar 7, 2011 at 12:42 PM, Richard Hipp d...@sqlite.org wrote:

  On Mon, Mar 7, 2011 at 7:30 AM, Steve Dalton st...@refactor.com.auwrote:

 Ok - I realised what it was - I went on the server and did a fossil
 rebuild -R /path/to/fossil and it rebuilt and I could then sync.

 I didn't realise you had to do this on all the serverside repos to on
 upgrade. Is this right? Naively thought that the client would perform
 the upgrade.


 You have to do fossil rebuild on the machine where you upgrade Fossil.
 The client and server do not necessarily need to be at the same version
 (though there have been a few historical bugs where different versions on
 client and server caused problems - ignore that inconvenient fact for the
 moment).  But the schema of the repository on each client and server need to
 match the expectations of the fossil executable that lives there.

 So when I'm working on Fossil and I make a change to the schema (which,
 btw, I try to avoid because I recognize that running fossil rebuild is
 inconvenient, but sometimes it is necessary in the name of progress) then
 I'll install the new fossil on my local machine and run fossil all rebuild
 locally.  Then I push to the http://www.fossil-scm.org/ site, which is
 still running with the previous version of Fossil.  After a while, once I'm
 convinced that everything is working, I'll recompile fossil on the server
 and run fossil all rebuild there.  Two independent steps that happen at
 different points in time.






 Steve

 On Mon, Mar 7, 2011 at 10:27 PM, Steve Dalton st...@refactor.com.au
 wrote:
  Yep - one of the first things I did. I've tried going back to an old
  repo and starting again - but seems to happen again on the first
  commit.
 
  I took a look at the database with sqlite3 and my mlink table is
 
  sqlite .schema mlink
  CREATE TABLE mlink(
   mid INTEGER REFERENCES blob,
   pid INTEGER REFERENCES blob,
   fid INTEGER REFERENCES blob,
   fnid INTEGER REFERENCES filename,
   pfnid INTEGER REFERENCES filename,
   mperm INTEGER
  );
  CREATE INDEX mlink_i1 ON mlink(mid);
  CREATE INDEX mlink_i2 ON mlink(fnid);
  CREATE INDEX mlink_i3 ON mlink(fid);
  CREATE INDEX mlink_i4 ON mlink(pid);
 
  Looks like the mperm column is there ok and from looking at some older
  repos it looks like it's a recent addition.
 
  Steve
 
  On Mon, Mar 7, 2011 at 9:45 PM, Stephen De Gabrielle
  stephen.degabrie...@acm.org wrote:
  did you try recreate the datebase with
  fossil rebuild
 
  Cheers,
 
  Stephen
 
 
  On Mon, Mar 7, 2011 at 10:24 AM, Steve Dalton st...@refactor.com.au
 wrote:
  I just tried to push to my repository and I got
 
 Bytes  Cards  Artifacts Deltas
  Sent:3546 75  0  0
  Received:4067 88  0  0
  Sent:6259 75  0  1
  Error: Database error: table mlink has no column named mperm
  INSERT INTO
  mlink(mid,pid,fid,fnid,pfnid,mperm)VALUES(:m,:p,:f,:n,:pfn,:mp)
  Received: 147  1  0  0
  Total network traffic: 5010 bytes sent, 1444 bytes received
 
  Any ideas?
 
  Upgraded to the latest and it still happens.
 
  Steve
 
 
  --
  Refactor
  Engage. Succeed. Repeat.
  PO Box 802, Labrador, Q 4215, Australia
  tel: %2B61%20%280%297%205668%203424+61 (0)7 5668 3424 web:
 refactor.com.au
  ___
  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
 
 
 
 
 
  --
  Refactor
  Engage. Succeed. Repeat.
  PO Box 802, Labrador, Q 4215, Australia
  tel: %2B61%20%280%297%205668%203424+61 (0)7 5668 3424 web:
 refactor.com.au
 



 --
  Refactor
 Engage. Succeed. Repeat.
 PO Box 802, Labrador, Q 4215, Australia
 tel: %2B61%20%280%297%205668%203424+61 (0)7 5668 3424 web:
 refactor.com.au
 ___
 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




  --

 --

 Stephen De Gabrielle
 stephen.degabrie...@acm.org
 

Re: [fossil-users] round(julianday(last_useful_date) - julianday('now'), 0) AS 'days left',

2011-03-07 Thread Richard Hipp
On Mon, Mar 7, 2011 at 7:46 AM, Stephen De Gabrielle 
stephen.degabrie...@acm.org wrote:

 Hi,

 My SQL query statement against the TICKET table includes a line crafted
 to return the number of whole days till the 'last useful date'
   round(julianday(last_useful_date) - julianday('now'),0) AS 'days left',

 Problem is, it returns '.0'  when [I believe] I specified zero decimal
 places as the second argument of the 'round()' function.

 What am I doing wrong?


The round() function always returns a floating point number.  Try using
CAST(expr AS INTEGER) instead.


 Cheers,

 Stephen


 --
 Stephen De Gabrielle




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




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


Re: [fossil-users] Basic question: how to create fossil web service using bash cgi

2011-03-07 Thread Gé Weijers


On Sun, 6 Mar 2011, David Bovill wrote:

 My bash scripting is very basic. I've been trying to create some cgi's on
 the server that will let me create new fossil repos. I've this test cgi, and
 am unable to issue the commands to fossil that I am able to in the
 terminal.

fossil sees that the environment contains CGI variables and switches to 
CGI mode. To make this work you'll have to purge the environment, I'm not 
quite sure which variable you need to remove.

Ge'
___
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 question: how to create fossil web service using bash cgi

2011-03-07 Thread Tony Perovic
Looking at the source code, it looks like Fossil goes into CGI mode when it 
sees that the GATEWAY_INTERFACE is defined or the cgi command line parameter is 
specified.

Try clearing GATEWAY_INTERFACE.

Tony Perovic
Compumation, Inc.

-Original Message-
From: fossil-users-boun...@lists.fossil-scm.org 
[mailto:fossil-users-boun...@lists.fossil-scm.org] On Behalf Of Gé Weijers
Sent: Monday, March 07, 2011 10:25 AM
To: fossil-users@lists.fossil-scm.org
Subject: Re: [fossil-users] Basic question: how to create fossil web service 
using bash cgi



On Sun, 6 Mar 2011, David Bovill wrote:

 My bash scripting is very basic. I've been trying to create some cgi's on
 the server that will let me create new fossil repos. I've this test cgi, and
 am unable to issue the commands to fossil that I am able to in the
 terminal.

fossil sees that the environment contains CGI variables and switches to
CGI mode. To make this work you'll have to purge the environment, I'm not
quite sure which variable you need to remove.

Ge'
___
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] Git issues

2011-03-07 Thread Joerg Sonnenberger
Hi all,
can someone try to reproduce the following issue?

mkdir test
fossil export path-to-copy-of-fossil-repo  fossil.txt
git init
git fast-import --export-marks=marks.txt  fossil.txt
while read num hash; do [ $((${num#:} % 2)) -eq 0 ]  echo $hash  
commits.txt; done  marks.txt 
sort -u commits.txt  commits.txt.s
git log --all | grep '^commit ' | awk '{ print $2 }' | sort  imported.txt.s

wc -l commits.txt.s imported.txt.s
grep '^commit refs/heads/' fossil.txt | wc -l

I see:
(1) 25 additional commits in the export and the mark file (compared to
the git repo)
(2) One more commit in the git repo than the original fossil tree.
(3) A bunch of commits e.g. on the bunito branch that are plainly
missing.

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