Ticket #295: pop_to_del_python2_2.patch
| File pop_to_del_python2_2.patch, 1.1 KB (added by jmanning@…, 4 years ago) |
|---|
-
trac/sync.py
214 214 """ 215 215 for node_type, path, old_path, old_rev, action in self.additions: 216 216 if self.deletions.has_key(old_path): # normal rename 217 self.deletions.pop(old_path)217 del self.deletions[old_path] 218 218 action = 'R' 219 219 elif self.deletions.has_key(path): # copy+modification in a branch 220 220 action = 'C' 221 221 # FIXME: actually, this could be a 'R' if the parent branch 222 222 # is a 'R'. This can be fixed if the parent branch 223 223 # is recorded in addition to the old_path. 224 self.deletions.pop(path)224 del self.deletions[path] 225 225 if action == 'A': # add on a branch 226 226 old_path = old_rev = None 227 227 self._save_change(node_type, action, path, old_path, old_rev)
