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

Thomas Dalton thomas.dalton at gmail.com
Fri Nov 30 19:04:06 UTC 2007


On 30/11/2007, Daniel Barrett <danb at vistaprint.com> wrote:
> 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.

Does MediaWiki do that itself? There are file histories on all the
[[Image:X]] pages, aren't those what you want?



More information about the MediaWiki-l mailing list