/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/tree.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:
319
319
 
320
320
    def all_versioned_paths(self):
321
321
        ret = set()
322
 
        todo = {(self.store, '', self.tree)}
 
322
        todo = [(self.store, b'', self.tree)]
323
323
        while todo:
324
324
            (store, path, tree_id) = todo.pop()
325
325
            if tree_id is None:
328
328
            for name, mode, hexsha in tree.items():
329
329
                subpath = posixpath.join(path, name)
330
330
                if stat.S_ISDIR(mode):
331
 
                    todo.add((store, subpath, hexsha))
 
331
                    todo.append((store, subpath, hexsha))
332
332
                else:
333
 
                    ret.add(subpath)
 
333
                    ret.add(subpath.decode('utf-8'))
334
334
        return ret
335
335
 
336
336
    def get_root_id(self):