]> sipb.mit.edu Git - ikiwiki.git/blob - doc/patchqueue/mercurial_fail_to_add.mdwn
web commit by hb: typos
[ikiwiki.git] / doc / patchqueue / mercurial_fail_to_add.mdwn
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).
2
3 Here is a patch that's seems to work, although I'm not quite sure what's wrong with current code :
4
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
8     @@ -95,7 +95,7 @@
9      sub rcs_add ($) { # {{{
10             my ($file) = @_;
11      
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: $!";
16            }
17
18 My srcdir path has some symbolics links and hidden directorys... maybe that's it ?