/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzr_commit_handler.py

incremental packing for chk formats

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
            try:
227
227
                self.record_new(path, ie)
228
228
            except:
229
 
                print "failed to add path '%s' with entry '%s'" % (path, ie)
230
 
                print "directory entries are:\n%r\n" % (self.directory_entries,)
 
229
                print "failed to add path '%s' with entry '%s' in command %s" \
 
230
                    % (path, ie, self.command.id)
 
231
                print "parent's children are:\n%r\n" % (ie.parent_id.children,)
231
232
                raise
232
233
 
233
234
    def _ensure_directory(self, path, inv):
320
321
 
321
322
    def _rename_item(self, old_path, new_path, inv):
322
323
        file_id = inv.path2id(old_path)
 
324
        if file_id is None:
 
325
            self.warning(
 
326
                "ignoring rename of %s to %s - old path does not exist" %
 
327
                (old_path, new_path))
 
328
            return
323
329
        ie = inv[file_id]
324
330
        rev_id = ie.revision
325
331
        new_file_id = inv.path2id(new_path)