diff options
-rw-r--r-- | bzr_commit_handler.py | 4 | ||||
-rw-r--r-- | revision_store.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bzr_commit_handler.py b/bzr_commit_handler.py index a3c0896..9e38741 100644 --- a/bzr_commit_handler.py +++ b/bzr_commit_handler.py @@ -362,7 +362,7 @@ class GenericCommitHandler(processor.CommitHandler): % (kind, path)) return # Record it - if file_id in inv: + if inv.has_id(file_id): old_ie = inv[file_id] if old_ie.kind == 'directory': self.record_delete(path, old_ie) @@ -404,7 +404,7 @@ class GenericCommitHandler(processor.CommitHandler): # It's possible that a file or symlink with that file-id # already exists. If it does, we need to delete it. - if dir_file_id in inv: + if inv.has_id(dir_file_id): self.record_delete(dirname, ie) self.record_new(dirname, ie) return basename, ie.file_id diff --git a/revision_store.py b/revision_store.py index 4ec4ba3..73943ca 100644 --- a/revision_store.py +++ b/revision_store.py @@ -271,7 +271,7 @@ class AbstractRevisionStore(object): parent_candidate_entries.keys()) heads = [] for inv in self._rev_parent_invs: - if ie.file_id in inv: + if inv.has_id(ie.file_id): old_rev = inv[ie.file_id].revision if old_rev in head_set: rev_id = inv[ie.file_id].revision |