/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 breezy/plugins/git/pristine_tar.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-05-15 18:47:57 UTC
  • mfrom: (6964.2.7 python3-git)
  • Revision ID: breezy.the.bot@gmail.com-20180515184757-xozniaj9gztgtom8
Port some of brz-git to python3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-git/+merge/345479

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        (delta_ob, delta_name),
96
96
        (id_ob, id_name)]
97
97
    tree = get_pristine_tar_tree(repo)
98
 
    tree.add(delta_name, stat.S_IFREG | 0644, delta_ob.id)
99
 
    tree.add(id_name, stat.S_IFREG | 0644, id_ob.id)
 
98
    tree.add(delta_name, stat.S_IFREG | 0o644, delta_ob.id)
 
99
    tree.add(id_name, stat.S_IFREG | 0o644, id_ob.id)
100
100
    if not "README" in tree:
101
101
        readme_ob = Blob.from_string(README_CONTENTS)
102
102
        objects.append((readme_ob, "README"))
103
 
        tree.add("README", stat.S_IFREG | 0644, readme_ob.id)
 
103
        tree.add("README", stat.S_IFREG | 0o644, readme_ob.id)
104
104
    objects.append((tree, ""))
105
105
    repo.object_store.add_objects(objects)
106
106
    if message is None: