| OLD | NEW |
| 1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
| 2 | 2 |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Abort on error. | 7 # Abort on error. |
| 8 set -e | 8 set -e |
| 9 | 9 |
| 10 export DEPOT_TOOLS_UPDATE=0 | 10 export DEPOT_TOOLS_UPDATE=0 |
| 11 export PYTHONUNBUFFERED= |
| 11 | 12 |
| 12 PWD=$(pwd) | 13 PWD=$(pwd) |
| 13 REPO_URL=file://$PWD/svnrepo | 14 REPO_URL=file://$PWD/svnrepo |
| 14 TRUNK_URL=$REPO_URL/trunk | 15 TRUNK_URL=$REPO_URL/trunk |
| 15 BRANCH_URL=$REPO_URL/branches/some_branch | 16 BRANCH_URL=$REPO_URL/branches/some_branch |
| 16 GITREPO_PATH=$PWD/gitrepo | 17 GITREPO_PATH=$PWD/gitrepo |
| 17 GITREPO_URL=file://$GITREPO_PATH | 18 GITREPO_URL=file://$GITREPO_PATH |
| 18 PATH="$(dirname $PWD):$PATH" | 19 PATH="$(dirname $PWD):$PATH" |
| 19 GIT_CL=$(dirname $PWD)/git-cl | 20 GIT_CL=$(dirname $PWD)/git-cl |
| 20 GIT_CL_STATUS="$GIT_CL status -f" | 21 GIT_CL_STATUS="$GIT_CL status -f" |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 return $exit_code | 146 return $exit_code |
| 146 fi | 147 fi |
| 147 } | 148 } |
| 148 | 149 |
| 149 # Grab the XSRF token from the review server and print it to stdout. | 150 # Grab the XSRF token from the review server and print it to stdout. |
| 150 print_xsrf_token() { | 151 print_xsrf_token() { |
| 151 curl --cookie dev_appserver_login="test@example.com:False" \ | 152 curl --cookie dev_appserver_login="test@example.com:False" \ |
| 152 --header 'X-Requesting-XSRF-Token: 1' \ | 153 --header 'X-Requesting-XSRF-Token: 1' \ |
| 153 http://localhost:10000/xsrf_token 2>/dev/null | 154 http://localhost:10000/xsrf_token 2>/dev/null |
| 154 } | 155 } |
| OLD | NEW |