Changeset 1597 in tailor
- Timestamp:
- 06/01/08 07:57:42 (5 years ago)
- Hash name:
- 20080601055742-bb3d1-fd72b5286e3d59003283679fe7ed1fc63ac73ddb
- File:
-
- 1 edited
-
vcpx/repository/aegis/target.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vcpx/repository/aegis/target.py
r1595 r1597 108 108 adapted.entries.remove(e) 109 109 continue 110 if e.action_kind == 'DEL' and project_files.count(e.name) == 0:110 if e.action_kind == e.DELETED and not project_files.count(e.name): 111 111 self.log.info("remove delete entry %s", e.name) 112 112 adapted.entries.remove(e) … … 114 114 renamed_file = [] 115 115 for e in adapted.entries: 116 if e.action_kind == ChangesetEntry.RENAMED:116 if e.action_kind == e.RENAMED: 117 117 renamed_file.append(e.name) 118 118 119 119 for e in adapted.entries: 120 if renamed_file.count(e.name) > 0 and e.action_kind != ChangesetEntry.RENAMED:120 if renamed_file.count(e.name) and e.action_kind != e.RENAMED: 121 121 adapted.entries.remove(e) 122 if e.action_kind == ChangesetEntry.RENAMED and project_files.count(e.old_name) == 0:123 e.action_kind = ChangesetEntry.ADDED122 if e.action_kind == e.RENAMED and not project_files.count(e.old_name): 123 e.action_kind = e.ADDED 124 124 e.old_name = None 125 if e.action_kind == ChangesetEntry.ADDED and project_files.count(e.name) > 0:125 if e.action_kind == e.ADDED and project_files.count(e.name): 126 126 e.action_kind = ChangesetEntry.UPDATED 127 elif e.action_kind == ChangesetEntry.UPDATED and project_files.count(e.name) == 0:128 e.action_kind = ChangesetEntry.ADDED127 elif e.action_kind == e.UPDATED and not project_files.count(e.name): 128 e.action_kind = e.ADDED 129 129 130 130 #
Note: See TracChangeset
for help on using the changeset viewer.
