Commits

Steve Borho  committed 6783048

add generic way of specifying extension versions to ship

  • Participants
  • Parent commits 9422347
  • Branches pyqt

Comments (0)

Files changed (1)

     'fixfrozenexts':['fixfrozenexts/hgext/fixfrozenexts.py'],
   }
 
+extversions = {
+    'dulwich' : '8bd3be8bd8d79d1032d085b1e69832fdfb0a75a6'
+}
+
 locales = ('cs', 'da', 'de', 'es', 'fr', 'it', 'ja', 'pt', 'pt_BR',
            'ru', 'uk', 'zh_CN')
 
     run(r'build pdf', 'build-thg/doc')
 
     if 'dulwich' in extensions:
-        # update and then build dulwich C extensions
-        run(r'hg update 8bd3be8bd8d79d1032d085b1e69832fdfb0a75a6', 'dulwich')
+        # build dulwich C extensions
         run(r'hg --config extensions.purge= purge --all', 'dulwich')
         run_python(r'setup.py build_ext -i', 'dulwich', env=get_sdkenv(arch))
     if 'keyring' in extensions:
         f = open(out, 'w')
         f.write('Extensions/modules included in this TortoiseHg package:\n\n')
         for ext in extensions:
-            run(r'hg -R %s pull -u' % ext)
+            run(r'hg -R %s pull' % ext)
+            if ext in extversions:
+                run(r'hg update %s' % extversions[ext], ext)
+            else:
+                run(r'hg update', ext)
             repo = hg.repository(ui.ui(), path=ext)
             f.write('%12s:\t%s\t%s\n' % (ext, str(repo['.']), URL[ext]))
         try: