<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>report (TypeTrigger)</title>
<link rel=StyleSheet href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body bgcolor="white">
<pre><span class="cmt"># File checktype.rb, line 121</span>
<span class="kw">def</span> report( badfiles )
errors = 0
msg = @@USER_MESSAGE
badfiles.each <span class="kw">do</span>
|file|
type = filetype( file.depot_file )
msg += sprintf( @@BADFILE_FORMAT,
file.depot_file,
file.revisions[ 0 ].type,
type.msg
)
errors += 1
<span class="kw">break</span> <span class="kw">if</span> ( errors >= @max_errors )
<span class="kw">end</span>
message( msg )
<span class="kw">end</span></pre>
</body>
</html>
# |
Change |
User |
Description |
Committed |
|
#1
|
6014 |
Robert Cowham |
Bring in Tony's latest trigger changes |
|
|
//guest/tony_smith/perforce/P4Rubylib/triggers/doc/classes/TypeTrigger.src/M000011.html |
#1
|
3637 |
Tony Smith |
Add RDoc documentation to the sample triggers. |
|
|