Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
b6307fe2
Commit
b6307fe2
authored
Jan 10, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testnode: fix performance issue when deleting pyc/pyo files
parent
b2bffc14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
erp5/util/testnode/Updater.py
erp5/util/testnode/Updater.py
+2
-2
No files found.
erp5/util/testnode/Updater.py
View file @
b6307fe2
...
@@ -131,7 +131,7 @@ class Updater(object):
...
@@ -131,7 +131,7 @@ class Updater(object):
else:
else:
h = revision[1]
h = revision[1]
if h != self._git('
rev
-
parse
', '
HEAD
'):
if h != self._git('
rev
-
parse
', '
HEAD
'):
self.deletePycFiles(
'
.
'
)
self.deletePycFiles(
self.repository_path
)
# For performance reasons, '
reset
--
merge
' only looks at mtime & ctime
# For performance reasons, '
reset
--
merge
' only looks at mtime & ctime
# to check is the index is correct and conflicts immediately if
# to check is the index is correct and conflicts immediately if
# contents or metadata changed. Even hardlinking a file changes its
# contents or metadata changed. Even hardlinking a file changes its
...
@@ -140,7 +140,7 @@ class Updater(object):
...
@@ -140,7 +140,7 @@ class Updater(object):
self._git('
update
-
index
', '
--
refresh
')
self._git('
update
-
index
', '
--
refresh
')
self._git('
reset
', '
--
merge
', h)
self._git('
reset
', '
--
merge
', h)
else:
else:
self.deletePycFiles(
'
.
'
)
self.deletePycFiles(
self.repository_path
)
if os.path.exists('
.
git
/
svn
'):
if os.path.exists('
.
git
/
svn
'):
self._git('
svn
', '
rebase
')
self._git('
svn
', '
rebase
')
else:
else:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment