# HG changeset patch # User Ludovic Chabant # Date 1511290787 28800 # Node ID 112ff1ab110cdf61a3c8cd3991f7ea328afe8254 # Parent 68f799dc468096ea9bd9100e54461194b88eaf42 cm: Only commit admin assets if they have changed. diff -r 68f799dc4680 -r 112ff1ab110c garcon/pypi.py --- a/garcon/pypi.py Tue Nov 21 10:52:51 2017 -0800 +++ b/garcon/pypi.py Tue Nov 21 10:59:47 2017 -0800 @@ -31,8 +31,12 @@ if not local_only: if commit_assets: - run('hg commit piecrust/admin/static ' - '-m "admin: Regenerate FoodTruck assets."') + res = run('hg status piecrust/admin/static') + if not res: + return + if res.stdout.strip() != '': + run('hg commit piecrust/admin/static ' + '-m "admin: Regenerate FoodTruck assets."') # Submit the CHANGELOG. run('hg commit CHANGELOG.rst docs/pages/support/changelog.md '