OLD | NEW |
1 @echo off | 1 @echo off |
2 :: Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 :: Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 :: Use of this source code is governed by a BSD-style license that can be | 3 :: Use of this source code is governed by a BSD-style license that can be |
4 :: found in the LICENSE file. | 4 :: found in the LICENSE file. |
5 | 5 |
6 :: This batch file will try to sync the root directory. | 6 :: This batch file will try to sync the root directory. |
7 | 7 |
8 setlocal | 8 setlocal |
9 | 9 |
10 :: Will download svn and python. | 10 :: Will download svn and python. |
(...skipping 18 matching lines...) Expand all Loading... |
29 :SVN_UPDATE | 29 :SVN_UPDATE |
30 call svn up -q "%~dp0." | 30 call svn up -q "%~dp0." |
31 goto :EOF | 31 goto :EOF |
32 | 32 |
33 | 33 |
34 :GIT_UPDATE | 34 :GIT_UPDATE |
35 cd /d "%~dp0." | 35 cd /d "%~dp0." |
36 call git config remote.origin.fetch > NUL | 36 call git config remote.origin.fetch > NUL |
37 if errorlevel 1 goto :GIT_SVN_UPDATE | 37 if errorlevel 1 goto :GIT_SVN_UPDATE |
38 call git fetch -q origin > NUL | 38 call git fetch -q origin > NUL |
39 call git rebase -q origin > NUL | 39 call git rebase -q origin/master > NUL |
40 goto :EOF | 40 goto :EOF |
41 | 41 |
42 :GIT_SVN_UPDATE | 42 :GIT_SVN_UPDATE |
43 cd /d "%~dp0." | 43 cd /d "%~dp0." |
44 call git svn rebase -q -q | 44 call git svn rebase -q -q |
45 goto :EOF | 45 goto :EOF |
OLD | NEW |