move message into if block
authorJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 02:14:22 +0000 (22:14 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 20 Apr 2010 02:14:22 +0000 (22:14 -0400)
IkiWiki/Render.pm

index a6b0f0617256db4aff42a38c92da43d0c3085b72..1114e05c8615d9f2861c39f7160747eeab8f2107 100644 (file)
@@ -366,13 +366,13 @@ sub find_new_files ($) {
                                push @internal_new, $file;
                        }
                        elsif ($config{rcs}) {
-                               if (! $times_noted) {
-                                       debug(sprintf(gettext("querying %s for file creation and modification times.."), $config{rcs}));
-                                       $times_noted=1;
-                               }
-
                                push @new, $file;
                                if ($config{gettime} && -e "$config{srcdir}/$file") {
+                                       if (! $times_noted) {
+                                               debug(sprintf(gettext("querying %s for file creation and modification times.."), $config{rcs}));
+                                               $times_noted=1;
+                                       }
+
                                        eval {
                                                my $ctime=rcs_getctime("$config{srcdir}/$file");
                                                if ($ctime > 0) {