diff hgext/git/dirstate.py @ 47539:84391ddf4c78

dirstate-item: rename the class to DirstateItem The object is no longer a tuple, so it seems clearer to rename it (and its associated method) Differential Revision: https://phab.mercurial-scm.org/D10982
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 04 Jul 2021 22:27:29 +0200
parents 7431f5ab0d2a
children 0bdcb5ef932c
line wrap: on
line diff
--- a/hgext/git/dirstate.py	Sun Jul 04 02:37:38 2021 +0200
+++ b/hgext/git/dirstate.py	Sun Jul 04 22:27:29 2021 +0200
@@ -111,7 +111,7 @@
 
     def items(self):
         for ie in self.git.index:
-            yield ie.path, None  # value should be a dirstatetuple
+            yield ie.path, None  # value should be a DirstateItem
 
     # py2,3 compat forward
     iteritems = items