| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2013 the V8 project authors. All rights reserved. | 2 # Copyright 2013 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 def Pull(self): | 368 def Pull(self): |
| 369 self.step.GitPull() | 369 self.step.GitPull() |
| 370 | 370 |
| 371 def Fetch(self): | 371 def Fetch(self): |
| 372 self.step.Git("fetch") | 372 self.step.Git("fetch") |
| 373 | 373 |
| 374 def GetTags(self): | 374 def GetTags(self): |
| 375 return self.step.Git("tag").strip().splitlines() | 375 return self.step.Git("tag").strip().splitlines() |
| 376 | 376 |
| 377 def GetBranches(self): | 377 def GetBranches(self): |
| 378 # Get relevant remote branches, e.g. "origin/branch-heads/3.25". | 378 # Get relevant remote branches, e.g. "branch-heads/3.25". |
| 379 branches = filter( | 379 branches = filter( |
| 380 lambda s: re.match(r"^origin/branch\-heads/\d+\.\d+$", s), | 380 lambda s: re.match(r"^branch\-heads/\d+\.\d+$", s), |
| 381 self.step.GitRemotes()) | 381 self.step.GitRemotes()) |
| 382 # Remove 'origin/branch-heads/' prefix. | 382 # Remove 'branch-heads/' prefix. |
| 383 return map(lambda s: s[20:], branches) | 383 return map(lambda s: s[13:], branches) |
| 384 | 384 |
| 385 def MasterBranch(self): | 385 def MasterBranch(self): |
| 386 return "master" | 386 return "master" |
| 387 | 387 |
| 388 def CandidateBranch(self): | 388 def CandidateBranch(self): |
| 389 return "candidates" | 389 return "candidates" |
| 390 | 390 |
| 391 def RemoteMasterBranch(self): | 391 def RemoteMasterBranch(self): |
| 392 return "origin/master" | 392 return "origin/master" |
| 393 | 393 |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 for (number, step_class) in enumerate(step_classes): | 880 for (number, step_class) in enumerate(step_classes): |
| 881 steps.append(MakeStep(step_class, number, self._state, self._config, | 881 steps.append(MakeStep(step_class, number, self._state, self._config, |
| 882 options, self._side_effect_handler)) | 882 options, self._side_effect_handler)) |
| 883 for step in steps[options.step:]: | 883 for step in steps[options.step:]: |
| 884 if step.Run(): | 884 if step.Run(): |
| 885 return 0 | 885 return 0 |
| 886 return 0 | 886 return 0 |
| 887 | 887 |
| 888 def Run(self, args=None): | 888 def Run(self, args=None): |
| 889 return self.RunSteps(self._Steps(), args) | 889 return self.RunSteps(self._Steps(), args) |
| OLD | NEW |