##// END OF EJS Templates
dirstatemap: create `_dirs_incr/_dirs_decr` methods on the common class...
marmoute -
r48937:de793f24 default
parent child Browse files
Show More
@@ -79,6 +79,25 b' class _dirstatemapcommon(object):'
79 def __getitem__(self, item):
79 def __getitem__(self, item):
80 return self._map[item]
80 return self._map[item]
81
81
82 ### sub-class utility method
83 #
84 # Use to allow for generic implementation of some method while still coping
85 # with minor difference between implementation.
86
87 def _dirs_incr(self, filename, old_entry=None):
88 """incremente the dirstate counter if applicable
89
90 This might be a no-op for some subclass who deal with directory
91 tracking in a different way.
92 """
93
94 def _dirs_decr(self, filename, old_entry=None, remove_variant=False):
95 """decremente the dirstate counter if applicable
96
97 This might be a no-op for some subclass who deal with directory
98 tracking in a different way.
99 """
100
82
101
83 class dirstatemap(_dirstatemapcommon):
102 class dirstatemap(_dirstatemapcommon):
84 """Map encapsulating the dirstate's contents.
103 """Map encapsulating the dirstate's contents.
General Comments 0
You need to be logged in to leave comments. Login now