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