Mercurial extension to fetch changes from MoinMoin Wiki
use registrar.command()
drop support for ancient Mercurial versions
switch to modern import style

heads

tip
browse log

clone

read-only
https://hg.sr.ht/~yuja/hgext-moinport
read/write
ssh://hg@hg.sr.ht/~yuja/hgext-moinport
#pragma section-numbers 2
= Moinport Extension =

Fetch changes from MoinMoin Wiki.

<<TableOfContents>>

== Status ==

'''This extension is not distributed with Mercurial.'''

''Author: [[YuyaNishihara|Yuya Nishihara]]''

Download site: http://bitbucket.org/yuja/hgext-moinport/

== Overview ==

This extension gives you the ability to fetch changes from remote
MoinMoin Wiki.

== Configuration ==
Configure your .hgrc to enable the extension by adding following lines:

{{{
[extensions]
moinport = /path/to/hgext/moinport.py

[moinport]
baseurl = http://mercurial.selenic.com/wiki/
}}}

== Usage for Wiki translation ==

0. Configure Moinport extension:
{{{
$ cat .hg/hgrc
[moinport]
baseurl = http://mercurial.selenic.com/wiki/
pageprefix.ja = Japanese
}}}

1. Fetch English page:
{{{
$ hg mofetch MqExtension.txt
MqExtension@1: ...
...
$ hg moid *
MqExtension.txt: 41
}}}

2. Start translation branch
{{{
$ hg branch ja
}}}

3. Post translation to Wiki (by using web browser)

4. Fetch translated page
{{{
$ hg mofetch MqExtension.txt
JapaneseMqExtension@1: ...
$ hg moid *
MqExtension.txt: 1
}}}

5. A Few months have passed, fetch the latest English page
{{{
$ hg up default
$ hg mofetch MqExtension.txt
MqExtension@42: ...
...
$ hg moid *
MqExtension.txt: 48
}}}

6. Merge it to translation branch
{{{
$ hg up ja
$ hg merge default
...
$ hg ci -m 'merge with MqExtension@48'
}}}

7. Update translation and post it to Wiki (by using web browser)

8. Fetch translated page
{{{
$ hg mofetch MqExtension.txt
JapaneseMqExtension@2: ...
$ hg moid *
MqExtension.txt: 2
}}}

----
CategoryExtensionsByOthers