Subversion Repositories DevTools

Rev

Rev 898 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 898 Rev 900
Line 119... Line 119...
119
    Integer rootId = mRootId;
119
    Integer rootId = mRootId;
120
    Integer r = rtag_id;
120
    Integer r = rtag_id;
121
    // a null version and log file is passed to oracle
121
    // a null version and log file is passed to oracle
122
    // the planned version is only needed to remove a planned version from the planned version table
122
    // the planned version is only needed to remove a planned version from the planned version table
123
    // the ripple engine does not get this far ie it excludes pvs before claiming a version
123
    // the ripple engine does not get this far ie it excludes pvs before claiming a version
124
    if ( rootId == -1 )
-
 
125
    {
-
 
126
      rm.excludeFromBuild(id.toString(), null, r.toString(), null, mRootCause, null, false);
124
    // this is the one instance where an existing build failure must be superceded in the database
127
    }
-
 
128
    else
-
 
129
    {
-
 
130
      rm.excludeFromBuild(id.toString(), null, r.toString(), rootId.toString(), mRootCause, null, false);
125
    rm.excludeFromBuild(id.toString(), null, r.toString(), rootId == -1 ? null : rootId.toString(), mRootCause, null, false, true);
131
      }
-
 
132
  }
126
  }
133
  
127
  
134
  /**runs exclude from build
128
  /**runs exclude from build
135
   */
129
   */
136
  void includeToBuild( ReleaseManager rm, int rtag_id ) throws SQLException, Exception
130
  void includeToBuild( ReleaseManager rm, int rtag_id ) throws SQLException, Exception
Line 173... Line 167...
173
    mLogger.info("isRelevant " + mId + " returned " + retVal);
167
    mLogger.info("isRelevant " + mId + " returned " + retVal);
174
    return retVal;
168
    return retVal;
175
  }
169
  }
176
 
170
 
177
  /**
171
  /**
-
 
172
   * return true if the root_pv_id is null (-1)
-
 
173
   */
-
 
174
  boolean isARootCause()
-
 
175
  {
-
 
176
    mLogger.debug("isARootCause " + mId);
-
 
177
    boolean retVal = false;
-
 
178
    
-
 
179
    if ( mRootId == -1 )
-
 
180
    {
-
 
181
      retVal = true;
-
 
182
    }
-
 
183
 
-
 
184
    mLogger.info("isARootCause " + mId + " returned " + retVal);
-
 
185
    return retVal;
-
 
186
  }
-
 
187
 
-
 
188
  /**
178
   * return true if id matches mId
189
   * return true if id matches mId
179
   */
190
   */
180
    private boolean isRelevant(int id)
191
    private boolean isRelevant(int id)
181
    {
192
    {
182
      mLogger.debug("isRelevant " + mId + ", " + id);
193
      mLogger.debug("isRelevant " + mId + ", " + id);