/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: Jelmer Vernooij
  • Date: 2018-06-29 20:24:31 UTC
  • mfrom: (6999 work)
  • mto: This revision was merged to the branch mainline in revision 7008.
  • Revision ID: jelmer@jelmer.uk-20180629202431-2td8kihrsthzuvau
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    CURRENT_REVISION,
60
60
    NULL_REVISION,
61
61
    )
 
62
from ...sixish import text_type
62
63
 
63
64
from .mapping import (
64
65
    mode_is_executable,
315
316
 
316
317
    def all_versioned_paths(self):
317
318
        ret = set()
318
 
        todo = set([(store, '', self.tree)])
 
319
        todo = {(self.store, '', self.tree)}
319
320
        while todo:
320
321
            (store, path, tree_id) = todo.pop()
321
322
            if tree_id is None:
1034
1035
            posixpath.basename(path).strip("/"), parent_id)
1035
1036
 
1036
1037
    def _get_file_ie(self, name, path, value, parent_id):
1037
 
        if type(name) is not unicode:
 
1038
        if not isinstance(name, text_type):
1038
1039
            raise TypeError(name)
1039
 
        if type(path) is not unicode:
 
1040
        if not isinstance(path, text_type):
1040
1041
            raise TypeError(path)
1041
1042
        if not isinstance(value, tuple) or len(value) != 10:
1042
1043
            raise TypeError(value)