Skip to content
Snippets Groups Projects
Commit f2940159 authored by Augie Fackler's avatar Augie Fackler
Browse files

overlay: stop using deprecated tree.entries() method

parent abc765fb
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,6 @@
self._flagmap = {}
def addtree(tree, dirname):
for entry in tree.entries():
if entry[0] & 040000:
for entry in tree.iteritems():
if entry.mode & 040000:
# expand directory
......@@ -47,4 +47,4 @@
# expand directory
subtree = self.repo.handler.git.get_object(entry[2])
addtree(subtree, dirname + entry[1] + '/')
subtree = self.repo.handler.git.get_object(entry.sha)
addtree(subtree, dirname + entry.path + '/')
else:
......@@ -50,7 +50,7 @@
else:
path = dirname + entry[1]
self._map[path] = bin(entry[2])
self._flagmap[path] = entry[0]
path = dirname + entry.path
self._map[path] = bin(entry.sha)
self._flagmap[path] = entry.mode
addtree(self.tree, '')
......
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