Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: tools/push-to-trunk/common_includes.py

Issue 653923002: Fix remote branch location in releases script. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698