[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44245] trunk/blender/source/tools/ tag_release.py: script to generate commands needed to tag a release ( which has become fairly complicated).

Campbell Barton ideasman42 at gmail.com
Sun Feb 19 09:39:22 CET 2012


Revision: 44245
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44245
Author:   campbellbarton
Date:     2012-02-19 08:39:11 +0000 (Sun, 19 Feb 2012)
Log Message:
-----------
script to generate commands needed to tag a release (which has become fairly complicated).

Example output for 2.62:

# Run these commands from the blender source dir:
svn cp https://svn.blender.org/svnroot/bf-blender/trunk@r44136 https://svn.blender.org/svnroot/bf-blender/tags/blender-2.62-release -m "tagging blender release: blender-2.62-release, 44136"
svn cp https://svn.blender.org/svnroot/bf-extensions/trunk@r2994 https://svn.blender.org/svnroot/bf-extensions/tags/2_62_release -m "tagging blender release: 2_62_release, 2994"
svn cp https://svn.blender.org/svnroot/bf-translations/trunk@r392 https://svn.blender.org/svnroot/bf-translations/tags/2_62_release -m "tagging blender release: 2_62_release, 392"
svn sw https://svn.blender.org/svnroot/bf-blender/tags/blender-2.62-release/blender
svn propset svn:externals "addons https://svn.blender.org/svnroot/bf-extensions/tags/2_62_release/py/scripts/addons" release/scripts 
svn propset svn:externals "locale https://svn.blender.org/svnroot/bf-translations/tags/2_62_release/locale" release/datafiles
svn ci release/scripts release/datafiles -m "tagging blender release: blender-2.62-release, 44136"
svn sw https://svn.blender.org/svnroot/bf-blender/trunk/blender

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44136
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=2994
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=392

Added Paths:
-----------
    trunk/blender/source/tools/tag_release.py

Added: trunk/blender/source/tools/tag_release.py
===================================================================
--- trunk/blender/source/tools/tag_release.py	                        (rev 0)
+++ trunk/blender/source/tools/tag_release.py	2012-02-19 08:39:11 UTC (rev 44245)
@@ -0,0 +1,76 @@
+#!/usr/bin/env python
+
+REV_BLENDER = 44136
+REV_EXTENSIONS = 2994
+REV_LOCALE = 392
+
+TAG_BLENDER = "blender-2.62-release"
+TAG_EXTENSIONS = TAG_LOCALE = "2_62_release"
+
+print("\n# Run these commands from the blender source dir:")
+
+# -----------------------------------------------------------------------------
+# Blender
+
+print('svn cp '
+      'https://svn.blender.org/svnroot/bf-blender/trunk@r%d '
+      'https://svn.blender.org/svnroot/bf-blender/tags/%s '
+      '-m "tagging blender release: %s, %d"' %
+      (REV_BLENDER, TAG_BLENDER, TAG_BLENDER, REV_BLENDER))
+
+
+# -----------------------------------------------------------------------------
+# Extensions
+
+print('svn cp '
+      'https://svn.blender.org/svnroot/bf-extensions/trunk@r%d '
+      'https://svn.blender.org/svnroot/bf-extensions/tags/%s '
+      '-m "tagging blender release: %s, %d"' %
+      (REV_EXTENSIONS, TAG_EXTENSIONS, TAG_EXTENSIONS, REV_EXTENSIONS)
+      )
+
+
+# -----------------------------------------------------------------------------
+# Translations
+
+print('svn cp '
+      'https://svn.blender.org/svnroot/bf-translations/trunk@r%d '
+      'https://svn.blender.org/svnroot/bf-translations/tags/%s '
+      '-m "tagging blender release: %s, %d"' %
+      (REV_LOCALE, TAG_LOCALE, TAG_LOCALE, REV_LOCALE),
+      )
+
+
+# -----------------------------------------------------------------------------
+# Change externals
+
+# switch a checkout of trunk into the tag o avoid a second checkout
+# windows/osx may want to switch lib too.
+print('svn sw '
+      'https://svn.blender.org/svnroot/bf-blender/tags/%s/blender' %
+      (TAG_BLENDER, )
+      )
+
+# Change the extensions location, we can ignore addons_contrib here.
+print('svn propset svn:externals '
+      '"addons https://svn.blender.org/svnroot/bf-extensions/tags/%s/py/scripts/addons" '
+      'release/scripts ' %
+      (TAG_EXTENSIONS, )
+      )
+
+print('svn propset svn:externals '
+      '"locale https://svn.blender.org/svnroot/bf-translations/tags/%s/locale" '
+      'release/datafiles' %
+      (TAG_LOCALE, )
+      )
+
+print('svn ci '
+      'release/scripts '
+      'release/datafiles '
+      '-m "tagging blender release: %s, %d"' %
+      (TAG_BLENDER, REV_BLENDER)
+      )
+
+
+# switch back to trunk
+print("svn sw https://svn.blender.org/svnroot/bf-blender/trunk/blender")




More information about the Bf-blender-cvs mailing list