| Index: tools/push-to-trunk/push_to_trunk.py
|
| diff --git a/tools/push-to-trunk/push_to_trunk.py b/tools/push-to-trunk/push_to_trunk.py
|
| index 941d041aff691f6059dc1b7af9537c62e62a661b..ae851b5aad4366da6032fb7967c06f45be67f1d5 100755
|
| --- a/tools/push-to-trunk/push_to_trunk.py
|
| +++ b/tools/push-to-trunk/push_to_trunk.py
|
| @@ -34,7 +34,6 @@ import urllib2
|
|
|
| from common_includes import *
|
|
|
| -PUSH_MSG_SVN_RE = re.compile(r".* \(based on bleeding_edge revision r(\d+)\)$")
|
| PUSH_MSG_GIT_SUFFIX = " (based on %s)"
|
| PUSH_MSG_GIT_RE = re.compile(r".* \(based on (?P<git_rev>[a-fA-F0-9]+)\)$")
|
|
|
| @@ -93,18 +92,8 @@ class DetectLastPush(Step):
|
| # Retrieve the bleeding edge revision of the last push from the text in
|
| # the push commit message.
|
| last_push_title = self.GitLog(n=1, format="%s", git_hash=last_push)
|
| - # TODO(machenbach): This is only needed for the git transition. Can be
|
| - # removed after one successful trunk push.
|
| - match = PUSH_MSG_SVN_RE.match(last_push_title)
|
| - if match:
|
| - last_push_be_svn = match.group(1)
|
| - if not last_push_be_svn: # pragma: no cover
|
| - self.Die("Could not retrieve bleeding edge rev for trunk push %s"
|
| - % last_push)
|
| - last_push_bleeding_edge = self.vc.SvnGit(last_push_be_svn)
|
| - else:
|
| - last_push_bleeding_edge = PUSH_MSG_GIT_RE.match(
|
| - last_push_title).group("git_rev")
|
| + last_push_bleeding_edge = PUSH_MSG_GIT_RE.match(
|
| + last_push_title).group("git_rev")
|
|
|
| if not last_push_bleeding_edge: # pragma: no cover
|
| self.Die("Could not retrieve bleeding edge git hash for trunk push %s"
|
| @@ -357,14 +346,11 @@ class SanityCheck(Step):
|
| self.Die("Execution canceled.") # pragma: no cover
|
|
|
|
|
| -class CommitSVN(Step):
|
| - MESSAGE = "Commit to SVN."
|
| +class Land(Step):
|
| + MESSAGE = "Land the patch."
|
|
|
| def RunStep(self):
|
| - if self._options.svn:
|
| - self.SVNCommit("trunk", self["commit_title"])
|
| - else:
|
| - self.vc.Land()
|
| + self.vc.Land()
|
|
|
|
|
| class TagRevision(Step):
|
| @@ -445,7 +431,7 @@ class PushToTrunk(ScriptsBase):
|
| SetVersion,
|
| CommitTrunk,
|
| SanityCheck,
|
| - CommitSVN,
|
| + Land,
|
| TagRevision,
|
| CleanUp,
|
| ]
|
|
|