| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 the V8 project authors. All rights reserved. |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following | 10 # copyright notice, this list of conditions and the following |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 args += ["--author", "\"%s <%s>\"" % (author, author)] | 228 args += ["--author", "\"%s <%s>\"" % (author, author)] |
| 229 self.Git(MakeArgs(args), **kwargs) | 229 self.Git(MakeArgs(args), **kwargs) |
| 230 | 230 |
| 231 def GitPresubmit(self, **kwargs): | 231 def GitPresubmit(self, **kwargs): |
| 232 self.Git("cl presubmit", "PRESUBMIT_TREE_CHECK=\"skip\"", **kwargs) | 232 self.Git("cl presubmit", "PRESUBMIT_TREE_CHECK=\"skip\"", **kwargs) |
| 233 | 233 |
| 234 def GitDCommit(self, **kwargs): | 234 def GitDCommit(self, **kwargs): |
| 235 self.Git( | 235 self.Git( |
| 236 "cl dcommit -f --bypass-hooks", retry_on=lambda x: x is None, **kwargs) | 236 "cl dcommit -f --bypass-hooks", retry_on=lambda x: x is None, **kwargs) |
| 237 | 237 |
| 238 def GitCLLand(self, **kwargs): |
| 239 self.Git( |
| 240 "cl land -f --bypass-hooks", retry_on=lambda x: x is None, **kwargs) |
| 241 |
| 238 def GitDiff(self, loc1, loc2, **kwargs): | 242 def GitDiff(self, loc1, loc2, **kwargs): |
| 239 return self.Git(MakeArgs(["diff", loc1, loc2]), **kwargs) | 243 return self.Git(MakeArgs(["diff", loc1, loc2]), **kwargs) |
| 240 | 244 |
| 241 def GitPull(self, **kwargs): | 245 def GitPull(self, **kwargs): |
| 242 self.Git("pull", **kwargs) | 246 self.Git("pull", **kwargs) |
| 243 | 247 |
| 244 def GitFetchOrigin(self, **kwargs): | 248 def GitFetchOrigin(self, **kwargs): |
| 245 self.Git("fetch origin", **kwargs) | 249 self.Git("fetch origin", **kwargs) |
| 246 | 250 |
| 247 def GitConvertToSVNRevision(self, git_hash, **kwargs): | 251 def GitConvertToSVNRevision(self, git_hash, **kwargs): |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 def GitSVNFindSVNRev(self, git_hash, branch="", **kwargs): | 314 def GitSVNFindSVNRev(self, git_hash, branch="", **kwargs): |
| 311 return self.Git(MakeArgs(["svn find-rev", git_hash, branch]), **kwargs) | 315 return self.Git(MakeArgs(["svn find-rev", git_hash, branch]), **kwargs) |
| 312 | 316 |
| 313 def GitSVNDCommit(self, **kwargs): | 317 def GitSVNDCommit(self, **kwargs): |
| 314 return self.Git("svn dcommit 2>&1", retry_on=lambda x: x is None, **kwargs) | 318 return self.Git("svn dcommit 2>&1", retry_on=lambda x: x is None, **kwargs) |
| 315 | 319 |
| 316 def GitSVNTag(self, version, **kwargs): | 320 def GitSVNTag(self, version, **kwargs): |
| 317 self.Git(("svn tag %s -m \"Tagging version %s\"" % (version, version)), | 321 self.Git(("svn tag %s -m \"Tagging version %s\"" % (version, version)), |
| 318 retry_on=lambda x: x is None, | 322 retry_on=lambda x: x is None, |
| 319 **kwargs) | 323 **kwargs) |
| OLD | NEW |