dirstate: swap pathto() and get_entry() in idirstate
authorAnton Shestakov <av6@dwimlabs.net>
Thu, 05 Jan 2023 19:52:00 +0400
changeset 49960 b3ae17037b54
parent 49959 9ea66d166ec7
child 49961 8c7895db8955
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.
mercurial/interfaces/dirstate.py
--- 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."""