summaryrefslogtreecommitdiffstats
path: root/Tools/buildbot/clean.bat
blob: 436c2a1e201f4d3a736c20cb34228f3664ddc90b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@echo off
rem Used by the buildbot "clean" step.

setlocal
set root=%~dp0..\..
set pcbuild=%root%\PCbuild

echo.Attempting to kill Pythons...
for %%k in (kill_python.exe
            kill_python_d.exe
            amd64\kill_python.exe
            amd64\kill_python_d.exe
            ) do (
    if exist "%pcbuild%\%%k" (
        echo.Calling %pcbuild%\%%k...
        "%pcbuild%\%%k"
    )
)

echo Purging all non-tracked files with `hg purge`
echo on
hg -R "%root%" --config extensions.purge= purge --all -X "%root%\Lib\test\data"

@rem Clean is best effort, so we "always succeed"
@exit /b 0