Lines Matching full:components
56 def _remove(self, components): argument
57 """Removes components from self tree.
60 components: the path to remove, relative to self. Each element means
65 if len(components) == 1:
66 del self._files[components[0]]
70 dirname, components = components[0], components[1:]
72 subdir._remove(components)
82 components = path.split(b'/')
83 self._remove(components)
85 def _get(self, components): argument
86 """Returns a file at components in utils.GitFile from self tree.
89 components: path in list instead of separated by /.
92 if len(components) == 1:
93 return self._files[components[0]]
95 dirname, components = components[0], components[1:]
96 return self._subtrees[dirname]._get(components)
104 components = path.split(b'/')
105 return self._get(components)
107 def _set(self, components, f): argument
111 components: the path to set, relative to self. Each element means
118 if len(components) == 1:
119 self._files[components[0]] = f
123 dirname, components = components[0], components[1:]
126 self._subtrees[dirname]._set(components, f)
136 components = path.split(b'/')
137 self._set(components, f)