diff options
Diffstat (limited to 'tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template')
-rw-r--r-- | tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template b/tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template index 5f337c0..d283de6 100644 --- a/tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template +++ b/tools/buildbot/slaves/win32-SharpSvn/svn-config.cmd.template @@ -29,3 +29,22 @@ SET TMP=%TEMP% IF NOT EXIST "%TESTDIR%\" MKDIR "%TESTDIR%" IF NOT EXIST "%TEMP%\" MKDIR "%TEMP%" + + + + + +SET SVN_URL= +SET SVN_RELURL= +for /F "usebackq tokens=1,* delims=:" %%i IN (`svn info .`) do ( + + IF "%%i" == "URL" ( + SET SVN_URL=%%j + ) ELSE IF "%%i" == "Relative URL" ( + SET SVN_RELURL=%%j + ) +) +SET SVN_URL=%SVN_URL:~1% +SET SVN_RELURL=%SVN_RELURL:~3% +SET SVN_SUBBRANCH=%SVN_RELURL:~11% +SET SVN_BRANCH=%SVN_SUBBRANCH:branches/=% |