Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hamza
erp5-Boxiang
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
Show 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):
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:
...
...
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