/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/git_remote_helper.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-03 03:20:44 UTC
  • mfrom: (7018.3.10 git-fixes)
  • Revision ID: breezy.the.bot@gmail.com-20180703032044-t5a5w5y0tmzrbezc
Port a few more bits of the git plugin to python 3.

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

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
from ...controldir import ControlDir
30
30
from ...errors import NotBranchError, NoRepositoryPresent
31
31
from ...repository import InterRepository
 
32
from ...sixish import viewitems
32
33
from ...transport import get_transport_from_path
33
34
 
34
35
from . import (
118
119
        object_store = get_object_store(repo)
119
120
        with object_store.lock_read():
120
121
            refs = get_refs_container(self.remote_dir, object_store)
121
 
            for ref, git_sha1 in refs.as_dict().iteritems():
122
 
                ref = ref.replace("~", "_")
 
122
            for ref, git_sha1 in viewitems(refs.as_dict()):
 
123
                ref = ref.replace(b"~", b"_")
123
124
                outf.write(b"%s %s\n" % (git_sha1, ref))
124
125
            outf.write(b"\n")
125
126