Skip to content

Commit a673c04

Browse files
committed
Fixed bug #20133 : Allow HG: hg_id as value for @Version tag
1 parent 2bb00bc commit a673c04

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CodeSniffer/Standards/PEAR/Sniffs/Commenting/FileCommentSniff.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,8 +782,9 @@ protected function processVersion($errorPos)
782782
} else if (strstr($content, 'CVS:') === false
783783
&& strstr($content, 'SVN:') === false
784784
&& strstr($content, 'GIT:') === false
785+
&& strstr($content, 'HG:') === false
785786
) {
786-
$error = 'Invalid version "%s" in file comment; consider "CVS: <cvs_id>" or "SVN: <svn_id>" or "GIT: <git_id>" instead';
787+
$error = 'Invalid version "%s" in file comment; consider "CVS: <cvs_id>" or "SVN: <svn_id>" or "GIT: <git_id>" or "HG: <hg_id>" instead';
787788
$data = array($content);
788789
$this->currentFile->addWarning($error, $errorPos, 'InvalidVersion', $data);
789790
}

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ http://pear.php.net/dtd/package-2.0.xsd">
4444
- Fixed bug #20119 : PHP warning: invalid argument to str_repeat() in SVN blame report with -s
4545
- Fixed bug #20123 : PSR2 complains about an empty second statement in for-loop
4646
- Fixed bug #20131 : PHP errors in svnblame report, if there are files not under version control
47+
- Fixed bug #20133 : Allow "HG: hg_id" as value for @version tag
4748
</notes>
4849
<contents>
4950
<dir name="/">

0 commit comments

Comments
 (0)