| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Abort on error. | 3 # Abort on error. |
| 4 set -e | 4 set -e |
| 5 | 5 |
| 6 export DEPOT_TOOLS_UPDATE=0 |
| 7 |
| 6 PWD=`pwd` | 8 PWD=`pwd` |
| 7 REPO_URL=file://$PWD/svnrepo | 9 REPO_URL=file://$PWD/svnrepo |
| 8 TRUNK_URL=$REPO_URL/trunk | 10 TRUNK_URL=$REPO_URL/trunk |
| 9 BRANCH_URL=$REPO_URL/branches/some_branch | 11 BRANCH_URL=$REPO_URL/branches/some_branch |
| 10 GITREPO_PATH=$PWD/gitrepo | 12 GITREPO_PATH=$PWD/gitrepo |
| 11 GITREPO_URL=file://$GITREPO_PATH | 13 GITREPO_URL=file://$GITREPO_PATH |
| 12 GIT_CL=$PWD/../git-cl | 14 GIT_CL=$PWD/../git-cl |
| 13 | 15 |
| 14 # Set up an SVN repo that has a few commits to trunk. | 16 # Set up an SVN repo that has a few commits to trunk. |
| 15 setup_initsvn() { | 17 setup_initsvn() { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 return $exit_code | 98 return $exit_code |
| 97 fi | 99 fi |
| 98 } | 100 } |
| 99 | 101 |
| 100 # Grab the XSRF token from the review server and print it to stdout. | 102 # Grab the XSRF token from the review server and print it to stdout. |
| 101 print_xsrf_token() { | 103 print_xsrf_token() { |
| 102 curl --cookie dev_appserver_login="test@example.com:False" \ | 104 curl --cookie dev_appserver_login="test@example.com:False" \ |
| 103 --header 'X-Requesting-XSRF-Token: 1' \ | 105 --header 'X-Requesting-XSRF-Token: 1' \ |
| 104 http://localhost:8080/xsrf_token 2>/dev/null | 106 http://localhost:8080/xsrf_token 2>/dev/null |
| 105 } | 107 } |
| OLD | NEW |