1 I don't know what's wrong but I can't add a file with the mercurial backend (the file is created but not added).
3 Here is a patch that's seems to work, although I'm not quite sure what's wrong with current code :
5 hbernard@tactic:/usr/share/perl5/IkiWiki/Rcs$ diff mercurial.pm /home/hbernard/mercurial.pm -Nau
6 --- mercurial.pm 2007-03-24 16:14:35.000000000 +0100
7 +++ /home/hbernard/mercurial.pm 2007-04-19 19:05:47.000000000 +0200
9 sub rcs_add ($) { # {{{
12 - my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "add", "$file");
13 + my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "add", "$config{srcdir}/$file");
14 if (system(@cmdline) != 0) {
15 warn "'@cmdline' failed: $!";
18 My srcdir path has some symbolics links and hidden directorys... maybe that's it ?
20 > Interesting, the mercurial test suite shows the add without the path
21 > working ok. OTOH, it also continues to work if I apply your patch, so I
22 > guess it's safe enough. It would be good to know why it's failing w/o the
23 > path in your case. --[[Joey]]
25 >> I didn't have time to investigate, but here is the path :
27 >> /home/hbernard/.hiddendatas/hg/ikigtd/
29 >> but ~/.hiddendatas is itself a symbolic to .dotfiles/.hiddendatas (this seems weird I know ;))
30 >> As I was trying to resolve this, the interesting thing is that keying directly in a terminal the same command was working...
31 >> I suspect something with the symbolic link... but didn't investigate further. I will setup a test wiki with symlink in the path to check this.
33 > As I applied the patch, I'm moving this out of the patchqueue to bugs and
34 > marking it [[done]]. --[[Joey]]