List Info

Thread: svnwiki-post-commit-hook hangs




svnwiki-post-commit-hook hangs
user name
2007-10-27 10:32:10
Greetings,

   I attempted to install svnwiki from the SVN repository,
in Debian
Linux using Chicken 2.7. I have followed the steps from the
install
document, but svnwiki-post-commit-hook fails to complete
after I
import the nameless wiki files:


"/etc/svnwiki/config.scm"
("labwiki" "http://localhost/s
vn/labwiki" "*USER*" "*PASS*"
"http://localhost/labwi
ki" "/var/run/labwiki"
"/var/www/labwiki")
Update: http://localhost/svn/lab
wiki to /tmp/svnwiki-labwiki-post-commit
Getting list of files to update between revisions -1 and 2
Update information for directory: #f
Update meta: 
Update meta: index
Update document estraier: index
Update meta: wiki-syntax


svnwiki-post-commit-hook appears to run indefinitely. Is
there any way
for me to find out what's going on? Thanks,

    -Ivan

_______________________________________________
Svnwiki mailing list
Svnwikilistas.el-directorio.org
http://listas.el-directorio.org/cgi-bin/mailman/
listinfo/svnwiki

* We prefer english for this list / it's ok to write in
Spanish.
* El idioma preferido en la lista es el Inglés
/ Está bien escribir en español.

Let the repository be with you.

Re: svnwiki-post-commit-hook hangs
country flaguser name
United States
2007-10-27 12:17:50
Hi.

> Update meta: wiki-syntax
> 
> svnwiki-post-commit-hook appears to run indefinitely.
Is there any way
> for me to find out what's going on? Thanks,

Although I think it appears to run indefinitely, it will
eventually
terminate.  And I think I know what causes the problem.  And
I think I
fixed it two days ago (but I haven't released it). 

To see what it consumes successfully and where it hangs, you
could do
this in CSI:

    (use stream-wiki)
    (write-stream (wiki->html (port->stream
(open-input-file "wiki-syntax"))))

The problem, if I'm correct, was that two rules in the
text-transform
function in stream-wiki where not exclusive.  For instance,
try this:

    (write-stream (wiki->html (string->stream
"''"""""""&q
uot;""")))

It will terminate but it will take a long time (adding or
removing
double quotes increases/decreases the amount of time it
takes by two).
What's happening here is that it has two rules that can
consume a
double quote, rule 1 and rule 2.  So it consumes the '' and
then
begins to consume parse the rest looking for the closing ''.
 To
consume the """", it will first use rule
1 all times, as in 1111.
When that fails, it will try 1112.  Then 1121.  And so on
until 2222
fails, in which case it will realize that '' should not be
treated as
an opening italics sequence.  That's why each double quote
added
increases the amount of time by two.

The fix was making sure the intersection of the rules is
empty, so now
the amount of time to parse ''"""""
is N, where N is the number of
quotes, not 2 to the power of N.

I will now produce a new version of stream-wiki and mail
you.  We can
then try to see if it makes your problem go away.  I had
noticed that
stream-wiki would sometimes take unearthly amounts of time
to parse
but hadn't got to isolating and fixing the cause.
 
Alejo.
http://azul.freaks-uni
dos.net/

_______________________________________________
Svnwiki mailing list
Svnwikilistas.el-directorio.org
http://listas.el-directorio.org/cgi-bin/mailman/
listinfo/svnwiki

* We prefer english for this list / it's ok to write in
Spanish.
* El idioma preferido en la lista es el Inglés
/ Está bien escribir en español.

Let the repository be with you.

Re: svnwiki-post-commit-hook hangs
country flaguser name
United States
2007-10-27 14:16:14
> I will now produce a new version of stream-wiki and
mail you.  We can
> then try to see if it makes your problem go away.  I
had noticed that
> stream-wiki would sometimes take unearthly amounts of
time to parse
> but hadn't got to isolating and fixing the cause.

I have released version 1.10.  It should be installable by
chicken-setup at some point in the next hours.  If in a
hurry, you can
simply go to stream-wiki/trunk from the chicken-eggs
repository and
install it from there.

Alejo.
http://azul.freaks-uni
dos.net/

_______________________________________________
Svnwiki mailing list
Svnwikilistas.el-directorio.org
http://listas.el-directorio.org/cgi-bin/mailman/
listinfo/svnwiki

* We prefer english for this list / it's ok to write in
Spanish.
* El idioma preferido en la lista es el Inglés
/ Está bien escribir en español.

Let the repository be with you.

Re: svnwiki-post-commit-hook hangs
user name
2007-10-27 23:17:07

  Okay, I just tried stream-wiki 1.10, and everything
worked
perfectly. Thank you so much for the lightning fast response
and fix.

     -Ivan


Alejandro Forero Cuervo <azulfreaks-unidos.net>
writes:

>> I will now produce a new version of stream-wiki and
mail you.  We can
>> then try to see if it makes your problem go away. 
I had noticed that
>> stream-wiki would sometimes take unearthly amounts
of time to parse
>> but hadn't got to isolating and fixing the cause.
>
> I have released version 1.10.  It should be installable
by
> chicken-setup at some point in the next hours.  If in a
hurry, you can
> simply go to stream-wiki/trunk from the chicken-eggs
repository and
> install it from there.
>
> Alejo.
> http://azul.freaks-uni
dos.net/
>

_______________________________________________
Svnwiki mailing list
Svnwikilistas.el-directorio.org
http://listas.el-directorio.org/cgi-bin/mailman/
listinfo/svnwiki

* We prefer english for this list / it's ok to write in
Spanish.
* El idioma preferido en la lista es el Ingl&amp;#233;s
/ Est&amp;#225; bien escribir en espa&amp;#241;ol.

Let the repository be with you.

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )