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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-07-25 02:21:19 UTC
  • mfrom: (7045.2.22 python3-q)
  • Revision ID: breezy.the.bot@gmail.com-20180725022119-j5tbtw8t58csyp2t
Fix a few more tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/python3-q/+merge/349833

Show diffs side-by-side

added added

removed removed

Lines of Context:
345
345
                except KeyError:
346
346
                    raise errors.RevisionNotPresent((fileid, revid), self)
347
347
                else:
348
 
                    if obj.type_name == "tree":
 
348
                    if obj.type_name == b"tree":
349
349
                        yield (identifier, [])
350
 
                    elif obj.type_name == "blob":
 
350
                    elif obj.type_name == b"blob":
351
351
                        yield (identifier, obj.chunked)
352
352
                    else:
353
353
                        raise AssertionError("file text resolved to %r" % obj)
358
358
        revs = []
359
359
        for sha in self._git.object_store:
360
360
            o = self._git.object_store[sha]
361
 
            if o.type_name == "commit":
 
361
            if o.type_name == b"commit":
362
362
                revs.append(o.id)
363
363
        result['revisions'] = len(revs)
364
364
        return result