BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1ebb2255
Commit
1ebb2255
authored
Jun 12, 2017
by
Bob Van Landuyt
Committed by
Bob Van Landuyt
Jun 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More logging so we know we have the rename in redis
parent
c98ed42d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
rename_base.rb
...atabase/rename_reserved_paths_migration/v1/rename_base.rb
+5
-1
No files found.
lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb
View file @
1ebb2255
...
...
@@ -125,7 +125,11 @@ module Gitlab
def
track_rename
(
type
,
old_path
,
new_path
)
key
=
redis_key_for_type
(
type
)
Gitlab
::
Redis
.
with
{
|
redis
|
redis
.
lpush
(
key
,
[
old_path
,
new_path
].
to_json
)
}
Gitlab
::
Redis
.
with
do
|
redis
|
redis
.
lpush
(
key
,
[
old_path
,
new_path
].
to_json
)
redis
.
expire
(
key
,
2
.
weeks
.
to_i
)
end
say
"tracked rename:
#{
key
}
:
#{
old_path
}
->
#{
new_path
}
"
end
def
reverts_for_type
(
type
)
...
...
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