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

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

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
33
32
from ..transport import get_transport_from_path
34
33
 
35
34
from . import (
121
120
        object_store = get_object_store(repo)
122
121
        with object_store.lock_read():
123
122
            refs = get_refs_container(self.remote_dir, object_store)
124
 
            for ref, git_sha1 in viewitems(refs.as_dict()):
 
123
            for ref, git_sha1 in refs.as_dict().items():
125
124
                ref = ref.replace(b"~", b"_")
126
125
                outf.write(b"%s %s\n" % (git_sha1, ref))
127
126
            outf.write(b"\n")