/** * Checks if any of the entries include a change to a branch. * * @param branch * can be null to indicate the trunk. */ public boolean containsBranch(String branch) { for (RCSFile file : m_files) { String b = file.getBranch(); if(b==null && branch==null) return true; if(b==null || branch==null) continue; if(b.equals(branch)) return true; } return false; }
/** * Checks if any of the entries include a change to a branch. * * @param branch * can be null to indicate the trunk. */ public boolean containsBranch(String branch) { for (RCSFile file : m_files) { String b = file.getBranch(); if(b==null && branch==null) return true; if(b==null || branch==null) continue; if(b.equals(branch)) return true; } return false; }