Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

  1. @echo off
  2. setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
  3. pushd %_NTDRIVE%%_NTROOT%
  4. REM ****************************************************************************
  5. REM First call the standard Revert_Public.cmd
  6. REM ****************************************************************************
  7. call revert_public.cmd
  8. REM ****************************************************************************
  9. REM Then revert all remaining files in all depots
  10. REM ****************************************************************************
  11. call sdx revert ...
  12. REM ****************************************************************************
  13. REM Then delete the changelist and the changelist file
  14. REM ****************************************************************************
  15. cd public
  16. for %%i in (*_CHANGENUM.SD) do (
  17. for /f "delims=_ tokens=1" %%j in ("%%i") do (
  18. REM ********************************************************************
  19. REM %%i is the filename containing the changelist
  20. REM %%j is the project directory name
  21. REM ********************************************************************
  22. for /f "tokens=2" %%k in (%%i) do (
  23. set __CHANGENUM=%%k
  24. )
  25. echo Deleting SD changenum: !__CHANGENUM! in %%j
  26. pushd ..\%%j
  27. sd change -d !__CHANGENUM!
  28. popd
  29. echo Deleting changelist flag file: %%i
  30. attrib -r %%i
  31. del %%i
  32. )
  33. )
  34. popd