changeset 49539:07b9ca52a378 stable

dirstate-v2: fix typos in docstrings
author Raphaël Gomès <rgomes@octobus.net>
date Wed, 26 Oct 2022 12:19:47 +0200
parents 5743e19bb8b0
children 318bdd289cf2
files mercurial/dirstateutils/v2.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)