/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

Support user.signingkey configuration variable in .git/config.

Merged from https://code.launchpad.net/~jelmer/brz/local-git-key/+merge/381000

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
 
23
25
CAPABILITIES = ["fetch", "option", "push"]
24
26
 
25
27
import os
27
29
from ..controldir import ControlDir
28
30
from ..errors import NotBranchError, NoRepositoryPresent
29
31
from ..repository import InterRepository
 
32
from ..sixish import viewitems
30
33
from ..transport import get_transport_from_path
31
34
 
32
35
from . import (
118
121
        object_store = get_object_store(repo)
119
122
        with object_store.lock_read():
120
123
            refs = get_refs_container(self.remote_dir, object_store)
121
 
            for ref, git_sha1 in refs.as_dict().items():
 
124
            for ref, git_sha1 in viewitems(refs.as_dict()):
122
125
                ref = ref.replace(b"~", b"_")
123
126
                outf.write(b"%s %s\n" % (git_sha1, ref))
124
127
            outf.write(b"\n")