From Fedora Project Wiki
(undo last edit) |
No edit summary |
||
Line 1: | Line 1: | ||
{{admon/note|Nothing here is permanent|If you want to help out with mw, you basically get to help decide what happens. Tell me — or just edit stuff — if you think you can help.}} | |||
== Local junk == | == Local junk == | ||
Line 22: | Line 24: | ||
== History and repo status == | == History and repo status == | ||
'''log and blame are considered most important by [[User:Ianweller|Ian]]''' | |||
* mw status [ FILE ... ] | * mw status [ FILE ... ] | ||
* mw diff [ --rv=REV_ID ] [ FILE ... ] | * mw diff [ --rv=REV_ID ] [ FILE ... ] | ||
* mw log FILE | |||
* mw blame FILE | * mw blame FILE | ||
Line 32: | Line 37: | ||
* mw undo REV_ID | * mw undo REV_ID | ||
* mw revert REV_ID | * mw revert REV_ID | ||
== Media files == | |||
Media files have a text description ''as well as'' the actual file. Therefore we need separate download/upload commands for media files. | |||
== Repository directory layout == | == Repository directory layout == | ||
Line 46: | Line 55: | ||
== Things that would be rockin' but totally not needed == | == Things that would be rockin' but totally not needed == | ||
* Local preview (requires MediaWiki and deps to be installed) | * Local preview (requires MediaWiki and deps to be installed, I guess) |
Revision as of 01:43, 30 March 2011
Local junk
- mw init API_URL
- mw login
- mw logout
Fetching
- mw fetch [ --rv=DATESPEC ] PAGE_NAME
- mw fetch-category [ --rv=DATESPEC ] CATEGORY_NAME
- mw fetch-all [ --rv=DATESPEC ]
- mw update [ FILE ... ]
Page functions
- mw add FILE ...
- mw delete FILE ...
- mw move OLD_FILE NEW_FILE
- mw protect FILE ...
- mw watch FILE ...
- mw unwatch FILE ...
History and repo status
log and blame are considered most important by Ian
- mw status [ FILE ... ]
- mw diff [ --rv=REV_ID ] [ FILE ... ]
- mw log FILE
- mw blame FILE
Committing / editing
- mw commit [ FILE ]
- mw undo REV_ID
- mw revert REV_ID
Media files
Media files have a text description as well as the actual file. Therefore we need separate download/upload commands for media files.
Repository directory layout
<repo>/ .mw/ config cat/ <folders with symlinks to pages in category> img/ <where stuff from the Media/File/Image namespaces go> <all pages -- subpages have slashes converted to exclamation points>
Things that would be rockin' but totally not needed
- Local preview (requires MediaWiki and deps to be installed, I guess)