2427 |
2427 |
2428 missingmodified = dsmodified - smf |
2428 missingmodified = dsmodified - smf |
2429 dsmodified -= missingmodified |
2429 dsmodified -= missingmodified |
2430 missingadded = dsadded - smf |
2430 missingadded = dsadded - smf |
2431 dsadded -= missingadded |
2431 dsadded -= missingadded |
2432 missingremoved = dsremoved - smf |
2432 clean |= dsremoved - smf |
2433 dsremoved -= missingremoved |
2433 dsremoved -= clean |
2434 |
2434 |
2435 # action to be actually performed by revert |
2435 # action to be actually performed by revert |
2436 # (<list of file>, message>) tuple |
2436 # (<list of file>, message>) tuple |
2437 actions = {'revert': ([], _('reverting %s\n')), |
2437 actions = {'revert': ([], _('reverting %s\n')), |
2438 'add': ([], _('adding %s\n')), |
2438 'add': ([], _('adding %s\n')), |
2447 (dsmodified, (actions['revert'], True)), |
2447 (dsmodified, (actions['revert'], True)), |
2448 (missingmodified, (actions['remove'], True)), |
2448 (missingmodified, (actions['remove'], True)), |
2449 (dsadded, (actions['revert'], True)), |
2449 (dsadded, (actions['revert'], True)), |
2450 (missingadded, (actions['remove'], False)), |
2450 (missingadded, (actions['remove'], False)), |
2451 (dsremoved, (actions['undelete'], True)), |
2451 (dsremoved, (actions['undelete'], True)), |
2452 (missingremoved, (None, False)), |
|
2453 (clean, (None, False)), |
2452 (clean, (None, False)), |
2454 ) |
2453 ) |
2455 |
2454 |
2456 for abs, (rel, exact) in sorted(names.items()): |
2455 for abs, (rel, exact) in sorted(names.items()): |
2457 # hash on file in target manifest (or None if missing from target) |
2456 # hash on file in target manifest (or None if missing from target) |