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

  • Committer: Jelmer Vernooij
  • Date: 2019-01-02 23:27:41 UTC
  • mto: This revision was merged to the branch mainline in revision 7235.
  • Revision ID: jelmer@jelmer.uk-20190102232741-d91evx8hysea9tgm
Fix python3 compat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
        with object_store.lock_read():
202
202
            if sha1 is not None:
203
203
                try:
204
 
                    obj = object_store[str(sha1)]
 
204
                    obj = object_store[sha1.encode('ascii')]
205
205
                except KeyError:
206
206
                    raise BzrCommandError(
207
207
                        gettext("Object not found: %s") % sha1)
212
212
                self.outf.write(text)
213
213
            else:
214
214
                for sha1 in object_store:
215
 
                    self.outf.write("%s\n" % sha1)
 
215
                    self.outf.write("%s\n" % sha1.decode('ascii'))
216
216
 
217
217
 
218
218
class cmd_git_refs(Command):