dirstate-v2: fix typos in docstrings stable
authorRaphaël Gomès <rgomes@octobus.net>
Wed, 26 Oct 2022 12:19:47 +0200
branchstable
changeset 49546 07b9ca52a378
parent 49545 5743e19bb8b0
child 49547 318bdd289cf2
dirstate-v2: fix typos in docstrings
mercurial/dirstateutils/v2.py
--- a/mercurial/dirstateutils/v2.py	Fri Nov 04 14:52:16 2022 -0400
+++ b/mercurial/dirstateutils/v2.py	Wed Oct 26 12:19:47 2022 +0200
@@ -60,7 +60,7 @@
 
 
 def parse_dirstate(map, copy_map, data, tree_metadata):
-    """parse a full v2-dirstate from a binary data into dictionnaries:
+    """parse a full v2-dirstate from a binary data into dictionaries:
 
     - map: a {path: entry} mapping that will be filled
     - copy_map: a {path: copy-source} mapping that will be filled
@@ -191,7 +191,7 @@
     # Algorithm explanation
 
     This explanation does not talk about the different counters for tracked
-    descendents and storing the copies, but that work is pretty simple once this
+    descendants and storing the copies, but that work is pretty simple once this
     algorithm is in place.
 
     ## Building a subtree
@@ -274,7 +274,7 @@
 
     sorted_map = sorted(map.items(), key=lambda x: x[0])
 
-    # Use a stack to not have to only remember the nodes we currently need
+    # Use a stack to have to only remember the nodes we currently need
     # instead of building the entire tree in memory
     stack = []
     current_node = Node(b"", None)