use srcfile/destfile

avoids a commit message of "renamed foo to foo"
master
Joey Hess 2008-08-07 16:20:35 -04:00
parent 11550f9593
commit 3de7d39ec6
1 changed files with 2 additions and 2 deletions

View 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}