1241
1241
# TODO: Manage this incrementally to avoid covering the same path
1242
1242
# repeatedly. (The server will have to on each request, but the less
1244
1250
parents_map = self._unstacked_provider.get_cached_map()
1246
1252
# Repository is not locked, so there's no cache.
1248
1255
start_set = set(parents_map)
1250
1258
for parents in parents_map.itervalues():
1251
1259
result_parents.update(parents)
1252
1260
stop_keys = result_parents.difference(start_set)
1253
1264
included_keys = start_set.intersection(result_parents)
1254
1265
start_set.difference_update(included_keys)
1255
1266
recipe = ('manual', start_set, stop_keys, len(parents_map))