Skip to content
Snippets Groups Projects
Commit 90f43583 authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Generalise Branch class

parent 5cbb5163
No related branches found
No related tags found
1 merge request!27Refactor offline I/O
...@@ -48,8 +48,8 @@ class Branch: ...@@ -48,8 +48,8 @@ class Branch:
if subbranchmaps is not None: if subbranchmaps is not None:
for mapper in subbranchmaps: for mapper in subbranchmaps:
subbranch = self.__class__(self._tree, subbranch = self.__class__(self._tree,
mapper=mapper, mapper=mapper,
index=self._index) index=self._index)
self._subbranches.append(subbranch) self._subbranches.append(subbranch)
for subbranch in self._subbranches: for subbranch in self._subbranches:
setattr(self, subbranch._mapper.name, subbranch) setattr(self, subbranch._mapper.name, subbranch)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment