Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Wikitech

Open for adding Extensions into Subversion

 

 

First page Previous page 1 2 Next page Last page  View All Wikipedia wikitech RSS feed   Index | Next | Previous | View Threaded


dan_the_man at telus

May 8, 2008, 1:42 AM

Post #1 of 39 (317 views)
Permalink
Open for adding Extensions into Subversion

I'd just like to let the many a non-committer extension developer here
know that I am open for committing any sane extension (Yes, DPL does
count as sane in this category ;) heh...) into Subversion.

Nothing beats revision management. Even if it's not Wikimedia's SVN. I
even have my own repo for Wiki-Tools which I commit my variety of
extensions into. Once I look over SSH keys and a bit more on security
I'd even be willing to give other people commit access for those who
can't take the long wait to being able to get commit access to
Wikimedia's SVN.
But wherever it's managed, there is nothing like being able to
svn-update to grab all the new changes to extensions and keep yourself
running with good code. I personally get a very bad taste in my mouth
when I see an extension on MediaWiki.org which I am forced to use some
manual method of grabbing the data just to install it. I tend to avoid
installing those if possible. But not only does it ruin the taste of the
extension, it also means there aren't as many people poking in the code
and making sure it works right, and it's up to usable standards. Plus
Wikimedia's SVN has Betawiki's support.

So, I'm here basically saying... "If you have a sane extension up on
MediaWiki.org, I'd be happy to help commit it to Subversion so that
myself and other people can poke at it, translate it, and keep it nicely
working with MediaWiki. And also make it easier for people to get ahold
of the code. And I'll even be happy to apply any patches you have to
update your extension with new features you've made". Of course, I'm not
going to commit something completely stupid, but there is a small bit of
room for extensions which need a bit of standards tweaking after being
committed.
And yes, I'll probably periodically poke various developers as I find
extensions I personally would like to install, and ask them if they
would let me commit the extension to SVN, even just to make sure that I
can use a reliable extension rather than something left on the wiki.

--
~Daniel Friesen(Dantman) of:
-The Gaiapedia (http://gaia.wikia.com)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
-and Wiki-Tools.com (http://wiki-tools.com)


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


gerard.meijssen at gmail

May 8, 2008, 1:51 AM

Post #2 of 39 (309 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Hoi,
Can we talk about how we can even better support MediaWiki extensions..
Betawiki and SVN are only two aspects to make extensions work properly..
Tomorrow I am back home, currently in Milan Italy..
Thanks,
Gerard

On Thu, May 8, 2008 at 10:42 AM, DanTMan <dan_the_man[at]telus.net> wrote:

> I'd just like to let the many a non-committer extension developer here
> know that I am open for committing any sane extension (Yes, DPL does
> count as sane in this category ;) heh...) into Subversion.
>
> Nothing beats revision management. Even if it's not Wikimedia's SVN. I
> even have my own repo for Wiki-Tools which I commit my variety of
> extensions into. Once I look over SSH keys and a bit more on security
> I'd even be willing to give other people commit access for those who
> can't take the long wait to being able to get commit access to
> Wikimedia's SVN.
> But wherever it's managed, there is nothing like being able to
> svn-update to grab all the new changes to extensions and keep yourself
> running with good code. I personally get a very bad taste in my mouth
> when I see an extension on MediaWiki.org which I am forced to use some
> manual method of grabbing the data just to install it. I tend to avoid
> installing those if possible. But not only does it ruin the taste of the
> extension, it also means there aren't as many people poking in the code
> and making sure it works right, and it's up to usable standards. Plus
> Wikimedia's SVN has Betawiki's support.
>
> So, I'm here basically saying... "If you have a sane extension up on
> MediaWiki.org, I'd be happy to help commit it to Subversion so that
> myself and other people can poke at it, translate it, and keep it nicely
> working with MediaWiki. And also make it easier for people to get ahold
> of the code. And I'll even be happy to apply any patches you have to
> update your extension with new features you've made". Of course, I'm not
> going to commit something completely stupid, but there is a small bit of
> room for extensions which need a bit of standards tweaking after being
> committed.
> And yes, I'll probably periodically poke various developers as I find
> extensions I personally would like to install, and ask them if they
> would let me commit the extension to SVN, even just to make sure that I
> can use a reliable extension rather than something left on the wiki.
>
> --
> ~Daniel Friesen(Dantman) of:
> -The Gaiapedia (http://gaia.wikia.com)
> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> -and Wiki-Tools.com (http://wiki-tools.com)
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wikitech-l at antispam

May 8, 2008, 8:27 AM

Post #3 of 39 (304 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

I agree completely - it's hard to manage code and commit patches to
extensions like this - version control is very powerful thing.

I was hesitant to add my extensions to MW repository for it's lack of
tagging and branching (obviously it's limited because it's one big repo for
all code). That's why I just created Google Code Hosting account and
creating repos for each of my extensions there.

I think it's reasonable to expect this and many developers do use Source
Forge or Google Code Hosting - I think overall extension management policy /
best practices should keep this in mind.

Thank you,

Sergey


--
Sergey Chernyshev
http://www.sergeychernyshev.com/

On Thu, May 8, 2008 at 4:51 AM, Gerard Meijssen <gerard.meijssen[at]gmail.com>
wrote:

> Hoi,
> Can we talk about how we can even better support MediaWiki extensions..
> Betawiki and SVN are only two aspects to make extensions work properly..
> Tomorrow I am back home, currently in Milan Italy..
> Thanks,
> Gerard
>
> On Thu, May 8, 2008 at 10:42 AM, DanTMan <dan_the_man[at]telus.net> wrote:
>
> > I'd just like to let the many a non-committer extension developer here
> > know that I am open for committing any sane extension (Yes, DPL does
> > count as sane in this category ;) heh...) into Subversion.
> >
> > Nothing beats revision management. Even if it's not Wikimedia's SVN. I
> > even have my own repo for Wiki-Tools which I commit my variety of
> > extensions into. Once I look over SSH keys and a bit more on security
> > I'd even be willing to give other people commit access for those who
> > can't take the long wait to being able to get commit access to
> > Wikimedia's SVN.
> > But wherever it's managed, there is nothing like being able to
> > svn-update to grab all the new changes to extensions and keep yourself
> > running with good code. I personally get a very bad taste in my mouth
> > when I see an extension on MediaWiki.org which I am forced to use some
> > manual method of grabbing the data just to install it. I tend to avoid
> > installing those if possible. But not only does it ruin the taste of the
> > extension, it also means there aren't as many people poking in the code
> > and making sure it works right, and it's up to usable standards. Plus
> > Wikimedia's SVN has Betawiki's support.
> >
> > So, I'm here basically saying... "If you have a sane extension up on
> > MediaWiki.org, I'd be happy to help commit it to Subversion so that
> > myself and other people can poke at it, translate it, and keep it nicely
> > working with MediaWiki. And also make it easier for people to get ahold
> > of the code. And I'll even be happy to apply any patches you have to
> > update your extension with new features you've made". Of course, I'm not
> > going to commit something completely stupid, but there is a small bit of
> > room for extensions which need a bit of standards tweaking after being
> > committed.
> > And yes, I'll probably periodically poke various developers as I find
> > extensions I personally would like to install, and ask them if they
> > would let me commit the extension to SVN, even just to make sure that I
> > can use a reliable extension rather than something left on the wiki.
> >
> > --
> > ~Daniel Friesen(Dantman) of:
> > -The Gaiapedia (http://gaia.wikia.com)
> > -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> > -and Wiki-Tools.com (http://wiki-tools.com)
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Simetrical+wikilist at gmail

May 8, 2008, 8:32 AM

Post #4 of 39 (305 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

On Thu, May 8, 2008 at 11:27 AM, Sergey Chernyshev
<wikitech-l[at]antispam.sergeychernyshev.com> wrote:
> I was hesitant to add my extensions to MW repository for it's lack of
> tagging and branching (obviously it's limited because it's one big repo for
> all code).

We have tags and branches.

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wikitech-l at antispam

May 8, 2008, 9:22 AM

Post #5 of 39 (305 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

But not for extensions themselves, just for the main code right?

On Thu, May 8, 2008 at 11:32 AM, Simetrical
<Simetrical+wikilist[at]gmail.com<Simetrical%2Bwikilist[at]gmail.com>>
wrote:

> On Thu, May 8, 2008 at 11:27 AM, Sergey Chernyshev
> <wikitech-l[at]antispam.sergeychernyshev.com> wrote:
> > I was hesitant to add my extensions to MW repository for it's lack of
> > tagging and branching (obviously it's limited because it's one big repo
> for
> > all code).
>
> We have tags and branches.
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



--
Sergey Chernyshev
http://www.sergeychernyshev.com/
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Simetrical+wikilist at gmail

May 8, 2008, 9:38 AM

Post #6 of 39 (304 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

On Thu, May 8, 2008 at 12:22 PM, Sergey Chernyshev
<wikitech-l[at]antispam.sergeychernyshev.com> wrote:
> But not for extensions themselves, just for the main code right?

Committers are free to create whatever tags or branches they like. In
practice, nobody does, but there's no reason that has to be the case.

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


s.mazeland at xs4all

May 8, 2008, 9:41 AM

Post #7 of 39 (305 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Exception to the rule was the branch Evan created for the rewrite of the
OpenID extension recently. So it *is* actually being done...

Siebrand

-----Oorspronkelijk bericht-----
Van: wikitech-l-bounces[at]lists.wikimedia.org
[mailto:wikitech-l-bounces[at]lists.wikimedia.org] Namens Simetrical
Verzonden: donderdag 8 mei 2008 18:38
Aan: Wikimedia developers
Onderwerp: Re: [Wikitech-l] Open for adding Extensions into Subversion

On Thu, May 8, 2008 at 12:22 PM, Sergey Chernyshev
<wikitech-l[at]antispam.sergeychernyshev.com> wrote:
> But not for extensions themselves, just for the main code right?

Committers are free to create whatever tags or branches they like. In
practice, nobody does, but there's no reason that has to be the case.


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Simetrical+wikilist at gmail

May 8, 2008, 9:45 AM

Post #8 of 39 (305 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

On Thu, May 8, 2008 at 12:41 PM, Siebrand Mazeland <s.mazeland[at]xs4all.nl> wrote:
> Exception to the rule was the branch Evan created for the rewrite of the
> OpenID extension recently. So it *is* actually being done...

LuceneSearch-ajax is a branch used by an extension. Evan is tagging
his releases, you're right, although no one else is at present:

http://svn.wikimedia.org/viewvc/mediawiki/tags/extensions/OpenID/

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


marco at harddisk

May 8, 2008, 10:37 AM

Post #9 of 39 (305 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Sergey Chernyshev schrieb:
> I agree completely - it's hard to manage code and commit patches to
> extensions like this - version control is very powerful thing.
>
> I was hesitant to add my extensions to MW repository for it's lack of
> tagging and branching (obviously it's limited because it's one big repo for
> all code). That's why I just created Google Code Hosting account and
> creating repos for each of my extensions there.
>
> I think it's reasonable to expect this and many developers do use Source
> Forge or Google Code Hosting - I think overall extension management policy /
> best practices should keep this in mind.
Why doesn't Wikimedia switch to git for version control? It's way more
powerful than svn...
I think about something like the linux-wireless devs do: They base on
linux tree, and add their code to their own repo; but if something gets
changed in Linux kernel repo, it gets into linux-wireless automatically
=> you can check out a full kernel from linux wireless.
So why don't we make one git repo for the main code, and for every
extension/project/whatever another one, which bases on the MW repo?

Marco


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


brion at wikimedia

May 8, 2008, 10:48 AM

Post #10 of 39 (304 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marco Schuster wrote:
> Why doesn't Wikimedia switch to git for version control? It's way more
> powerful than svn...

For a couple things:
* poor cross-platform support
* poor third-party tool integration
* even steeper learning curve to hop into

Then there's the basic fact that I'd prefer to avoid hopping into the
which-distributed-source-control-is-best war while it's still raging. :)

- -- brion vibber (brion @ wikimedia.org)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgjPPkACgkQwRnhpk1wk45nygCg3kb4Ak1eoHd6JDCImhxYTCsC
eckAn03XZ6Bs/uROSROAmNpYiXbmWbE1
=Bf+L
-----END PGP SIGNATURE-----

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


ml at juliano

May 8, 2008, 11:45 AM

Post #11 of 39 (304 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Marco Schuster wrote:
> Why doesn't Wikimedia switch to git for version control?

Why it should?

> It's way more powerful than svn...

That is *very* questionable.

Subversion uses a client-server model, while Git uses a distributed
model. That alone doesn't make Git any more powerful than Subversion,
just different.

It is very common these days people who think that Git is the best VCS
in the world, just because it was created by The Almighty Omnipotent
Supreme Being Linus Torvalds, and then they try to persuade every single
project using other VCSes to switch to a "superior" system. They ignore
the technical aspects of each VCS, and force the same trousers to fit on
everyone.

Git has many deficiencies compared to Subversion, that Git proponents
usually ignore either because they never used anything else, or because
they hold very strong emotions towards anything that Torvalds says.

I have used lots of different VCSes, from CVS to half all those
distributed VCSes that popped up the last two years, and in my
not-so-humble opinion, Subversion is still a very good match against
most of them.

MediaWiki is using Subversion for some time now, and it is serving their
developers fine. Converting everything to Git just because "it's way
more powerful" is just stupid. Not only it would require a lot of
additional manpower to convert the repository (because neither
git-svnimport nor git-svn do a good job at converting, without very good
babysitting), it would require all developers to learn to use a new
different tool.

> I think about something like the linux-wireless devs do: They base on
> linux tree, and add their code to their own repo; but if something gets
> changed in Linux kernel repo, it gets into linux-wireless automatically
> => you can check out a full kernel from linux wireless.

Git was designed to serve the kernel developers, so it makes a lot of
sense to use Git for the linux-wireless project. But MediaWiki is not
Linux. Each project has its own needs.

> So why don't we make one git repo for the main code, and for every
> extension/project/whatever another one, which bases on the MW repo?

No, that wouldn't fit nice on MediaWiki.

In MediaWiki repository, since 1.10, branches and tags carry both
MediaWiki core (phase3) and extensions directories, so you go into, e.g.
REL1_11 branch, you have both core and extensions that are supposed to
be compatible with each other.

In Git, you would be either forced to use a single repository for each
extension, what would kill this single branch convenience; or have a
huge repository for everything, being forced to download the entire
repository even if the only thing you need is the core, since Git
doesn't allow partial checkouts.

If you really want to use Git, nothing prevents you from using git-svn
on your computer to access MediaWiki repository. Or better yet, use SVK,
that plugs really nice to the Subversion repository, is distributed, and
properly supports Subversion features.

And the following articles make a very good read:
http://blog.red-bean.com/sussman/?p=20
http://blog.red-bean.com/sussman/?p=79
http://svn.haxx.se/dev/archive-2007-06/0780.shtml

--
Juliano F. Ravasi ·· http://juliano.info/
5105 46CC B2B7 F0CD 5F47 E740 72CA 54F4 DF37 9E96

"A candle loses nothing by lighting another candle." -- Erin Majors

* NOTE: Don't try to reach me through this address, use "contact@" instead.

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


chuwiey at gmail

May 8, 2008, 3:16 PM

Post #12 of 39 (304 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

DanTMan wrote:
> I'd just like to let the many a non-committer extension developer here
> know that I am open for committing any sane extension (Yes, DPL does
> count as sane in this category ;) heh...) into Subversion.
>
> Nothing beats revision management. Even if it's not Wikimedia's SVN. I
> even have my own repo for Wiki-Tools which I commit my variety of
> extensions into. Once I look over SSH keys and a bit more on security
> I'd even be willing to give other people commit access for those who
> can't take the long wait to being able to get commit access to
> Wikimedia's SVN.
> But wherever it's managed, there is nothing like being able to
> svn-update to grab all the new changes to extensions and keep yourself
> running with good code. I personally get a very bad taste in my mouth
> when I see an extension on MediaWiki.org which I am forced to use some
> manual method of grabbing the data just to install it. I tend to avoid
> installing those if possible. But not only does it ruin the taste of the
> extension, it also means there aren't as many people poking in the code
> and making sure it works right, and it's up to usable standards. Plus
> Wikimedia's SVN has Betawiki's support.
>
> So, I'm here basically saying... "If you have a sane extension up on
> MediaWiki.org, I'd be happy to help commit it to Subversion so that
> myself and other people can poke at it, translate it, and keep it nicely
> working with MediaWiki. And also make it easier for people to get ahold
> of the code. And I'll even be happy to apply any patches you have to
> update your extension with new features you've made". Of course, I'm not
> going to commit something completely stupid, but there is a small bit of
> room for extensions which need a bit of standards tweaking after being
> committed.
> And yes, I'll probably periodically poke various developers as I find
> extensions I personally would like to install, and ask them if they
> would let me commit the extension to SVN, even just to make sure that I
> can use a reliable extension rather than something left on the wiki.
>

So, where do we bug you with extensions we want to svn-commit? :)

-Wiredtape


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


dan_the_man at telus

May 8, 2008, 8:14 PM

Post #13 of 39 (298 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Hmmm... wherever you feel... Don't know what is the best place.
If you want, I can setup a mini page on Wiki-Tools.
^_^ Actually, one of these days I want to create a Bounty site... In
other words... Basically a site where people can post up extensions and
features they want, people can pitch in if they're willing to pay for
such a feature to be built, and someone can come, develop the feature
and claim the bounty. Kinda like CoFundOS... But I had real issues with
some of how they work.

Actually... When I get my bugtracker up and running, I can add a project
into it for people to use the tracker to note extensions they want
committed.

~Daniel Friesen(Dantman) of:
-The Gaiapedia (http://gaia.wikia.com)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
-and Wiki-Tools.com (http://wiki-tools.com)

Ben wrote:
> DanTMan wrote:
>
>> I'd just like to let the many a non-committer extension developer here
>> know that I am open for committing any sane extension (Yes, DPL does
>> count as sane in this category ;) heh...) into Subversion.
>>
>> Nothing beats revision management. Even if it's not Wikimedia's SVN. I
>> even have my own repo for Wiki-Tools which I commit my variety of
>> extensions into. Once I look over SSH keys and a bit more on security
>> I'd even be willing to give other people commit access for those who
>> can't take the long wait to being able to get commit access to
>> Wikimedia's SVN.
>> But wherever it's managed, there is nothing like being able to
>> svn-update to grab all the new changes to extensions and keep yourself
>> running with good code. I personally get a very bad taste in my mouth
>> when I see an extension on MediaWiki.org which I am forced to use some
>> manual method of grabbing the data just to install it. I tend to avoid
>> installing those if possible. But not only does it ruin the taste of the
>> extension, it also means there aren't as many people poking in the code
>> and making sure it works right, and it's up to usable standards. Plus
>> Wikimedia's SVN has Betawiki's support.
>>
>> So, I'm here basically saying... "If you have a sane extension up on
>> MediaWiki.org, I'd be happy to help commit it to Subversion so that
>> myself and other people can poke at it, translate it, and keep it nicely
>> working with MediaWiki. And also make it easier for people to get ahold
>> of the code. And I'll even be happy to apply any patches you have to
>> update your extension with new features you've made". Of course, I'm not
>> going to commit something completely stupid, but there is a small bit of
>> room for extensions which need a bit of standards tweaking after being
>> committed.
>> And yes, I'll probably periodically poke various developers as I find
>> extensions I personally would like to install, and ask them if they
>> would let me commit the extension to SVN, even just to make sure that I
>> can use a reliable extension rather than something left on the wiki.
>>
>>
>
> So, where do we bug you with extensions we want to svn-commit? :)
>
> -Wiredtape
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


chuwiey at gmail

May 8, 2008, 8:29 PM

Post #14 of 39 (299 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Sounds like a great idea :) -> for now though, should we head to the
wiki-tools page? (url please.. )
DanTMan wrote:
> Hmmm... wherever you feel... Don't know what is the best place.
> If you want, I can setup a mini page on Wiki-Tools.
> ^_^ Actually, one of these days I want to create a Bounty site... In
> other words... Basically a site where people can post up extensions and
> features they want, people can pitch in if they're willing to pay for
> such a feature to be built, and someone can come, develop the feature
> and claim the bounty. Kinda like CoFundOS... But I had real issues with
> some of how they work.
>
> Actually... When I get my bugtracker up and running, I can add a project
> into it for people to use the tracker to note extensions they want
> committed.
>
> ~Daniel Friesen(Dantman) of:
> -The Gaiapedia (http://gaia.wikia.com)
> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> -and Wiki-Tools.com (http://wiki-tools.com)
>
> Ben wrote:
>> DanTMan wrote:
>>
>>> I'd just like to let the many a non-committer extension developer here
>>> know that I am open for committing any sane extension (Yes, DPL does
>>> count as sane in this category ;) heh...) into Subversion.
>>>
>>> Nothing beats revision management. Even if it's not Wikimedia's SVN. I
>>> even have my own repo for Wiki-Tools which I commit my variety of
>>> extensions into. Once I look over SSH keys and a bit more on security
>>> I'd even be willing to give other people commit access for those who
>>> can't take the long wait to being able to get commit access to
>>> Wikimedia's SVN.
>>> But wherever it's managed, there is nothing like being able to
>>> svn-update to grab all the new changes to extensions and keep yourself
>>> running with good code. I personally get a very bad taste in my mouth
>>> when I see an extension on MediaWiki.org which I am forced to use some
>>> manual method of grabbing the data just to install it. I tend to avoid
>>> installing those if possible. But not only does it ruin the taste of the
>>> extension, it also means there aren't as many people poking in the code
>>> and making sure it works right, and it's up to usable standards. Plus
>>> Wikimedia's SVN has Betawiki's support.
>>>
>>> So, I'm here basically saying... "If you have a sane extension up on
>>> MediaWiki.org, I'd be happy to help commit it to Subversion so that
>>> myself and other people can poke at it, translate it, and keep it nicely
>>> working with MediaWiki. And also make it easier for people to get ahold
>>> of the code. And I'll even be happy to apply any patches you have to
>>> update your extension with new features you've made". Of course, I'm not
>>> going to commit something completely stupid, but there is a small bit of
>>> room for extensions which need a bit of standards tweaking after being
>>> committed.
>>> And yes, I'll probably periodically poke various developers as I find
>>> extensions I personally would like to install, and ask them if they
>>> would let me commit the extension to SVN, even just to make sure that I
>>> can use a reliable extension rather than something left on the wiki.
>>>
>>>
>> So, where do we bug you with extensions we want to svn-commit? :)
>>
>> -Wiredtape
>>
>>
>> _______________________________________________
>> Wikitech-l mailing list
>> Wikitech-l[at]lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
>>


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


dan_the_man at telus

May 8, 2008, 8:46 PM

Post #15 of 39 (298 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Ok for now you can use this page:
http://wiki-tools.com/wiki/Wiki-Tools:Wikimedia_SVN_-_Extension_Commits

I've got mw and MediaWiki as interwiki listed.
Full list at:
http://commons.nadir-point.com/wiki/Special:Interwiki
Tell me if you need any, I'm using shared interwiki... ^_^ Why do you
think I rewrote tableName and built a patch for 1.12
<http://wiki-tools.com/wiki/Shared_Tables_in_1.12>, heh...

Oh... If you ever run into a 502 - Bad Gateway... My PHP FastCGI
instance dies sometime. Just tell me and I'll start it back up. Don't
worry about the future, I'm planning on configuring God
<http://god.rubyforge.org> after I get SHID (The SSO system going to be
used on my sites) built.

~Daniel Friesen(Dantman) of:
-The Gaiapedia (http://gaia.wikia.com)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
-and Wiki-Tools.com (http://wiki-tools.com)

Ben wrote:
> Sounds like a great idea :) -> for now though, should we head to the
> wiki-tools page? (url please.. )
> DanTMan wrote:
>
>> Hmmm... wherever you feel... Don't know what is the best place.
>> If you want, I can setup a mini page on Wiki-Tools.
>> ^_^ Actually, one of these days I want to create a Bounty site... In
>> other words... Basically a site where people can post up extensions and
>> features they want, people can pitch in if they're willing to pay for
>> such a feature to be built, and someone can come, develop the feature
>> and claim the bounty. Kinda like CoFundOS... But I had real issues with
>> some of how they work.
>>
>> Actually... When I get my bugtracker up and running, I can add a project
>> into it for people to use the tracker to note extensions they want
>> committed.
>>
>> ~Daniel Friesen(Dantman) of:
>> -The Gaiapedia (http://gaia.wikia.com)
>> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
>> -and Wiki-Tools.com (http://wiki-tools.com)
>>
>> Ben wrote:
>>
>>> DanTMan wrote:
>>>
>>>
>>>> I'd just like to let the many a non-committer extension developer here
>>>> know that I am open for committing any sane extension (Yes, DPL does
>>>> count as sane in this category ;) heh...) into Subversion.
>>>>
>>>> Nothing beats revision management. Even if it's not Wikimedia's SVN. I
>>>> even have my own repo for Wiki-Tools which I commit my variety of
>>>> extensions into. Once I look over SSH keys and a bit more on security
>>>> I'd even be willing to give other people commit access for those who
>>>> can't take the long wait to being able to get commit access to
>>>> Wikimedia's SVN.
>>>> But wherever it's managed, there is nothing like being able to
>>>> svn-update to grab all the new changes to extensions and keep yourself
>>>> running with good code. I personally get a very bad taste in my mouth
>>>> when I see an extension on MediaWiki.org which I am forced to use some
>>>> manual method of grabbing the data just to install it. I tend to avoid
>>>> installing those if possible. But not only does it ruin the taste of the
>>>> extension, it also means there aren't as many people poking in the code
>>>> and making sure it works right, and it's up to usable standards. Plus
>>>> Wikimedia's SVN has Betawiki's support.
>>>>
>>>> So, I'm here basically saying... "If you have a sane extension up on
>>>> MediaWiki.org, I'd be happy to help commit it to Subversion so that
>>>> myself and other people can poke at it, translate it, and keep it nicely
>>>> working with MediaWiki. And also make it easier for people to get ahold
>>>> of the code. And I'll even be happy to apply any patches you have to
>>>> update your extension with new features you've made". Of course, I'm not
>>>> going to commit something completely stupid, but there is a small bit of
>>>> room for extensions which need a bit of standards tweaking after being
>>>> committed.
>>>> And yes, I'll probably periodically poke various developers as I find
>>>> extensions I personally would like to install, and ask them if they
>>>> would let me commit the extension to SVN, even just to make sure that I
>>>> can use a reliable extension rather than something left on the wiki.
>>>>
>>>>
>>>>
>>> So, where do we bug you with extensions we want to svn-commit? :)
>>>
>>> -Wiredtape
>>>
>>>
>>> _______________________________________________
>>> Wikitech-l mailing list
>>> Wikitech-l[at]lists.wikimedia.org
>>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>>
>>>
>>>
>
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


innocentkiller at gmail

May 9, 2008, 4:40 AM

Post #16 of 39 (282 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

If you're using mw: an interwiki, might I suggest links to
Wikimedia's bugzilla and SVN repo as well?

-Chad

On Thu, May 8, 2008 at 11:46 PM, DanTMan <dan_the_man[at]telus.net> wrote:
> Ok for now you can use this page:
> http://wiki-tools.com/wiki/Wiki-Tools:Wikimedia_SVN_-_Extension_Commits
>
> I've got mw and MediaWiki as interwiki listed.
> Full list at:
> http://commons.nadir-point.com/wiki/Special:Interwiki
> Tell me if you need any, I'm using shared interwiki... ^_^ Why do you
> think I rewrote tableName and built a patch for 1.12
> <http://wiki-tools.com/wiki/Shared_Tables_in_1.12>, heh...
>
> Oh... If you ever run into a 502 - Bad Gateway... My PHP FastCGI
> instance dies sometime. Just tell me and I'll start it back up. Don't
> worry about the future, I'm planning on configuring God
> <http://god.rubyforge.org> after I get SHID (The SSO system going to be
> used on my sites) built.
>
> ~Daniel Friesen(Dantman) of:
> -The Gaiapedia (http://gaia.wikia.com)
> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
> -and Wiki-Tools.com (http://wiki-tools.com)
>
> Ben wrote:
>> Sounds like a great idea :) -> for now though, should we head to the
>> wiki-tools page? (url please.. )
>> DanTMan wrote:
>>
>>> Hmmm... wherever you feel... Don't know what is the best place.
>>> If you want, I can setup a mini page on Wiki-Tools.
>>> ^_^ Actually, one of these days I want to create a Bounty site... In
>>> other words... Basically a site where people can post up extensions and
>>> features they want, people can pitch in if they're willing to pay for
>>> such a feature to be built, and someone can come, develop the feature
>>> and claim the bounty. Kinda like CoFundOS... But I had real issues with
>>> some of how they work.
>>>
>>> Actually... When I get my bugtracker up and running, I can add a project
>>> into it for people to use the tracker to note extensions they want
>>> committed.
>>>
>>> ~Daniel Friesen(Dantman) of:
>>> -The Gaiapedia (http://gaia.wikia.com)
>>> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
>>> -and Wiki-Tools.com (http://wiki-tools.com)
>>>
>>> Ben wrote:
>>>
>>>> DanTMan wrote:
>>>>
>>>>
>>>>> I'd just like to let the many a non-committer extension developer here
>>>>> know that I am open for committing any sane extension (Yes, DPL does
>>>>> count as sane in this category ;) heh...) into Subversion.
>>>>>
>>>>> Nothing beats revision management. Even if it's not Wikimedia's SVN. I
>>>>> even have my own repo for Wiki-Tools which I commit my variety of
>>>>> extensions into. Once I look over SSH keys and a bit more on security
>>>>> I'd even be willing to give other people commit access for those who
>>>>> can't take the long wait to being able to get commit access to
>>>>> Wikimedia's SVN.
>>>>> But wherever it's managed, there is nothing like being able to
>>>>> svn-update to grab all the new changes to extensions and keep yourself
>>>>> running with good code. I personally get a very bad taste in my mouth
>>>>> when I see an extension on MediaWiki.org which I am forced to use some
>>>>> manual method of grabbing the data just to install it. I tend to avoid
>>>>> installing those if possible. But not only does it ruin the taste of the
>>>>> extension, it also means there aren't as many people poking in the code
>>>>> and making sure it works right, and it's up to usable standards. Plus
>>>>> Wikimedia's SVN has Betawiki's support.
>>>>>
>>>>> So, I'm here basically saying... "If you have a sane extension up on
>>>>> MediaWiki.org, I'd be happy to help commit it to Subversion so that
>>>>> myself and other people can poke at it, translate it, and keep it nicely
>>>>> working with MediaWiki. And also make it easier for people to get ahold
>>>>> of the code. And I'll even be happy to apply any patches you have to
>>>>> update your extension with new features you've made". Of course, I'm not
>>>>> going to commit something completely stupid, but there is a small bit of
>>>>> room for extensions which need a bit of standards tweaking after being
>>>>> committed.
>>>>> And yes, I'll probably periodically poke various developers as I find
>>>>> extensions I personally would like to install, and ask them if they
>>>>> would let me commit the extension to SVN, even just to make sure that I
>>>>> can use a reliable extension rather than something left on the wiki.
>>>>>
>>>>>
>>>>>
>>>> So, where do we bug you with extensions we want to svn-commit? :)
>>>>
>>>> -Wiredtape
>>>>
>>>>
>>>> _______________________________________________
>>>> Wikitech-l mailing list
>>>> Wikitech-l[at]lists.wikimedia.org
>>>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>>>
>>>>
>>>>
>>
>>
>> _______________________________________________
>> Wikitech-l mailing list
>> Wikitech-l[at]lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>
>>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Simetrical+wikilist at gmail

May 9, 2008, 6:52 AM

Post #17 of 39 (278 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

On Thu, May 8, 2008 at 2:21 PM, Marco Schuster
<marco[at]harddisk.is-a-geek.org> wrote:
> Why doesn't Wikimedia switch to git for version control? It's way more
> powerful than svn...

git is completely unacceptable due to poor Windows support alone.
(Writing large parts of it in bash was not a good portability move.)
It also has the drawback that it would require careful thought on how
to split up our current giant monolithic repo in a useful fashion;
it's not quite clear to me how that might best be done.

Mercurial looks like a better option. It's what Mozilla chose, after
some thought (and they had similar requirements to ours, although I
assume their codebase is larger). It has cross-platform support;
unfortunately, it seems not to allow partial checkouts either. It has
the reputation of being significantly simpler than git.

Overall, I think we're okay for now, and we'd best let the dust settle
before switching to some new-fangled RCS.

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wikitech-l at antispam

May 9, 2008, 7:26 AM

Post #18 of 39 (279 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

I see, so it was a matter of poor adoption and not restriction. It looks
like I misunderstood the words "*Don't touch the release tags at all. Ever!*"
on http://www.mediawiki.org/wiki/Commit_access page - they were just about
MediaWiki releases and other tags a encouraged.

It's definitely makes a big difference for me as developer since not having
a way to support deployment is a deal breaker for me.

I really prefer to have my extensions in MW repository - so the next
question then is what are the guidelines for SVN usage for Extension
developers (especially tagging so developers of code-rich extensions like
Semantic Forms and Semantic MediaWiki can use it), and how does one get
commit access to the repository ;) Also, can you guys import a project from
another repository, e.g. Google code hosting (first two in line will be
"Header Tabs" and "Widgets" extensions)?

Sergey


--
Sergey Chernyshev
http://www.sergeychernyshev.com/


On Thu, May 8, 2008 at 12:45 PM, Simetrical
<Simetrical+wikilist[at]gmail.com<Simetrical%2Bwikilist[at]gmail.com>>
wrote:

> On Thu, May 8, 2008 at 12:41 PM, Siebrand Mazeland <s.mazeland[at]xs4all.nl>
> wrote:
> > Exception to the rule was the branch Evan created for the rewrite of the
> > OpenID extension recently. So it *is* actually being done...
>
> LuceneSearch-ajax is a branch used by an extension. Evan is tagging
> his releases, you're right, although no one else is at present:
>
> http://svn.wikimedia.org/viewvc/mediawiki/tags/extensions/OpenID/
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


roan.kattouw at home

May 9, 2008, 7:33 AM

Post #19 of 39 (278 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Sergey Chernyshev schreef:
> I really prefer to have my extensions in MW repository - so the next
> question then is what are the guidelines for SVN usage for Extension
> developers (especially tagging so developers of code-rich extensions like
> Semantic Forms and Semantic MediaWiki can use it),
The idea is that you put your extension in
/mediawiki/trunk/extensions/ExtensionName/ . How you organize that
directory is more or less up to you, although there is a convention to
call the setup file (the one that's included in LocalSettings.php)
ExtensionName.setup.php or ExtensionName.php , the file with the
interface messages and their translations ExtensionName.i18n.php and the
file with the actual code ExtensionName.body.php . Larger extensions
will probably want to put classes in their own files, and put the 'main'
code flow in the .body.php file.
> and how does one get
> commit access to the repository ;)
Ask Brion Vibber. To quote him, commit access is granted to everyone who
asks for it and has shown they're not a baboon. In practice, that means
either having submitted a few patches to BugZilla or maintaining an
extension.
> Also, can you guys import a project from
> another repository, e.g. Google code hosting (first two in line will be
> "Header Tabs" and "Widgets" extensions)?
Importing the files in their current state is pretty easy. Importing the
files with history is probably gonna be tricky.

Roan Kattouw (Catrope)

_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


wikitech-l at antispam

May 9, 2008, 8:19 AM

Post #20 of 39 (278 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Thanks, Roan. I'll email Brion and we'll go from there - I think it's not a
big deal for my extensions to be moved over without history because there is
not much history there - just a few releases.

I know about file naming traditions and will consider splitting the code
once it grows bigger.

My main question is about release tags - do I just tag the like
http://svn.wikimedia.org/viewvc/mediawiki/tags/extensions/Widgets/REL_0_5/and
that's it or are there any other best practices? Maybe it's worth
creating the page for "Extension SVN-ing Enleashed" ;)

Sergey


On Fri, May 9, 2008 at 10:33 AM, Roan Kattouw <roan.kattouw[at]home.nl> wrote:

> Sergey Chernyshev schreef:
> > I really prefer to have my extensions in MW repository - so the next
> > question then is what are the guidelines for SVN usage for Extension
> > developers (especially tagging so developers of code-rich extensions like
> > Semantic Forms and Semantic MediaWiki can use it),
> The idea is that you put your extension in
> /mediawiki/trunk/extensions/ExtensionName/ . How you organize that
> directory is more or less up to you, although there is a convention to
> call the setup file (the one that's included in LocalSettings.php)
> ExtensionName.setup.php or ExtensionName.php , the file with the
> interface messages and their translations ExtensionName.i18n.php and the
> file with the actual code ExtensionName.body.php . Larger extensions
> will probably want to put classes in their own files, and put the 'main'
> code flow in the .body.php file.
> > and how does one get
> > commit access to the repository ;)
> Ask Brion Vibber. To quote him, commit access is granted to everyone who
> asks for it and has shown they're not a baboon. In practice, that means
> either having submitted a few patches to BugZilla or maintaining an
> extension.
> > Also, can you guys import a project from
> > another repository, e.g. Google code hosting (first two in line will be
> > "Header Tabs" and "Widgets" extensions)?
> Importing the files in their current state is pretty easy. Importing the
> files with history is probably gonna be tricky.
>
> Roan Kattouw (Catrope)
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>



--
Sergey Chernyshev
http://www.sergeychernyshev.com/
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


roan.kattouw at home

May 9, 2008, 8:28 AM

Post #21 of 39 (278 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Sergey Chernyshev schreef:
> I think it's not a
> big deal for my extensions to be moved over without history because there is
> not much history there - just a few releases.
>
In that case checking in your extension is simple. After you've been
given commit access, check out the extensions/ directory, create a new
directory inside it and copy your code there. Then add your directory
('svn add' on the command line or right-click->Add in TortoiseSVN) and
commit your changes. You could of course tag your previous releases.
> My main question is about release tags - do I just tag the like
> http://svn.wikimedia.org/viewvc/mediawiki/tags/extensions/Widgets/REL_0_5/
Well, yeah. SVN doesn't support tags as natively as some other version
control systems do. The idea is that you just create a directory and
copy your files there. The nice thing here is that SVN makes shallow
copies: i.e. it doesn't actually copy the files, it just registers that
the tagged file's content is identical to a previous version of another
file, saving disk space. The "don't touch release tags - ever" thing
means that you shouldn't ever touch an existing tag, unless you have
very good reasons to (those reasons usually include being the one who
created the tag in the first place).

Roan Kattouw (Catrope)


_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


dan_the_man at telus

May 9, 2008, 8:49 AM

Post #22 of 39 (279 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Magic Words also normally go in a:
ExtensionName.i18n.magic.php

And for special pages:
Special/SpecialPageName/.php and the class name should be the exact same
as the filename without the .php

For the i18n files you also use $messages and $words for the magic word
ones.

There are also some semi-enforced conventions in coding... What I kind
of refer to as 'Standards' when I offer to help fix up an extension.

For the most part those are things like:
- Use $wgSpecialPages, not SpecialPage::addPage because the former is
less weight and the latter is depreciated.
- Use wfLoadMessage and a i18n file rather than using the
ExtensionFunction to load all the messages in. This improves performance
as well.
- The standard of ExtensionName(.setup).php, and such is mildly enforced
to... I've seen Tim take a number of old extensions and change them to
reflect the standard among extensions.
- Comment your files with a license or add a LICENSE or COPYING file.
Only Free-License stuff goes into SVN so it should be marked as such.
- It's not written or really enforced or anything, but it's common and
good to see people using @author, @license, etc... to mark files.
- Add your extension into $wgExtensionCredits to mark that it's
installed. And it's good to give it a url linking to a page where it's
documented.
- Check if the 'MEDIAWIKI' is not defined! It's a security issue if
that's not there and you're running php code, so it's bad to see files
without that. I developed the habit of putting the line into i18n files
to, though don't know if other people do.
- Use $wgAutoloadClasses rather than loading php files directly.
- Use dirname(__FILE__) to determine the path to use for including
files. Don't rely on the include path, it can be a potential security
issue, but mainly, it adds more stat calls. One of Wikia's techs was
complaining that MediaWiki makes around 3000 stat calls trying to find
php files on each load and it slows things down.
- This is a new one, but if you have maintenance scripts in your
extension, they should make use of the MW_INCLUDE_PATH environment
variable if set when including things in the maintenance directory, and
dirname(__FILE__) when including other files inside the extension. See
CheckUser
<http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/CheckUser/install.php?revision=34107&view=markup>.
- Don't do what SMW did with it's setup script
<http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/SemanticMediaWiki/maintenance/SMW_setup.php?revision=34234&view=markup>,
making the user specify database user and password instead of using
AdminSettings.php is a major security flaw which is completely
avoidable. And the same goes for implying that the wiki's database user
should have administrative permissions like CREATE, DROP, and ALTER.
- Another one I drilled SMW on was temporary tables. When you are using
temporary tables, never use 'DROP' alone, you always use 'DROP
TEMPORARY', not only is it a safety to ensure you don't remove a real
table, if you don't use TEMPORARY then the wiki's database user is
required to have DROP permissions which is not secure. And there isn't
even any backwards compatibility issues. MySQL 4.0 ignores the TEMPORARY
so you won't break it.

