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.
--- 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."""