bool CommitAction::CheckStatusSel(const svn::StatusSel & statusSel) { if (0 == statusSel.size()) return false; if (statusSel.hasUnversioned()) return false; if (statusSel.hasUrl()) return false; return true; }
bool ExternalProgramAction::CheckStatusSel(const svn::StatusSel & statusSel) { // works with all kinds of files and dirs, // but only ONE is allowed if (1 != statusSel.size()) return false; // directories are allowed only local if (statusSel.hasUrl() && statusSel.hasDirs()) return false; return true; }
bool UpdateAction::CheckStatusSel(const svn::StatusSel & statusSel) { // no Update for repositories if (statusSel.hasUrl()) return false; // we NEED statusSel if (0 == statusSel.size()) return false; // No unversioned files allowed if (statusSel.hasUnversioned()) return false; return true; }