[Updated] D11807: typo: s/unkown/unknown across the codebase
Alphare (Raphaël Gomès)
phabricator at mercurial-scm.org
Tue Dec 7 19:32:53 UTC 2021
Closed by commit rHGfff5942d445f: typo: s/unkown/unknown across the codebase (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11807?vs=31131&id=31369
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11807/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11807
AFFECTED FILES
mercurial/bundle2.py
mercurial/merge.py
mercurial/obsutil.py
setup.py
tests/test-purge.t
CHANGE DETAILS
diff --git a/tests/test-purge.t b/tests/test-purge.t
--- a/tests/test-purge.t
+++ b/tests/test-purge.t
@@ -29,7 +29,7 @@
$ hg st
$ touch foo
$ hg purge
- permanently delete 1 unkown files? (yN) n
+ permanently delete 1 unknown files? (yN) n
abort: removal cancelled
[250]
$ hg st
@@ -93,7 +93,7 @@
untracked_file
untracked_file_readonly
$ hg purge --confirm
- permanently delete 2 unkown files? (yN) n
+ permanently delete 2 unknown files? (yN) n
abort: removal cancelled
[250]
$ hg purge -v
@@ -156,7 +156,7 @@
$ hg purge -p ../untracked_directory
untracked_directory/nested_directory
$ hg purge --confirm
- permanently delete 1 unkown files? (yN) n
+ permanently delete 1 unknown files? (yN) n
abort: removal cancelled
[250]
$ hg purge -v ../untracked_directory
@@ -203,7 +203,7 @@
ignored
untracked_file
$ hg purge --confirm --all
- permanently delete 1 unkown and 1 ignored files? (yN) n
+ permanently delete 1 unknown and 1 ignored files? (yN) n
abort: removal cancelled
[250]
$ hg purge -v --all
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -535,7 +535,7 @@
# (see mercurial/__modulepolicy__.py)
if hgrustext != 'cpython' and hgrustext is not None:
if hgrustext:
- msg = 'unkown HGWITHRUSTEXT value: %s' % hgrustext
+ msg = 'unknown HGWITHRUSTEXT value: %s' % hgrustext
printf(msg, file=sys.stderr)
hgrustext = None
self.rust = hgrustext is not None
diff --git a/mercurial/obsutil.py b/mercurial/obsutil.py
--- a/mercurial/obsutil.py
+++ b/mercurial/obsutil.py
@@ -218,7 +218,7 @@
or
- # (A0 rewritten as AX; AX rewritten as A1; AX is unkown locally)
+ # (A0 rewritten as AX; AX rewritten as A1; AX is unknown locally)
#
# <-1- A0 <-2- AX <-3- A1 # Marker "2,3" are exclusive to A1
diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -2479,13 +2479,13 @@
if confirm:
nb_ignored = len(status.ignored)
- nb_unkown = len(status.unknown)
- if nb_unkown and nb_ignored:
- msg = _(b"permanently delete %d unkown and %d ignored files?")
- msg %= (nb_unkown, nb_ignored)
- elif nb_unkown:
- msg = _(b"permanently delete %d unkown files?")
- msg %= nb_unkown
+ nb_unknown = len(status.unknown)
+ if nb_unknown and nb_ignored:
+ msg = _(b"permanently delete %d unknown and %d ignored files?")
+ msg %= (nb_unknown, nb_ignored)
+ elif nb_unknown:
+ msg = _(b"permanently delete %d unknown files?")
+ msg %= nb_unknown
elif nb_ignored:
msg = _(b"permanently delete %d ignored files?")
msg %= nb_ignored
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -2419,7 +2419,7 @@
op.records.add(b'bookmarks', record)
else:
raise error.ProgrammingError(
- b'unkown bookmark mode: %s' % bookmarksmode
+ b'unknown bookmark mode: %s' % bookmarksmode
)
To: Alphare, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20211207/67165887/attachment-0001.html>
More information about the Mercurial-patches
mailing list