cvs diff: Diffing modules/cvslog/xcvs Index: modules/cvslog/xcvs/xcvs-config.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/cvslog/xcvs/xcvs-config.php,v retrieving revision 1.1.2.3 diff -u -r1.1.2.3 xcvs-config.php --- modules/cvslog/xcvs/xcvs-config.php 18 Sep 2006 23:27:54 -0000 1.1.2.3 +++ modules/cvslog/xcvs/xcvs-config.php 26 Oct 2006 08:51:23 -0000 @@ -154,6 +154,20 @@ EOF; +$xcvs['invalid_tag_valid_branch_message'] = << $dir)); + // If we're about to fail, see if this would be a valid tag/branch: + $other = false; + foreach ($other_regexp_list as $regexp) { + if (preg_match($regexp, $tag)) { + $other = true; + break; + } + } + if ($other) { + print strtr($other_err_msg, array('%dir' => $dir, '%tag' => $tag)); + } + else { + print strtr($err_msg, array('%dir' => $dir, '%tag' => $tag)); + } return 0; } // Don't validate tags