~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/serializer/v08.py

  • Committer: Patch Queue Manager
  • Date: 2012-04-02 02:36:45 UTC
  • mfrom: (6471.1.7 iter-child-entries)
  • Revision ID: pqm@pqm.ubuntu.com-20120402023645-28dkcb0awh3i1flc
(jelmer) Add Tree.iter_child_entries(). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
287
287
 
288
288
        def finish_action(action, file_id, kind, meta_modified, text_modified,
289
289
                          old_path, new_path):
290
 
            revision = new_tree.get_file_revision(file_id)
291
 
            if revision != default_revision_id:
292
 
                action.add_utf8_property('last-changed', revision)
 
290
            entry = new_tree.root_inventory[file_id]
 
291
            if entry.revision != default_revision_id:
 
292
                action.add_utf8_property('last-changed', entry.revision)
293
293
            if meta_modified:
294
 
                action.add_bool_property('executable',
295
 
                    new_tree.is_executable(file_id))
 
294
                action.add_bool_property('executable', entry.executable)
296
295
            if text_modified and kind == "symlink":
297
 
                action.add_property('target',
298
 
                    new_tree.get_symlink_target(file_id))
 
296
                action.add_property('target', entry.symlink_target)
299
297
            if text_modified and kind == "file":
300
298
                do_diff(file_id, old_path, new_path, action, force_binary)
301
299
            else: