MCPcopy Index your code
hub / github.com/nodejs/node / Tag

Method Tag

deps/v8/tools/release/common_includes.py:283–301  ·  view source on GitHub ↗
(self, tag, remote, message)

Source from the content-addressed store, hash-verified

281 self.Die("Can't find remote of %s" % name)
282
283 def Tag(self, tag, remote, message):
284 # Wait for the commit to appear. Assumes unique commit message titles (this
285 # is the case for all automated merge and push commits - also no title is
286 # the prefix of another title).
287 commit = None
288 for wait_interval in [10, 30, 60, 60, 60, 60, 60]:
289 self.step.Git("fetch")
290 commit = self.step.GitLog(n=1, format="%H", grep=message, branch=remote)
291 if commit:
292 break
293 print("The commit has not replicated to git. Waiting for %s seconds." %
294 wait_interval)
295 self.step._side_effect_handler.Sleep(wait_interval)
296 else:
297 self.step.Die("Couldn't determine commit for setting the tag. Maybe the "
298 "git updater is lagging behind?")
299
300 self.step.Git("tag %s %s" % (tag, commit))
301 self.step.Git("push origin refs/tags/%s:refs/tags/%s" % (tag, tag))
302
303 def CLLand(self):
304 self.step.GitCLLand()

Callers

nothing calls this directly

Calls 5

GitMethod · 0.80
GitLogMethod · 0.80
DieMethod · 0.80
printFunction · 0.50
SleepMethod · 0.45

Tested by

no test coverage detected