anchor.diff:  if not "%FLAG%" == "" (
     if "%FLAG%" == "-stat-exclude-?" (
       set FLAG_SVN_STATUS_EXCLUDE_?=1
  +  ) else if "%FLAG%" == "-r" (
  +    set FLAG_SVN_EXTERNALS_RECURSIVE=1
  +    set "FLAG_TEXT_SVN_IGNORE_EXTERNALS="
     ) else if "%FLAG%" == "-stat-exclude-versioned" (
       set FLAG_SVN_STATUS_EXCLUDE_VERSIONED=1
     ) else (
  
positive.code: rem then the svn status will always report such component directories from the parent path as unversioned.
  rem So instead of call to the script you must check unversioned items in the parent path through the shell.
  
  rem escape findstr.exe special control characters
  if "%DIR_PATH_SUBDIR%" == "" goto IGNORE_DIR_PATH_SUBDIR
  
  set "DIR_PATH_SUBDIR=%DIR_PATH_SUBDIR:\=\\%"
  set "DIR_PATH_SUBDIR=%DIR_PATH_SUBDIR:.=\.%"
  set "DIR_PATH_SUBDIR=%DIR_PATH_SUBDIR:[=\[%"
  set "DIR_PATH_SUBDIR=%DIR_PATH_SUBDIR:]=\]%"
  set "DIR_PATH_SUBDIR=%DIR_PATH_SUBDIR:^=\^%"
  set "DIR_PATH_SUBDIR=%DIR_PATH_SUBDIR:$=\$%"
  
  :IGNORE_DIR_PATH_SUBDIR
  
  rem always use not empty first filter
  set "FINDSTR_EXP_FIRST_FILTER=^| findstr.exe /R /C:"^[^? 	]"
  set "FINDSTR_EXP_SECOND_FILTER="
  if %FLAG_SVN_STATUS_EXCLUDE_?% NEQ 0 (
    set FINDSTR_EXP_FIRST_FILTER= ^| findstr.exe /R /V /C:"^?"
    if not "%DIR_PATH_SUBDIR%" == "" set FINDSTR_EXP_SECOND_FILTER= ^| findstr.exe /R /C:"^[^? 	]*[ 	][ 	]*%DIR_PATH_SUBDIR%$"
  ) else if %FLAG_SVN_STATUS_EXCLUDE_VERSIONED% NEQ 0 (
    set FINDSTR_EXP_FIRST_FILTER=^| findstr.exe /R /C:"^?"
    if not "%DIR_PATH_SUBDIR%" == "" set FINDSTR_EXP_SECOND_FILTER= ^| findstr.exe /R /C:"^?[^ 	]*[ 	][ 	]*%DIR_PATH_SUBDIR%$"
  ) else (
    if not "%DIR_PATH_SUBDIR%" == "" set FINDSTR_EXP_SECOND_FILTER= ^| findstr.exe /R /C:"^[^? 	]*[ 	][ 	]*%DIR_PATH_SUBDIR%$"
  )
  
  rem findstr returns 0 on not empty list
  ( svn status "%DIR_PATH_PREFIX%" --depth infinity --non-interactive 2>nul || exit /b 3 )%FINDSTR_EXP_FIRST_FILTER%%FINDSTR_EXP_SECOND_FILTER%
  
  (
    endlocal
  
negative.code: 
  set "?~nx0=%~nx0"
  
  rem exclude unversioned items
  set FLAG_SVN_STATUS_EXCLUDE_?=0
  rem ignore externals
  set FLAG_SVN_EXTERNALS_RECURSIVE=0
  set "FLAG_TEXT_SVN_IGNORE_EXTERNALS=--ignore-externals"
  rem exclude versioned changes
  set FLAG_SVN_STATUS_EXCLUDE_VERSIONED=0
  
  :FLAGS_LOOP
  