| OLD | NEW | 
|    1 #!/usr/bin/python |    1 #!/usr/bin/python | 
|    2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |    2 # Copyright (c) 2009 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 """Wrapper for trychange.py for git checkout.""" | 
|    5  |    6  | 
|    6 import getpass |    7 import getpass | 
|    7 import optparse |    8 import optparse | 
|    8 import os |    9 import os | 
 |   10 import re | 
|    9 import subprocess |   11 import subprocess | 
 |   12 import sys | 
|   10 import tempfile |   13 import tempfile | 
|   11 import traceback |   14 import traceback | 
|   12 import urllib |   15 import urllib | 
|   13 import sys |   16  | 
|   14 import re |   17 import breakpad | 
 |   18  | 
|   15 import trychange |   19 import trychange | 
|   16  |   20  | 
|   17  |   21  | 
|   18 def Backquote(cmd, cwd=None): |   22 def Backquote(cmd, cwd=None): | 
|   19   """Like running `cmd` in a shell script.""" |   23   """Like running `cmd` in a shell script.""" | 
|   20   return subprocess.Popen(cmd, |   24   return subprocess.Popen(cmd, | 
|   21                           cwd=cwd, |   25                           cwd=cwd, | 
|   22                           stdout=subprocess.PIPE).communicate()[0].strip() |   26                           stdout=subprocess.PIPE).communicate()[0].strip() | 
|   23  |   27  | 
|   24  |   28  | 
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  258         '--issue', GetRietveldIssueNumber(), |  262         '--issue', GetRietveldIssueNumber(), | 
|  259         '--patchset', GetRietveldPatchsetNumber(), |  263         '--patchset', GetRietveldPatchsetNumber(), | 
|  260     ]) |  264     ]) | 
|  261  |  265  | 
|  262   if options.dry_run: |  266   if options.dry_run: | 
|  263     print open(diff_file.name, 'r').read() |  267     print open(diff_file.name, 'r').read() | 
|  264     exit(0) |  268     exit(0) | 
|  265  |  269  | 
|  266   print sendmsg |  270   print sendmsg | 
|  267   TryChange(args, file_list) |  271   TryChange(args, file_list) | 
| OLD | NEW |