MCPcopy Create free account
hub / github.com/nodejs/node / RunStep

Method RunStep

deps/v8/tools/release/roll_merge.py:158–175  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

156 MESSAGE = "Increment version number."
157
158 def RunStep(self):
159 new_patch = str(int(self["patch"]) + 1)
160 if self.Confirm("Automatically increment V8_PATCH_LEVEL? (Saying 'n' will "
161 "fire up your EDITOR on %s so you can make arbitrary "
162 "changes. When you're done, save the file and exit your "
163 "EDITOR.)" % VERSION_FILE):
164 text = FileToText(os.path.join(self.default_cwd, VERSION_FILE))
165 text = MSub(r"(?<=#define V8_PATCH_LEVEL)(?P<space>\s+)\d*$",
166 r"\g<space>%s" % new_patch,
167 text)
168 TextToFile(text, os.path.join(self.default_cwd, VERSION_FILE))
169 else:
170 self.Editor(os.path.join(self.default_cwd, VERSION_FILE))
171 self.ReadAndPersistVersion("new_")
172 self["version"] = "%s.%s.%s.%s" % (self["new_major"],
173 self["new_minor"],
174 self["new_build"],
175 self["new_patch"])
176
177
178class CommitLocal(Step):

Callers

nothing calls this directly

Calls 9

strFunction · 0.85
intFunction · 0.85
FileToTextFunction · 0.85
MSubFunction · 0.85
TextToFileFunction · 0.85
ConfirmMethod · 0.80
EditorMethod · 0.80
ReadAndPersistVersionMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected