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
866b3ff6
Commit
866b3ff6
authored
Aug 03, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve CE->EE conflicts in application code
parent
3164796c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
3 additions
and
32 deletions
+3
-32
app/models/project.rb
app/models/project.rb
+0
-3
app/models/project_wiki.rb
app/models/project_wiki.rb
+3
-4
app/services/ci/pipeline_trigger_service.rb
app/services/ci/pipeline_trigger_service.rb
+0
-9
app/services/git_push_service.rb
app/services/git_push_service.rb
+0
-5
app/services/merge_requests/base_service.rb
app/services/merge_requests/base_service.rb
+0
-3
db/schema.rb
db/schema.rb
+0
-4
lib/banzai/filter/upload_link_filter.rb
lib/banzai/filter/upload_link_filter.rb
+0
-4
No files found.
app/models/project.rb
View file @
866b3ff6
...
@@ -18,12 +18,9 @@ class Project < ActiveRecord::Base
...
@@ -18,12 +18,9 @@ class Project < ActiveRecord::Base
include
SelectForProjectAuthorization
include
SelectForProjectAuthorization
include
Routable
include
Routable
include
Storage
::
LegacyProject
include
Storage
::
LegacyProject
<<<<<<<
HEAD
# EE specific modules
# EE specific modules
prepend
EE
::
Project
prepend
EE
::
Project
=======
>>>>>>>
ce
/
master
extend
Gitlab
::
ConfigHelper
extend
Gitlab
::
ConfigHelper
...
...
app/models/project_wiki.rb
View file @
866b3ff6
class
ProjectWiki
class
ProjectWiki
include
Gitlab
::
ShellAdapter
include
Gitlab
::
ShellAdapter
<<<<<<<
HEAD
include
Storage
::
LegacyProjectWiki
# EE only modules
include
Elastic
::
WikiRepositoriesSearch
include
Elastic
::
WikiRepositoriesSearch
include
Gitlab
::
CurrentSettings
include
Gitlab
::
CurrentSettings
=======
>>>>>>>
ce
/
master
include
Storage
::
LegacyProjectWiki
MARKUPS
=
{
MARKUPS
=
{
'Markdown'
=>
:markdown
,
'Markdown'
=>
:markdown
,
...
...
app/services/ci/pipeline_trigger_service.rb
View file @
866b3ff6
...
@@ -3,11 +3,8 @@ module Ci
...
@@ -3,11 +3,8 @@ module Ci
def
execute
def
execute
if
trigger_from_token
if
trigger_from_token
create_pipeline_from_trigger
(
trigger_from_token
)
create_pipeline_from_trigger
(
trigger_from_token
)
<<<<<<<
HEAD
elsif
job_from_token
elsif
job_from_token
create_pipeline_from_job
(
job_from_token
)
create_pipeline_from_job
(
job_from_token
)
=======
>>>>>>>
ce
/
master
end
end
end
end
...
@@ -30,7 +27,6 @@ module Ci
...
@@ -30,7 +27,6 @@ module Ci
end
end
end
end
<<<<<<<
HEAD
def
create_pipeline_from_job
(
job
)
def
create_pipeline_from_job
(
job
)
# this check is to not leak the presence of the project if user cannot read it
# this check is to not leak the presence of the project if user cannot read it
return
unless
can?
(
job
.
user
,
:read_project
,
project
)
return
unless
can?
(
job
.
user
,
:read_project
,
project
)
...
@@ -55,23 +51,18 @@ module Ci
...
@@ -55,23 +51,18 @@ module Ci
end
end
end
end
=======
>>>>>>>
ce
/
master
def
trigger_from_token
def
trigger_from_token
return
@trigger
if
defined?
(
@trigger
)
return
@trigger
if
defined?
(
@trigger
)
@trigger
=
Ci
::
Trigger
.
find_by_token
(
params
[
:token
].
to_s
)
@trigger
=
Ci
::
Trigger
.
find_by_token
(
params
[
:token
].
to_s
)
end
end
<<<<<<<
HEAD
def
job_from_token
def
job_from_token
return
@job
if
defined?
(
@job
)
return
@job
if
defined?
(
@job
)
@job
=
Ci
::
Build
.
find_by_token
(
params
[
:token
].
to_s
)
@job
=
Ci
::
Build
.
find_by_token
(
params
[
:token
].
to_s
)
end
end
=======
>>>>>>>
ce
/
master
def
create_pipeline_variables!
(
pipeline
)
def
create_pipeline_variables!
(
pipeline
)
return
unless
params
[
:variables
]
return
unless
params
[
:variables
]
...
...
app/services/git_push_service.rb
View file @
866b3ff6
...
@@ -131,13 +131,8 @@ class GitPushService < BaseService
...
@@ -131,13 +131,8 @@ class GitPushService < BaseService
mirror_update
=
@project
.
mirror?
&&
@project
.
repository
.
up_to_date_with_upstream?
(
branch_name
)
mirror_update
=
@project
.
mirror?
&&
@project
.
repository
.
up_to_date_with_upstream?
(
branch_name
)
EventCreateService
.
new
.
push
(
@project
,
current_user
,
build_push_data
)
EventCreateService
.
new
.
push
(
@project
,
current_user
,
build_push_data
)
<<<<<<<
HEAD
Ci
::
CreatePipelineService
.
new
(
@project
,
current_user
,
build_push_data
).
execute
(
:push
,
mirror_update:
mirror_update
)
Ci
::
CreatePipelineService
.
new
(
@project
,
current_user
,
build_push_data
).
execute
(
:push
,
mirror_update:
mirror_update
)
=======
Ci
::
CreatePipelineService
.
new
(
@project
,
current_user
,
build_push_data
).
execute
(
:push
)
>>>>>>>
ce
/
master
SystemHookPushWorker
.
perform_async
(
build_push_data
.
dup
,
:push_hooks
)
SystemHookPushWorker
.
perform_async
(
build_push_data
.
dup
,
:push_hooks
)
@project
.
execute_hooks
(
build_push_data
.
dup
,
:push_hooks
)
@project
.
execute_hooks
(
build_push_data
.
dup
,
:push_hooks
)
@project
.
execute_services
(
build_push_data
.
dup
,
:push_hooks
)
@project
.
execute_services
(
build_push_data
.
dup
,
:push_hooks
)
...
...
app/services/merge_requests/base_service.rb
View file @
866b3ff6
module
MergeRequests
module
MergeRequests
class
BaseService
<
::
IssuableBaseService
class
BaseService
<
::
IssuableBaseService
<<<<<<<
HEAD
prepend
EE
::
MergeRequests
::
BaseService
prepend
EE
::
MergeRequests
::
BaseService
=======
>>>>>>>
ce
/
master
def
create_note
(
merge_request
,
state
=
merge_request
.
state
)
def
create_note
(
merge_request
,
state
=
merge_request
.
state
)
SystemNoteService
.
change_status
(
merge_request
,
merge_request
.
target_project
,
current_user
,
state
,
nil
)
SystemNoteService
.
change_status
(
merge_request
,
merge_request
.
target_project
,
current_user
,
state
,
nil
)
end
end
...
...
db/schema.rb
View file @
866b3ff6
...
@@ -11,11 +11,7 @@
...
@@ -11,11 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
<<<<<<<
HEAD
ActiveRecord
::
Schema
.
define
(
version:
20170726111039
)
do
=======
ActiveRecord
::
Schema
.
define
(
version:
20170728101014
)
do
ActiveRecord
::
Schema
.
define
(
version:
20170728101014
)
do
>>>>>>>
ce
/
master
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
...
lib/banzai/filter/upload_link_filter.rb
View file @
866b3ff6
...
@@ -28,15 +28,11 @@ module Banzai
...
@@ -28,15 +28,11 @@ module Banzai
end
end
def
build_url
(
uri
)
def
build_url
(
uri
)
<<<<<<<
HEAD
if
Gitlab
::
Geo
.
secondary?
if
Gitlab
::
Geo
.
secondary?
File
.
join
(
Gitlab
::
Geo
.
primary_node
.
url
,
project
.
full_path
,
uri
)
File
.
join
(
Gitlab
::
Geo
.
primary_node
.
url
,
project
.
full_path
,
uri
)
else
else
File
.
join
(
Gitlab
.
config
.
gitlab
.
url
,
project
.
full_path
,
uri
)
File
.
join
(
Gitlab
.
config
.
gitlab
.
url
,
project
.
full_path
,
uri
)
end
end
=======
File
.
join
(
Gitlab
.
config
.
gitlab
.
url
,
project
.
full_path
,
uri
)
>>>>>>>
ce
/
master
end
end
def
project
def
project
...
...
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