X-Git-Url: https://git.madduck.net/code/myrepos.git/blobdiff_plain/753fb1e033fa427984fb5dbd4c5741de3bd496ee..49414b4e3aa308c2691c2bed417469144d436637:/mr?ds=sidebyside diff --git a/mr b/mr index e927a12..74d0129 100755 --- a/mr +++ b/mr @@ -570,6 +570,10 @@ sub rcs_test { #{{{ sub findcommand { #{{{ my ($action, $dir, $topdir, $subdir) = @_; + + if (exists $config{$topdir}{$subdir}{$action}) { + return $config{$topdir}{$subdir}{$action}; + } my $rcs=rcs_test(@_); @@ -577,9 +581,6 @@ sub findcommand { #{{{ exists $config{$topdir}{$subdir}{$rcs."_".$action}) { return $config{$topdir}{$subdir}{$rcs."_".$action}; } - elsif (exists $config{$topdir}{$subdir}{$action}) { - return $config{$topdir}{$subdir}{$action}; - } else { return undef; }