Revision d6dac6a6cb83164db329482357dbd2ed3a6f459b authored by Kanchalai Tanglertsampan on 25 August 2016, 23:23:32 UTC, committed by Kanchalai Tanglertsampan on 25 August 2016, 23:23:32 UTC
1 parent 3ed8bca
Raw File
bisect.cmd
echo off
IF NOT EXIST scripts\bisect.cmd GOTO :wrongdir
IF "%1" == "" GOTO :usage
IF "%1" == "GO" GOTO :run
GOTO :copy

:usage
echo Usage: bisect GoodCommit BadCommit test.ts compiles
echo Usage: bisect GoodCommit BadCommit test.ts emits test.js "var x = 3"
GOTO :eof

:copy
copy scripts\bisect.cmd scripts\bisect-fresh.cmd
scripts\bisect-fresh GO %*
GOTO :eof

:run 
call jake local
node built/local/tsc.js scripts/bisect-test.ts --module commonjs
git bisect start %2 %3
git bisect run node scripts/bisect-test.js %4 %5 %6 %7
del scripts\bisect-test.js
del scripts\bisect-fresh.cmd
GOTO :eof

:wrongdir
@echo Run this file from the repo folder, not the scripts folder
GOTO :eof

:eof
back to top