[Mediawiki-l] Revision control of images via subversion?

Daniel Barrett danb at VistaPrint.com
Fri Nov 30 18:59:01 UTC 2007


Does anyone know of a MediaWiki extension to provide revision control
for uploaded images, say, via subversion?

On first thought it seems easy -- just let the /images folder be a
subversion working copy, and run hooks to do "svn add/commit" on upload
or "svn delete/commit" on deletion, providing the user comment as an svn
comment.  Maybe the hardest parts would be:

*	The necessary "svn add" operations when new subfolders get
created in  /images.
*	Adding this extension to an existing wiki that hasn't been
running it before (i.e., only some historical images will be in
subversion)
*	Doing a "history" command on an image file, as opposed to the
article in the Image: namespace... UI considerations....

A very simple, though incomplete, implementation, would be to run an svn
commit (and associated adds & deletes) every N minutes on /images.  That
might yield  80% of the benefits without writing an extension.

Thoughts?
DanB



More information about the MediaWiki-l mailing list