Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
6eba7188
Commit
6eba7188
authored
Jul 29, 2016
by
Stan Hu
Committed by
Ahmad Sherif
Aug 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use only deltas in diffs when scanning the last commit for changes in the avatar to save memory
parent
a16c26c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CHANGELOG
CHANGELOG
+1
-1
app/models/repository.rb
app/models/repository.rb
+1
-1
No files found.
CHANGELOG
View file @
6eba7188
...
@@ -57,7 +57,7 @@ v 8.11.0 (unreleased)
...
@@ -57,7 +57,7 @@ v 8.11.0 (unreleased)
- Sensible state specific default sort order for issues and merge requests !5453 (tomb0y)
- Sensible state specific default sort order for issues and merge requests !5453 (tomb0y)
- Fix RequestProfiler::Middleware error when code is reloaded in development
- Fix RequestProfiler::Middleware error when code is reloaded in development
- Catch what warden might throw when profiling requests to re-throw it
- Catch what warden might throw when profiling requests to re-throw it
- Speed up
Commit#repo_changes
- Speed up
and reduce memory usage of Commit#repo_changes and Repository#expire_avatar_cache
v 8.10.3
v 8.10.3
- Fix Import/Export issue importing milestones and labels not associated properly. !5426
- Fix Import/Export issue importing milestones and labels not associated properly. !5426
...
...
app/models/repository.rb
View file @
6eba7188
...
@@ -372,7 +372,7 @@ class Repository
...
@@ -372,7 +372,7 @@ class Repository
# We don't want to flush the cache if the commit didn't actually make any
# We don't want to flush the cache if the commit didn't actually make any
# changes to any of the possible avatar files.
# changes to any of the possible avatar files.
if
revision
&&
commit
=
self
.
commit
(
revision
)
if
revision
&&
commit
=
self
.
commit
(
revision
)
return
unless
commit
.
raw_diffs
.
return
unless
commit
.
raw_diffs
(
deltas_only:
true
)
.
any?
{
|
diff
|
AVATAR_FILES
.
include?
(
diff
.
new_path
)
}
any?
{
|
diff
|
AVATAR_FILES
.
include?
(
diff
.
new_path
)
}
end
end
...
...
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