anchor.diff:  
   if %FLAG_WINDOW_PER_WCDIR% EQU 0 goto IGNORE_INNER_WINDOW_PER_WCDIR_PROCESS
   
  -rem ignore empty lists
  -call "%%CONTOOLS_ROOT%%/get_filesize.bat" "%%TORTOISEPROC_PATHFILE_ANSI_CRLF_TMP%%"
  -if %ERRORLEVEL% EQU 0 goto IGNORE_INNER_WINDOW_PER_WCDIR_PROCESS
  -
  -if %FLAG_FORCE_USE_NOT_ORPHAN_EXTERNAL_PATHS% EQU 0 ( call :REMOVE_PATHFILE_NOT_ORPHAN_EXTERNALS || goto NEXT_LOOKUP_DIR )
  +if %FLAG_FORCE_USE_NOT_ORPHAN_EXTERNAL_PATHS% EQU 0 ( call :FILTER_PATHFILE_BY_NOT_ORPHAN_EXTERNALS || goto NEXT_LOOKUP_DIR )
  +if %FLAG_INTERNAL_USE_ONLY_WORKINGSET_PATHS_WITH_VERSIONED_CHANGES% NEQ 0 ( call :FILTER_PATHFILE_BY_VERSIONED_CHANGES || goto NEXT_LOOKUP_DIR )
   
   rem convert dos line returns to unix
   call "%%CONTOOLS_ROOT%%/encoding/dos2unix.bat" "%%TORTOISEPROC_PATHFILE_ANSI_CRLF_TMP%%" > "%TORTOISEPROC_PATHFILE_ANSI_LF_TMP%" || goto NEXT_LOOKUP_DIR
  
positive.code: set INNER_TASK_INDEX=%OUTTER_TASK_INDEX%
  
  set "FILEPATH_DECORATED=%FILEPATH:\=--%"
  set "FILEPATH_DECORATED=%FILEPATH_DECORATED:/=--%"
  set "FILEPATH_DECORATED=%FILEPATH_DECORATED::=--%"
  
  if "%INNER_TASK_INDEX:~1,1%" == "" set INNER_TASK_INDEX=0%INNER_TASK_INDEX%
  
  set "FILEPATH_TASK_DIR_DECORATED=%INNER_TASK_INDEX%=%FILEPATH_DECORATED%"
  set "FILEPATH_TASK_DIR=%TEMP_FILE_OUTTER_DIR%\wcdirs\%FILEPATH_TASK_DIR_DECORATED%"
  set "TORTOISEPROC_PATHFILE_ANSI_CRLF_TMP=%FILEPATH_TASK_DIR%\pathfile-ansi-crlf.lst"
  set "TORTOISEPROC_PATHFILE_FILTERED_ANSI_CRLF_TMP=%FILEPATH_TASK_DIR%\pathfile-ansi-crlf-filtered.lst"
  rem set "WORKINGSET_PATH_STATUS_EXTERNALS_TMP=%FILEPATH_TASK_DIR%\status_externals.lst"
  set "WORKINGSET_PATH_DB_EXTERNALS_DIR_TMP=%FILEPATH_TASK_DIR%\externals_db"
  set "WORKINGSET_PATH_DB_EXTERNALS_LIST_TMPL_TMP=%WORKINGSET_PATH_DB_EXTERNALS_DIR_TMP%\{{REF}}.lst"
  set "WORKINGSET_PATH_EXTERNALS_PATHS_TMP=%FILEPATH_TASK_DIR%\external_paths.lst"
  
negative.code: if %ERRORLEVEL% EQU 0 exit /b 1
  
  rem set filtered as input
  ( rename "%TORTOISEPROC_PATHFILE_FILTERED_ANSI_CRLF_TMP%" "%TORTOISEPROC_PATHFILE_FILTERED_NAME_ANSI_CRLF_TMP%.tmp" && ^
  rename "%TORTOISEPROC_PATHFILE_ANSI_CRLF_TMP%" "%TORTOISEPROC_PATHFILE_FILTERED_NAME_ANSI_CRLF_TMP%" && ^
  rename "%TORTOISEPROC_PATHFILE_FILTERED_ANSI_CRLF_TMP%.tmp" "%TORTOISEPROC_PATHFILE_NAME_ANSI_CRLF_TMP%" ) >nul
  
  exit /b 0
  
  :FILTER_PATHFILE_BY_VERSIONED_CHANGES
  call "%%CONTOOLS_ROOT%%/get_filesize.bat" "%%TORTOISEPROC_PATHFILE_ANSI_CRLF_TMP%%"
  if %ERRORLEVEL% EQU 0 exit /b 0
  
  rem create empty files
  type nul > "%TORTOISEPROC_PATHFILE_FILTERED_ANSI_CRLF_TMP%"
  
  for /F "usebackq eol=	 tokens=* delims=" %%i in ("%TORTOISEPROC_PATHFILE_ANSI_CRLF_TMP%") do (
    set WCDIR_PATH=%%i
    call :PROCESS_WCDIR_VERSIONED_CHANGES
  )
  goto PROCESS_WCDIR_VERSIONED_CHANGES_END
  
  :PROCESS_WCDIR_VERSIONED_CHANGES
  call "%%SVNCMD_TOOLS_ROOT%%/svn_has_changes.bat" -stat-exclude-? "%%WCDIR_PATH%%" >nul 2>nul
  rem call anyway if error happened
  if %ERRORLEVEL% EQU 0 ^
  if %RETURN_VALUE% EQU 0 exit /b 0
  
  rem (special form of the echo command to ignore special characters in the echo value).
  for /F "eol=	 tokens=* delims=" %%i in ("%WCDIR_PATH%") do (echo.%%i) >> "%TORTOISEPROC_PATHFILE_FILTERED_ANSI_CRLF_TMP%"
  exit /b 0
  
  :PROCESS_WCDIR_VERSIONED_CHANGES_END
  rem ignore empty pathfiles
  call "%%CONTOOLS_ROOT%%/get_filesize.bat" "%%TORTOISEPROC_PATHFILE_FILTERED_ANSI_CRLF_TMP%%"
  if %ERRORLEVEL% EQU 0 exit /b 1
  
  rem set filtered as input
  ( rename "%TORTOISEPROC_PATHFILE_FILTERED_ANSI_CRLF_TMP%" "%TORTOISEPROC_PATHFILE_FILTERED_NAME_ANSI_CRLF_TMP%.tmp" && ^
  rename "%TORTOISEPROC_PATHFILE_ANSI_CRLF_TMP%" "%TORTOISEPROC_PATHFILE_FILTERED_NAME_ANSI_CRLF_TMP%" && ^
  rename "%TORTOISEPROC_PATHFILE_FILTERED_ANSI_CRLF_TMP%.tmp" "%TORTOISEPROC_PATHFILE_NAME_ANSI_CRLF_TMP%" ) >nul
  
  exit /b 0
  