Permalink
Browse files

Fixed bug #20133 : Allow HG: hg_id as value for @version tag

  • Loading branch information...
gsherwood committed Nov 25, 2013
1 parent 2bb00bc commit a673c04604d8aaeb092fa226c3cd21d3400bd1f0
Showing with 3 additions and 1 deletion.
  1. +2 −1 CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php
  2. +1 −0 package.xml
@@ -782,8 +782,9 @@ protected function processVersion($errorPos)
} else if (strstr($content, 'CVS:') === false
&& strstr($content, 'SVN:') === false
&& strstr($content, 'GIT:') === false
+ && strstr($content, 'HG:') === false
) {
- $error = 'Invalid version "%s" in file comment; consider "CVS: <cvs_id>" or "SVN: <svn_id>" or "GIT: <git_id>" instead';
+ $error = 'Invalid version "%s" in file comment; consider "CVS: <cvs_id>" or "SVN: <svn_id>" or "GIT: <git_id>" or "HG: <hg_id>" instead';
$data = array($content);
$this->currentFile->addWarning($error, $errorPos, 'InvalidVersion', $data);
}
View
@@ -44,6 +44,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
- Fixed bug #20119 : PHP warning: invalid argument to str_repeat() in SVN blame report with -s
- Fixed bug #20123 : PSR2 complains about an empty second statement in for-loop
- Fixed bug #20131 : PHP errors in svnblame report, if there are files not under version control
+ - Fixed bug #20133 : Allow "HG: hg_id" as value for @version tag
</notes>
<contents>
<dir name="/">

0 comments on commit a673c04

Please sign in to comment.