changeset 49960:b3ae17037b54

dirstate: swap pathto() and get_entry() in idirstate This way the order of methods in dirstate and idirstate classes is the same. Just to make it easier to use diff tools to compare the two classes.
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 05 Jan 2023 19:52:00 +0400
parents 9ea66d166ec7
children 8c7895db8955
files mercurial/interfaces/dirstate.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/interfaces/dirstate.py	Thu Jan 05 19:50:33 2023 +0400
+++ b/mercurial/interfaces/dirstate.py	Thu Jan 05 19:52:00 2023 +0400
@@ -67,12 +67,12 @@
         used to get real file paths. Use vfs functions instead.
         """
 
+    def pathto(f, cwd=None):
+        pass
+
     def get_entry(path):
         """return a DirstateItem for the associated path"""
 
-    def pathto(f, cwd=None):
-        pass
-
     def __contains__(key):
         """Check if bytestring `key` is known to the dirstate."""