]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Rcs/mercurial.pm
* Apply patch from hb that uses the full path to a file when adding a file
[ikiwiki.git] / IkiWiki / Rcs / mercurial.pm
index 2e15085ecca097c518b3525297833a10ada82c99..3a75b40c5bbdc564877f48fc87e2a2fdc3207334 100644 (file)
@@ -95,7 +95,7 @@ sub rcs_commit ($$$;$$) { #{{{
 sub rcs_add ($) { # {{{
        my ($file) = @_;
 
-       my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "add", "$file");
+       my @cmdline = ("hg", "-q", "-R", "$config{srcdir}", "add", "$config{srcdir}/$file");
        if (system(@cmdline) != 0) {
                warn "'@cmdline' failed: $!";
        }