/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-08-11 13:21:03 UTC
  • mfrom: (7379 work)
  • mto: This revision was merged to the branch mainline in revision 7388.
  • Revision ID: jelmer@jelmer.uk-20190811132103-u3ne03yf37c1h57n
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
 
        f = BytesIO()
66
 
        try:
 
65
        with BytesIO() as f:
67
66
            self.save(f)
68
67
            f.seek(0)
69
68
            repository.control_transport.put_file("git-unpeel-map", f)
70
 
        finally:
71
 
            f.close()
72
69
 
73
70
    def peel_tag(self, git_sha, default=None):
74
71
        """Peel a tag."""