Just a few off ones which are good to follow:
- If your ParserFunctions do conditional things, use the dom frames in
the new parser. Take a look at ParserFunctions
<http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ParserFunctions/ParserFunctions.php?revision=33047&view=markup>
to see how to.

The tricky thing about the conventions/standards is that they evolve, so
you don't always know if part of your own convention is being outdated
by something new in core.

There is one nice handy feature of core that I really wish extension
would actually make use of.
I see SMW, CheckUser, and piles of other extensions which require new
SQL and some setup. Some give you a SQL file to run raw (Actually, they
say to run it raw... But MediaWiki has a patchSql.php maintenance script
which you should actually run because it handles your variables and such
on it's own), and some others make an installation script for the
extension to handle SQL.
However, there is a very nice hook inside of MediaWiki I wish people
would use more.

For quite some time updaters.inc has had a LoadExtensionSchemaUpdates
hook. And the globals $wgExtNewTables, $wgExtNewFields,
$wgExtPGNewFields, and $wgExtNewIndexes all for extensions. And while I
don't know if it's something which is discouraged or not, but
$wgMysqlUpdates could be appended to if you need a function called back
to do schema stuff. Though, I expect that it's best if we tweaked
updaters.inc to support a $wgExtMysqlUpdates and $wgExtPGUpdates for those.
I honestly don't see people using them. But they would be great things
to use. They're hooks and they're included into the updaters.inc file.
All you'd have to do is hook into it and populate a few fields, and
magically anyone wanting to install your extension would only need to
include it into LocalSettings.php then run update.php.

~Daniel Friesen(Dantman) of:
-The Gaiapedia (http://gaia.wikia.com)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
-and Wiki-Tools.com (http://wiki-tools.com)

Roan Kattouw wrote:
> Sergey Chernyshev schreef:
>
>> I really prefer to have my extensions in MW repository - so the next
>> question then is what are the guidelines for SVN usage for Extension
>> developers (especially tagging so developers of code-rich extensions like
>> Semantic Forms and Semantic MediaWiki can use it),
>>
> The idea is that you put your extension in
> /mediawiki/trunk/extensions/ExtensionName/ . How you organize that
> directory is more or less up to you, although there is a convention to
> call the setup file (the one that's included in LocalSettings.php)
> ExtensionName.setup.php or ExtensionName.php , the file with the
> interface messages and their translations ExtensionName.i18n.php and the
> file with the actual code ExtensionName.body.php . Larger extensions
> will probably want to put classes in their own files, and put the 'main'
> code flow in the .body.php file.
>
>> and how does one get
>> commit access to the repository ;)
>>
> Ask Brion Vibber. To quote him, commit access is granted to everyone who
> asks for it and has shown they're not a baboon. In practice, that means
> either having submitted a few patches to BugZilla or maintaining an
> extension.
>
>> Also, can you guys import a project from
>> another repository, e.g. Google code hosting (first two in line will be
>> "Header Tabs" and "Widgets" extensions)?
>>
> Importing the files in their current state is pretty easy. Importing the
> files with history is probably gonna be tricky.
>
> Roan Kattouw (Catrope)
>
> _______________________________________________
> Wikitech-l mailing list
> Wikitech-l[at]lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>
>
_______________________________________________
Wikitech-l mailing list
Wikitech-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


dan_the_man at telus

May 9, 2008, 9:07 AM

Post #23 of 39 (279 views)
Permalink
Re: Open for adding Extensions into Subversion [In reply to]

Mediazilla: and WikimediaSVN: along with a shortcut for MediaWikiSVN added.

http://commons.nadir-point.com/wiki/Special:Interwiki

~Daniel Friesen(Dantman) of:
-The Gaiapedia (http://gaia.wikia.com)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
-and Wiki-Tools.com (http://wiki-tools.com)

Chad wrote:
> If you're using mw: an interwiki, might I suggest links to
> Wikimedia's bugzilla and SVN repo as well?
>
> -Chad
>
> On Thu, May 8, 2008 at 11:46 PM, DanTMan <dan_the_man[at]telus.net> wrote:
>
>> Ok for now you can use this page:
>> http://wiki-tools.com/wiki/Wiki-Tools:Wikimedia_SVN_-_Extension_Commits
>>
>> I've got mw and MediaWiki as interwiki listed.
>> Full list at:
>> http://commons.nadir-point.com/wiki/Special:Interwiki
>> Tell me if you need any, I'm using shared interwiki... ^_^ Why do you
>> think I rewrote tableName and built a patch for 1.12
>> <http://wiki-tools.com/wiki/Shared_Tables_in_1.12>, heh...
>>
>> Oh... If you ever run into a 502 - Bad Gateway... My PHP FastCGI
>> instance dies sometime. Just tell me and I'll start it back up. Don't
>> worry about the future, I'm planning on configuring God
>> <http://god.rubyforge.org> after I get SHID (The SSO system going to be
>> used on my sites) built.
>>
>> ~Daniel Friesen(Dantman) of:
>> -The Gaiapedia (http://gaia.wikia.com)
>> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
>> -and Wiki-Tools.com (http://wiki-tools.com)
>>
>> Ben wrote:
>>
>>> Sounds like a great idea :) -> for now though, should we head to the
>>> wiki-tools page? (url please.. )
>>> DanTMan wrote:
>>>
>>>
>>>> Hmmm... wherever you feel... Don't know what is the best place.
>>>> If you want, I can setup a mini page on Wiki-Tools.
>>>> ^_^ Actually, one of these days I want to create a Bounty site... In
>>>> other words... Basically a site where people can post up extensions and
>>>> features they want, people can pitch in if they're willing to pay for
>>>> such a feature to be built, and someone can come, develop the feature
>>>> and claim the bounty. Kinda like CoFundOS... But I had real issues with
>>>> some of how they work.
>>>>
>>>> Actually... When I get my bugtracker up and running, I can add a project
>>>> into it for people to use the tracker to note extensions they want
>>>> committed.
>>>>
>>>> ~Daniel Friesen(Dantman) of:
>>>> -The Gaiapedia (http://gaia.wikia.com)
>>>> -Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
>>>> -and Wiki-Tools.com (http://wiki-tools.com)
>>>>
>>>> Ben wrote:
>>>>
>>>>
>>>>> DanTMan wrote:
>>>>>
>>>>>
>>>>>
>>>>>> I'd just like to let the many a non-committer extension developer here
>>>>>> know that I am open for committing any sane extension (Yes, DPL does
>>>>>> count as sane in this category ;) heh...) into Subversion.
>>>>>>
>>>>>> Nothing beats revision management. Even if it's not Wikimedia's SVN. I
>>>>>> even have my own repo for Wiki-Tools which I commit my variety of
>>>>>> extensions into. Once I look over SSH keys and a bit more on security
>>>>>> I'd even be willing to give other people commit access for those who
>>>>>> can't take the long wait to being able to get commit access to
>>>>>> Wikimedia's SVN.
>>>>>> But wherever it's managed, there is nothing like being able to
>>>>>> svn-update to grab all the new changes to extensions and keep yourself
>>>>>> running with good code. I personally get a very bad taste in my mouth
>>>>>> when I see an extension on MediaWiki.org which I am forced to use some
>>>>>> manual method of grabbing the data just to install it. I tend to avoid
>>>>>> installing those if possible. But not only does it ruin the taste of the
>>>>>> extension, it also means there aren't as many people poking in the code
>>>>>> and making sure it works right, and it's up to usable standards. Plus
>>>>>> Wikimedia's SVN has Betawiki's support.
>>>>>>
>>>>>> So, I'm here basically saying... "If you have a sane extension up on
>>>>>> MediaWiki.org, I'd be happy to help commit it to Subversion so that
>>>>>> myself and other people can poke at it, translate it, and keep it nicely
>>>>>> working with MediaWiki. And also make it easier for people to get ahold
>>>>>> of the code. And I'll even be happy to apply any patches you have to
>>>>>> update your extension with new features you've made". Of course, I'm not
>>>>>> going to commit something completely stupid, but there is a small bit of
>>>>>> room for extensions which need a bit of standards tweaking after being
>>>>>> committed.
>>>>>> And yes, I'll probably periodically poke various developers as I find
>>>>>> extensions I personally would like to install, and ask them if they
>>>>>> would let me commit the extension to SVN, even just to make sure that I
>>>>>> can use a reliable extension rather than something left on the wiki.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> So, where do we bug you with extensions we want to svn-commit? :)
>>>>>
>>>>> -Wiredtape
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Wikitech-l mailing list
>>>>> Wikitech-l[at]lists.wikimedia.org
>>>>> https://lists.wikimedia.org/mailman/listinfo/wikitech-l
>>>>>
>>>>>
>>>>&g