]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
use srcfile/destfile
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 7 Aug 2008 20:20:35 +0000 (16:20 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 7 Aug 2008 20:20:35 +0000 (16:20 -0400)
avoids a commit message of "renamed foo to foo"

IkiWiki/Plugin/rename.pm

index f90a3b7b7ffd626a98732086794a4bc4a308d642..77aed9556902d9344c85e0f5c7b0eedf180b0476 100644 (file)
@@ -274,7 +274,7 @@ sub sessioncgi ($$) { #{{{
                        if ($config{rcs}) {
                                IkiWiki::rcs_rename($srcfile, $destfile);
                                IkiWiki::rcs_commit_staged(
-                                       sprintf(gettext("rename %s to %s"), $src, $dest),
+                                       sprintf(gettext("rename %s to %s"), $srcfile, $destfile),
                                        $session->param("name"), $ENV{REMOTE_ADDR});
                        }
                        else {
@@ -303,7 +303,7 @@ sub sessioncgi ($$) { #{{{
                                                        next if $@;
                                                        my $conflict=IkiWiki::rcs_commit(
                                                                $file,
-                                                               sprintf(gettext("update for rename of %s to %s"), $src, $dest),
+                                                               sprintf(gettext("update for rename of %s to %s"), $srcfile, $destfile),
                                                                $token,
                                                                $session->param("name"), 
                                                                $ENV{REMOTE_ADDR}