aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2012-01-26 17:08:12 -0500
committerAmitai Schlair <schmonz-web-ikiwiki@schmonz.com>2012-01-26 17:08:12 -0500
commitd6b7654fcf87186210f02e81468d77643dd0e2e0 (patch)
treeb6e342dff8b0f5cacadd921ae773d3dbb6fe97ae
parentac8eab29e8394aca4c0b23a6687ec947ea1ac869 (diff)
downloadikiwiki-d6b7654fcf87186210f02e81468d77643dd0e2e0.tar
ikiwiki-d6b7654fcf87186210f02e81468d77643dd0e2e0.tar.gz
Move cvs_keyword_subst_args() down with the other internal support routines.
-rw-r--r--IkiWiki/Plugin/cvs.pm36
1 files changed, 18 insertions, 18 deletions
diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm
index 5ce3c5cbe..0a6cbfaf6 100644
--- a/IkiWiki/Plugin/cvs.pm
+++ b/IkiWiki/Plugin/cvs.pm
@@ -202,24 +202,6 @@ sub rcs_commit_staged (@) {
return undef # success
}
-sub cvs_keyword_subst_args ($) {
- my $file = shift;
-
- local $CWD = $config{srcdir};
-
- eval q{use File::MimeInfo};
- error($@) if $@;
- my $filemime = File::MimeInfo::default($file);
- # if (-T $file) {
-
- if (defined($filemime) && $filemime eq 'text/plain') {
- return ($file);
- }
- else {
- return ('-kb', $file);
- }
-}
-
sub rcs_add ($) {
# filename is relative to the root of the srcdir
my $file=shift;
@@ -497,6 +479,24 @@ sub cvs_is_controlling {
return (-d "$dir/CVS") ? 1 : 0;
}
+sub cvs_keyword_subst_args ($) {
+ my $file = shift;
+
+ local $CWD = $config{srcdir};
+
+ eval q{use File::MimeInfo};
+ error($@) if $@;
+ my $filemime = File::MimeInfo::default($file);
+ # if (-T $file) {
+
+ if (defined($filemime) && $filemime eq 'text/plain') {
+ return ($file);
+ }
+ else {
+ return ('-kb', $file);
+ }
+}
+
sub cvs_runcvs(@) {
my @cmd = @_;
unshift @cmd, 'cvs', '-Q';