git-remote-mediawiki: spelling fixes
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>
Stefano Lattarini committed
Apr 12, 2013 at 00:36 UTC
2582ab18e4b6bf7e56f7931a65b5f2e05e37c18a
4 files changed
+14
-14
contrib/mw-to-git/git-remote-mediawiki.perl
+3
-3
@@ -28,7 +28,7 @@ use warnings;
28
use constant SLASH_REPLACEMENT => "%2F";
29
30
# It's not always possible to delete pages (may require some
31
-# priviledges). Deleted pages are replaced with this content.
31
+# privileges). Deleted pages are replaced with this content.
32
use constant DELETED_CONTENT => "[[Category:Deleted]]\n";
33
34
# It's not possible to create empty pages. New empty files in Git are
@@ -841,7 +841,7 @@ sub mw_import_ref {
841
if ($fetch_from == 1 && $n == 0) {
842
print STDERR "You appear to have cloned an empty MediaWiki.\n";
843
# Something has to be done remote-helper side. If nothing is done, an error is
844
- # thrown saying that HEAD is refering to unknown object 0000000000000000000
844
+ # thrown saying that HEAD is referring to unknown object 0000000000000000000
845
# and the clone fails.
846
}
847
}
@@ -1067,7 +1067,7 @@ sub mw_push_file {
1067
my $file_content;
1068
if ($page_deleted) {
1069
# Deleting a page usually requires
1070
- # special priviledges. A common
1070
+ # special privileges. A common
1071
# convention is to replace the page
1072
# with this content instead:
1073
$file_content = DELETED_CONTENT;
contrib/mw-to-git/t/README
+3
-3
@@ -25,7 +25,7 @@ Principles and Technical Choices
25
26
The test environment makes it easy to install and manipulate one or
27
several MediaWiki instances. To allow developers to run the testsuite
28
-easily, the environment does not require root priviledge (except to
28
+easily, the environment does not require root privilege (except to
29
install the required packages if needed). It starts a webserver
30
instance on the user's account (using lighttpd greatly helps for
31
that), and does not need a separate database daemon (thanks to the use
@@ -81,7 +81,7 @@ parameters, please refer to the `test-gitmw-lib.sh` and
81
82
** `test_check_wiki_precond`:
83
Check if the tests must be skipped or not. Please use this function
84
-at the beggining of each new test file.
84
+at the beginning of each new test file.
85
86
** `wiki_getpage`:
87
Fetch a given page from the wiki and puts its content in the
@@ -113,7 +113,7 @@ Tests if a given page exists on the wiki.
113
114
** `wiki_reset`:
115
Reset the wiki, i.e. flush the database. Use this function at the
116
-begining of each new test, except if the test re-uses the same wiki
116
+beginning of each new test, except if the test re-uses the same wiki
117
(and history) as the previous test.
118
119
How to write a new test
contrib/mw-to-git/t/install-wiki/LocalSettings.php
+1
-1
@@ -88,7 +88,7 @@ $wgShellLocale = "en_US.utf8";
88
89
## Set $wgCacheDirectory to a writable directory on the web server
90
## to make your wiki go slightly faster. The directory should not
91
-## be publically accessible from the web.
91
+## be publicly accessible from the web.
92
#$wgCacheDirectory = "$IP/cache";
93
94
# Site language code, should be one of the list in ./languages/Names.php
contrib/mw-to-git/t/t9362-mw-to-git-utf8.sh
+7
-7
@@ -139,7 +139,7 @@ test_expect_success 'character $ in file name (git -> mw) ' '
139
'
140
141
142
-test_expect_failure 'capital at the begining of file names' '
142
+test_expect_failure 'capital at the beginning of file names' '
143
wiki_reset &&
144
git clone mediawiki::'"$WIKI_URL"' mw_dir_10 &&
145
(
@@ -156,7 +156,7 @@ test_expect_failure 'capital at the begining of file names' '
156
'
157
158
159
-test_expect_failure 'special character at the begining of file name from mw to git' '
159
+test_expect_failure 'special character at the beginning of file name from mw to git' '
160
wiki_reset &&
161
git clone mediawiki::'"$WIKI_URL"' mw_dir_11 &&
162
wiki_editpage {char_1 "expect to be renamed {char_1" false &&
@@ -189,7 +189,7 @@ test_expect_success 'Push page with title containing ":" other than namespace se
189
wiki_page_exist NotANameSpace:Page
190
'
191
192
-test_expect_success 'test of correct formating for file name from mw to git' '
192
+test_expect_success 'test of correct formatting for file name from mw to git' '
193
wiki_reset &&
194
git clone mediawiki::'"$WIKI_URL"' mw_dir_12 &&
195
wiki_editpage char_%_7b_1 "expect to be renamed char{_1" false &&
@@ -207,7 +207,7 @@ test_expect_success 'test of correct formating for file name from mw to git' '
207
'
208
209
210
-test_expect_failure 'test of correct formating for file name begining with special character' '
210
+test_expect_failure 'test of correct formatting for file name beginning with special character' '
211
wiki_reset &&
212
git clone mediawiki::'"$WIKI_URL"' mw_dir_13 &&
213
(
@@ -215,7 +215,7 @@ test_expect_failure 'test of correct formating for file name begining with speci
215
echo "my new file {char_1" >\{char_1.mw &&
216
echo "my new file [char_2" >\[char_2.mw &&
217
git add . &&
218
- git commit -am "commiting some exotic file name..." &&
218
+ git commit -am "committing some exotic file name..." &&
219
git push &&
220
git pull
221
) &&
@@ -226,7 +226,7 @@ test_expect_failure 'test of correct formating for file name begining with speci
226
'
227
228
229
-test_expect_success 'test of correct formating for file name from git to mw' '
229
+test_expect_success 'test of correct formatting for file name from git to mw' '
230
wiki_reset &&
231
git clone mediawiki::'"$WIKI_URL"' mw_dir_14 &&
232
(
@@ -234,7 +234,7 @@ test_expect_success 'test of correct formating for file name from git to mw' '
234
echo "my new file char{_1" >Char\{_1.mw &&
235
echo "my new file char[_2" >Char\[_2.mw &&
236
git add . &&
237
- git commit -m "commiting some exotic file name..." &&
237
+ git commit -m "committing some exotic file name..." &&
238
git push
239
) &&
240
wiki_getallpage ref_page_14 &&