Show More
@@ -40,15 +40,20 b' class ChangingFiles(object):' | |||
|
40 | 40 | """ |
|
41 | 41 | |
|
42 | 42 | def __init__( |
|
43 | self, touched=(), added=(), removed=(), p1_copies=(), p2_copies=(), | |
|
43 | self, | |
|
44 | touched=None, | |
|
45 | added=None, | |
|
46 | removed=None, | |
|
47 | p1_copies=None, | |
|
48 | p2_copies=None, | |
|
44 | 49 | ): |
|
45 | self._added = set(added) | |
|
46 | self._removed = set(removed) | |
|
47 | self._touched = set(touched) | |
|
50 | self._added = set(() if added is None else added) | |
|
51 | self._removed = set(() if removed is None else removed) | |
|
52 | self._touched = set(() if touched is None else touched) | |
|
48 | 53 | self._touched.update(self._added) |
|
49 | 54 | self._touched.update(self._removed) |
|
50 | self._p1_copies = dict(p1_copies) | |
|
51 | self._p2_copies = dict(p2_copies) | |
|
55 | self._p1_copies = dict(() if p1_copies is None else p1_copies) | |
|
56 | self._p2_copies = dict(() if p2_copies is None else p2_copies) | |
|
52 | 57 | |
|
53 | 58 | def __eq__(self, other): |
|
54 | 59 | return ( |
General Comments 0
You need to be logged in to leave comments.
Login now