Lines Matching refs:self

15   def RunStep(self):
16 self.CommonPrepare()
17 self.PrepareBranch()
18 self.GitCheckout("master")
19 self.GitSVNRebase()
25 def RunStep(self):
26 self.GitCreateBranch(self._config["BRANCHNAME"])
30 self.GitRemotes())
33 self["tags"] = map(lambda s: s[9:], tags)
39 def RunStep(self):
40 tags = set(self["tags"])
41 self["candidate"] = None
42 self["candidate_version"] = None
43 self["next"] = None
44 self["next_version"] = None
47 for git_hash in self.GitLog(
51 if not self.GitCheckoutFileSafe(VERSION_FILE, git_hash):
54 self.ReadAndPersistVersion()
55 version = self.ArrayToVersion("")
62 self.GitCheckoutFileSafe(VERSION_FILE, "HEAD")
65 if self["candidate"]:
72 self.CommonCleanup()
76 self["next"] = self["candidate"]
77 self["next_version"] = self["candidate_version"]
80 self["candidate"] = git_hash
81 self["candidate_version"] = version
83 if not self["candidate"] or not self["candidate_version"]:
85 self.CommonCleanup()
89 (self["candidate"], self["candidate_version"]))
95 def RunStep(self):
97 status_json = self.ReadURL(revision_url, wait_plan=[5, 20])
98 self["lkgrs"] = [entry["revision"]
105 def LastLKGR(self, min_rev, max_rev):
109 for lkgr in self["lkgrs"]:
115 def RunStep(self):
117 candidate_svn = self.GitSVNFindSVNRev(self["candidate"])
118 if self["next"]:
119 next_svn = self.GitSVNFindSVNRev(self["next"])
125 lkgr_svn = self.LastLKGR(candidate_svn, next_svn)
129 self.CommonCleanup()
133 self["lkgr"] = self.GitSVNFindGitHash(lkgr_svn)
134 if not self["lkgr"]:
136 self.CommonCleanup()
139 lkgr_utc_time = int(self.GitLog(n=1, format="%at", git_hash=self["lkgr"]))
140 current_utc_time = self._side_effect_handler.GetUTCStamp()
144 self.CommonCleanup()
147 print "Tagging revision %s with %s" % (lkgr_svn, self["candidate_version"])
153 def RunStep(self):
154 if not self._options.dry_run:
155 self.GitReset(self["lkgr"])
156 self.GitSVNTag(self["candidate_version"])
162 def RunStep(self):
163 self.CommonCleanup()
167 def _PrepareOptions(self, parser):
171 def _ProcessOptions(self, options): # pragma: no cover
180 def _Config(self):
186 def _Steps(self):