equal
deleted
inserted
replaced
58 # between 5 and 6, so it includes all cases in its result. |
58 # between 5 and 6, so it includes all cases in its result. |
59 # Cases 1, 3, and 5 are then removed by _filter(). |
59 # Cases 1, 3, and 5 are then removed by _filter(). |
60 |
60 |
61 for k, v in list(t.items()): |
61 for k, v in list(t.items()): |
62 # remove copies from files that didn't exist |
62 # remove copies from files that didn't exist |
63 if v not in src: |
63 if v not in src: # case 5 |
64 del t[k] |
64 del t[k] |
65 # remove criss-crossed copies |
65 # remove criss-crossed copies |
66 elif k in src and v in dst: |
66 elif k in src and v in dst: |
67 del t[k] |
67 del t[k] |
68 # remove copies to files that were then removed |
68 # remove copies to files that were then removed |
69 elif k not in dst: |
69 elif k not in dst: # case 1 |
70 del t[k] |
70 del t[k] |
71 |
71 |
72 |
72 |
73 def _chain(prefix, suffix): |
73 def _chain(prefix, suffix): |
74 """chain two sets of copies 'prefix' and 'suffix'""" |
74 """chain two sets of copies 'prefix' and 'suffix'""" |