r98494 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98493‎ | r98494 | r98495 >
Date:00:23, 30 September 2011
Author:reedy
Status:resolved (Comments)
Tags:
Comment:
Add method for adding extensions to a release tarball

Untested, and not actually put into use yet
Modified paths:
  • /trunk/tools/make-release/make-release (modified) (history)

Diff [purge]

Index: trunk/tools/make-release/make-release
@@ -154,6 +154,17 @@
155155 sys.exit(1)
156156 print "Done"
157157
 158+def exportExtension(branch, extension, dir):
 159+ print "Exporting extension %s into %s branch..." % (extension, branch)
 160+ proc = subprocess.Popen(['svn', 'export', '-q', '--force',
 161+ 'svn+ssh://svn.wikimedia.org/svnroot/mediawiki/' + branch + '/extensions/' + extension,
 162+ dir + "/" extensions + "/" + extension
 163+ ])
 164+ if proc.wait() != 0:
 165+ print "svn export failed, exiting"
 166+ sys.exit(1)
 167+ print "Done"
 168+
158169 def makePatch(patchFileName, dir1, dir2, type):
159170 patchFile = open(patchFileName, 'w')
160171 args = ['diff', '-Nru']

Follow-up revisions

RevisionCommit summaryAuthorDate
r98514Fix path from r98494reedy14:06, 30 September 2011
r98515*(bug 26261) Bundle ParserFunctions extension with MediaWiki...reedy14:17, 30 September 2011

Comments

#Comment by Reedy (talk | contribs)   00:25, 30 September 2011

Will have a poke at testing this and working out how to decide what we want to add...

For the first usage.. just hard coding to load in ParserFunctions wouldn't be too bad

Status & tagging log