##// END OF EJS Templates
status: also support for `traversedir` callback in the Rust fast-path...
Raphaël Gomès -
r45355:4ba2a6ff default
parent child Browse files
Show More
@@ -1107,6 +1107,7 b' class dirstate(object):'
1107 unknown,
1107 unknown,
1108 warnings,
1108 warnings,
1109 bad,
1109 bad,
1110 traversed,
1110 ) = rustmod.status(
1111 ) = rustmod.status(
1111 self._map._rustmap,
1112 self._map._rustmap,
1112 matcher,
1113 matcher,
@@ -1117,7 +1118,13 b' class dirstate(object):'
1117 bool(list_clean),
1118 bool(list_clean),
1118 bool(list_ignored),
1119 bool(list_ignored),
1119 bool(list_unknown),
1120 bool(list_unknown),
1121 bool(matcher.traversedir),
1120 )
1122 )
1123
1124 if matcher.traversedir:
1125 for dir in traversed:
1126 matcher.traversedir(dir)
1127
1121 if self._ui.warn:
1128 if self._ui.warn:
1122 for item in warnings:
1129 for item in warnings:
1123 if isinstance(item, tuple):
1130 if isinstance(item, tuple):
@@ -1193,8 +1200,6 b' class dirstate(object):'
1193 use_rust = False
1200 use_rust = False
1194 elif sparse.enabled:
1201 elif sparse.enabled:
1195 use_rust = False
1202 use_rust = False
1196 elif match.traversedir is not None:
1197 use_rust = False
1198 elif not isinstance(match, allowed_matchers):
1203 elif not isinstance(match, allowed_matchers):
1199 # Some matchers have yet to be implemented
1204 # Some matchers have yet to be implemented
1200 use_rust = False
1205 use_rust = False
General Comments 0
You need to be logged in to leave comments. Login now