/** * Method setLabel. * * @param location * @param label */ public void setLabel(CVSRepositoryLocation location, String label) { RepositoryRoot root = getRepositoryRootFor(location); String oldLabel = root.getName(); if (oldLabel == null) { if (label == null) return; root.setName(label); } else if (label == null) { root.setName(label); } else if (label.equals(oldLabel)) { return; } else { root.setName(label); } broadcastRepositoryChange(root); }