Skip to content

Commit

Permalink
git-remote-mediawiki: spelling fixes
Browse files Browse the repository at this point in the history
Most of these were found using Lucas De Marchi's codespell tool.
Others were pointed out by Eric Sunshine.

Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Acked-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stefano Lattarini authored and Junio C Hamano committed Apr 12, 2013
1 parent e1c3bf4 commit 2582ab1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions contrib/mw-to-git/git-remote-mediawiki.perl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
use constant SLASH_REPLACEMENT => "%2F";

# It's not always possible to delete pages (may require some
# priviledges). Deleted pages are replaced with this content.
# privileges). Deleted pages are replaced with this content.
use constant DELETED_CONTENT => "[[Category:Deleted]]\n";

# It's not possible to create empty pages. New empty files in Git are
Expand Down Expand Up @@ -841,7 +841,7 @@ sub mw_import_ref {
if ($fetch_from == 1 && $n == 0) {
print STDERR "You appear to have cloned an empty MediaWiki.\n";
# Something has to be done remote-helper side. If nothing is done, an error is
# thrown saying that HEAD is refering to unknown object 0000000000000000000
# thrown saying that HEAD is referring to unknown object 0000000000000000000
# and the clone fails.
}
}
Expand Down Expand Up @@ -1067,7 +1067,7 @@ sub mw_push_file {
my $file_content;
if ($page_deleted) {
# Deleting a page usually requires
# special priviledges. A common
# special privileges. A common
# convention is to replace the page
# with this content instead:
$file_content = DELETED_CONTENT;
Expand Down
6 changes: 3 additions & 3 deletions contrib/mw-to-git/t/README
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Principles and Technical Choices

The test environment makes it easy to install and manipulate one or
several MediaWiki instances. To allow developers to run the testsuite
easily, the environment does not require root priviledge (except to
easily, the environment does not require root privilege (except to
install the required packages if needed). It starts a webserver
instance on the user's account (using lighttpd greatly helps for
that), and does not need a separate database daemon (thanks to the use
Expand Down Expand Up @@ -81,7 +81,7 @@ parameters, please refer to the `test-gitmw-lib.sh` and

** `test_check_wiki_precond`:
Check if the tests must be skipped or not. Please use this function
at the beggining of each new test file.
at the beginning of each new test file.

** `wiki_getpage`:
Fetch a given page from the wiki and puts its content in the
Expand Down Expand Up @@ -113,7 +113,7 @@ Tests if a given page exists on the wiki.

** `wiki_reset`:
Reset the wiki, i.e. flush the database. Use this function at the
begining of each new test, except if the test re-uses the same wiki
beginning of each new test, except if the test re-uses the same wiki
(and history) as the previous test.

How to write a new test
Expand Down
2 changes: 1 addition & 1 deletion contrib/mw-to-git/t/install-wiki/LocalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

## Set $wgCacheDirectory to a writable directory on the web server
## to make your wiki go slightly faster. The directory should not
## be publically accessible from the web.
## be publicly accessible from the web.
#$wgCacheDirectory = "$IP/cache";

# Site language code, should be one of the list in ./languages/Names.php
Expand Down
14 changes: 7 additions & 7 deletions contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ test_expect_success 'character $ in file name (git -> mw) ' '
'


test_expect_failure 'capital at the begining of file names' '
test_expect_failure 'capital at the beginning of file names' '
wiki_reset &&
git clone mediawiki::'"$WIKI_URL"' mw_dir_10 &&
(
Expand All @@ -156,7 +156,7 @@ test_expect_failure 'capital at the begining of file names' '
'


test_expect_failure 'special character at the begining of file name from mw to git' '
test_expect_failure 'special character at the beginning of file name from mw to git' '
wiki_reset &&
git clone mediawiki::'"$WIKI_URL"' mw_dir_11 &&
wiki_editpage {char_1 "expect to be renamed {char_1" false &&
Expand Down Expand Up @@ -189,7 +189,7 @@ test_expect_success 'Push page with title containing ":" other than namespace se
wiki_page_exist NotANameSpace:Page
'

test_expect_success 'test of correct formating for file name from mw to git' '
test_expect_success 'test of correct formatting for file name from mw to git' '
wiki_reset &&
git clone mediawiki::'"$WIKI_URL"' mw_dir_12 &&
wiki_editpage char_%_7b_1 "expect to be renamed char{_1" false &&
Expand All @@ -207,15 +207,15 @@ test_expect_success 'test of correct formating for file name from mw to git' '
'


test_expect_failure 'test of correct formating for file name begining with special character' '
test_expect_failure 'test of correct formatting for file name beginning with special character' '
wiki_reset &&
git clone mediawiki::'"$WIKI_URL"' mw_dir_13 &&
(
cd mw_dir_13 &&
echo "my new file {char_1" >\{char_1.mw &&
echo "my new file [char_2" >\[char_2.mw &&
git add . &&
git commit -am "commiting some exotic file name..." &&
git commit -am "committing some exotic file name..." &&
git push &&
git pull
) &&
Expand All @@ -226,15 +226,15 @@ test_expect_failure 'test of correct formating for file name begining with speci
'


test_expect_success 'test of correct formating for file name from git to mw' '
test_expect_success 'test of correct formatting for file name from git to mw' '
wiki_reset &&
git clone mediawiki::'"$WIKI_URL"' mw_dir_14 &&
(
cd mw_dir_14 &&
echo "my new file char{_1" >Char\{_1.mw &&
echo "my new file char[_2" >Char\[_2.mw &&
git add . &&
git commit -m "commiting some exotic file name..." &&
git commit -m "committing some exotic file name..." &&
git push
) &&
wiki_getallpage ref_page_14 &&
Expand Down

0 comments on commit 2582ab1

Please sign in to comment.