Commit b6307fe2 authored by Julien Muchembled's avatar Julien Muchembled

testnode: fix performance issue when deleting pyc/pyo files

parent b2bffc14
......@@ -131,7 +131,7 @@ class Updater(object):
else:
h = revision[1]
if h != self._git('rev-parse', 'HEAD'):
self.deletePycFiles('.')
self.deletePycFiles(self.repository_path)
# For performance reasons, 'reset --merge' only looks at mtime & ctime
# to check is the index is correct and conflicts immediately if
# contents or metadata changed. Even hardlinking a file changes its
......@@ -140,7 +140,7 @@ class Updater(object):
self._git('update-index', '--refresh')
self._git('reset', '--merge', h)
else:
self.deletePycFiles('.')
self.deletePycFiles(self.repository_path)
if os.path.exists('.git/svn'):
self._git('svn', 'rebase')
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment