fix setup file error
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 20 Mar 2006 05:09:30 +0000 (05:09 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Mon, 20 Mar 2006 05:09:30 +0000 (05:09 +0000)
improve svn log regexp to deal with file copies/moves

doc/ikiwiki.setup
ikiwiki

index e60d0f40709f0ab5cd0a8a5a1ce020b53396382f..7167e6e57bdd5fa5ed34af47a6876d949e95a129 100644 (file)
@@ -27,7 +27,7 @@ use IkiWiki::Setup::Standard {
                        # Note that this will overwrite any exsting
                        # post-commit hook script, which may not be
                        # what you want.
-                       wrapper => "$config{svnrepo}/hooks/post-commit",
+                       wrapper => "/svn/wiki/hooks/post-commit",
                        wrappermode => 04755,
                },
                {
diff --git a/ikiwiki b/ikiwiki
index 2130c4f78c1eac64715a869ac7c936b065501393..d727d904a95551efd4657694c4ea34c80f2502eb 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -567,7 +567,7 @@ sub rcs_recentchanges ($) { #{{{
                                $user=$2;
                                $when=concise(ago(time - str2time($3)));
                        }
-                       elsif ($state eq 'header' && /^\s+[A-Z]\s+\Q$svn_base\E\/(.+)$/) {
+                       elsif ($state eq 'header' && /^\s+[A-Z]\s+\Q$svn_base\E\/([^ ]+)(?:$|\s)/) {
                                push @pages, { link => htmllink("", pagename($1), 1) }
                                        if length $1;
                        }