Exemplo n.º 1
0
bool
LockAction::CheckStatusSel(const svn::StatusSel & statusSel)
{
  if (0 == statusSel.size())
    return false;

  if (statusSel.hasUnversioned())
    return false;

  return true;
}
Exemplo n.º 2
0
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;
}
Exemplo n.º 3
0
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;
}