MCPcopy
hub / github.com/buildbot/buildbot / mTimeVersion

Function mTimeVersion

pkg/buildbot_pkg.py:81–88  ·  view source on GitHub ↗
(init_file)

Source from the content-addressed store, hash-verified

79
80
81def mTimeVersion(init_file):
82 cwd = os.path.dirname(os.path.abspath(init_file))
83 m = 0
84 for root, dirs, files in os.walk(cwd):
85 for f in files:
86 m = max(os.path.getmtime(os.path.join(root, f)), m)
87 d = datetime.datetime.fromtimestamp(m, datetime.timezone.utc)
88 return d.strftime("%Y.%m.%d")
89
90
91def getVersionFromArchiveId(git_archive_id='$Format:%ct %(describe:abbrev=10)$'):

Callers 1

getVersionFunction · 0.70

Calls 2

dirnameMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected