Mercurial > hg > graal-compiler
comparison mx/mx_graal.py @ 15420:5947bb02474f
mx export: change the way of marking a repo as dirty
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Mon, 28 Apr 2014 17:22:45 +0200 |
parents | 5dcf0ae606f3 |
children | f73fc9309f12 |
comparison
equal
deleted
inserted
replaced
15419:f093fa76e872 | 15420:5947bb02474f |
---|---|
161 rmIfExists(join(_graal_home, 'build-nograal')) | 161 rmIfExists(join(_graal_home, 'build-nograal')) |
162 rmIfExists(_jdksDir()) | 162 rmIfExists(_jdksDir()) |
163 rmIfExists(mx.distribution('GRAAL').path) | 163 rmIfExists(mx.distribution('GRAAL').path) |
164 | 164 |
165 def export(args): | 165 def export(args): |
166 """create archives of builds splitted by vmbuild and vm""" | 166 """create archives of builds split by vmbuild and vm""" |
167 | 167 |
168 parser = ArgumentParser(prog='mx export') | 168 parser = ArgumentParser(prog='mx export') |
169 args = parser.parse_args(args) | 169 args = parser.parse_args(args) |
170 | 170 |
171 # collect data about export | 171 # collect data about export |
172 infos = dict() | 172 infos = dict() |
173 infos['timestamp'] = time.time() | 173 infos['timestamp'] = time.time() |
174 | 174 |
175 hgcfg = mx.HgConfig() | 175 hgcfg = mx.HgConfig() |
176 hgcfg.check() | 176 hgcfg.check() |
177 infos['revision'] = hgcfg.tip('.') | 177 infos['revision'] = hgcfg.tip('.') + ('+' if hgcfg.isDirty('.') else '') |
178 infos['revision_dirty'] = hgcfg.isDirty('.') | |
179 # TODO: infos['repository'] | 178 # TODO: infos['repository'] |
180 | 179 |
181 infos['jdkversion'] = str(mx.java().version) | 180 infos['jdkversion'] = str(mx.java().version) |
182 | 181 |
183 infos['architecture'] = _arch() | 182 infos['architecture'] = _arch() |