/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/git/unpeel_map.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-03 23:48:08 UTC
  • mfrom: (7316 work)
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190603234808-15yk5c7054tj8e2b
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                f.write(b"%s: %s\n" % (k, v))
63
63
 
64
64
    def save_in_repository(self, repository):
65
 
        with BytesIO() as f:
 
65
        f = BytesIO()
 
66
        try:
66
67
            self.save(f)
67
68
            f.seek(0)
68
69
            repository.control_transport.put_file("git-unpeel-map", f)
 
70
        finally:
 
71
            f.close()
69
72
 
70
73
    def peel_tag(self, git_sha, default=None):
71
74
        """Peel a tag."""