/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-05-06 03:06:18 UTC
  • mfrom: (7500.1.2 trunk-merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200506030618-131sjbc876q7on66
Merge the 3.1 branch.

Merged from https://code.launchpad.net/~jelmer/brz/trunk-merge-3.1/+merge/383481

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
"""Remote helper for git for accessing bzr repositories."""
22
22
 
23
 
from __future__ import absolute_import
24
 
 
25
23
CAPABILITIES = ["fetch", "option", "push"]
26
24
 
27
25
import os
29
27
from ..controldir import ControlDir
30
28
from ..errors import NotBranchError, NoRepositoryPresent
31
29
from ..repository import InterRepository
32
 
from ..sixish import viewitems
33
30
from ..transport import get_transport_from_path
34
31
 
35
32
from . import (
121
118
        object_store = get_object_store(repo)
122
119
        with object_store.lock_read():
123
120
            refs = get_refs_container(self.remote_dir, object_store)
124
 
            for ref, git_sha1 in viewitems(refs.as_dict()):
 
121
            for ref, git_sha1 in refs.as_dict().items():
125
122
                ref = ref.replace(b"~", b"_")
126
123
                outf.write(b"%s %s\n" % (git_sha1, ref))
127
124
            outf.write(b"\n")