| OLD | NEW |
| 1 # coding: utf-8 | |
| 2 | |
| 3 # This Source Code Form is subject to the terms of the Mozilla Public | 1 # This Source Code Form is subject to the terms of the Mozilla Public |
| 4 # License, v. 2.0. If a copy of the MPL was not distributed with this | 2 # License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. | 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
| 6 | 4 |
| 7 import os | 5 import os |
| 8 import re | 6 import re |
| 9 import codecs | 7 import codecs |
| 10 import subprocess | 8 import subprocess |
| 11 import tarfile | 9 import tarfile |
| 12 import json | 10 import json |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 create_sourcearchive(baseDir, archivePath) | 108 create_sourcearchive(baseDir, archivePath) |
| 111 downloads.append(archivePath) | 109 downloads.append(archivePath) |
| 112 | 110 |
| 113 # Now add the downloads and commit | 111 # Now add the downloads and commit |
| 114 subprocess.check_call(['hg', 'add', '-R', downloadsRepo] + downloads) | 112 subprocess.check_call(['hg', 'add', '-R', downloadsRepo] + downloads) |
| 115 subprocess.check_call(['hg', 'commit', '-R', downloadsRepo, '-m', 'Releasing
%s %s' % (extensionName, version)]) | 113 subprocess.check_call(['hg', 'commit', '-R', downloadsRepo, '-m', 'Releasing
%s %s' % (extensionName, version)]) |
| 116 | 114 |
| 117 # Push all changes | 115 # Push all changes |
| 118 subprocess.check_call(['hg', 'push', '-R', baseDir]) | 116 subprocess.check_call(['hg', 'push', '-R', baseDir]) |
| 119 subprocess.check_call(['hg', 'push', '-R', downloadsRepo]) | 117 subprocess.check_call(['hg', 'push', '-R', downloadsRepo]) |
| OLD | NEW |