Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: packagerChrome.py

Issue 30062555: Noissue - Add '.revision'-file to devbuilds
Patch Set: Created Oct. 14, 2019, 12:13 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packagerChrome.py
diff --git a/packagerChrome.py b/packagerChrome.py
index 42fff4d8d908559a8bb08a0591a7fbdfa6a1a1dd..fed12d7d79a78ac1fb9787059c6a1e06758f8e2e 100644
--- a/packagerChrome.py
+++ b/packagerChrome.py
@@ -392,6 +392,11 @@ def createBuild(baseDir, type='chrome', outFile=None, buildNum=None, releaseBuil
import_locales(params, files)
files['manifest.json'] = createManifest(params, files)
+ building_from_git = os.path.exists(os.path.join(baseDir, '.git'))
+ if not releaseBuild and not devenv and building_from_git:
+ cmd = ['git', 'rev-parse', 'HEAD']
+ files['.revision'] = subprocess.check_output(cmd, cwd=baseDir)
+
if type == 'chrome':
fix_translations_for_chrome(files)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld