Commit 62360c3b authored by Nick Thomas's avatar Nick Thomas

CE->EE: Fix the majority of conflicts

parent 8fac1c54
module RepositoryMirroring module RepositoryMirroring
<<<<<<< HEAD IMPORT_HEAD_REFS = '+refs/heads/*:refs/heads/*'.freeze
IMPORT_TAG_REFS = '+refs/tags/*:refs/tags/*'.freeze
def storage_path def storage_path
@project.repository_storage_path @project.repository_storage_path
end end
...@@ -12,13 +14,6 @@ module RepositoryMirroring ...@@ -12,13 +14,6 @@ module RepositoryMirroring
gitlab_shell.delete_remote_branches(storage_path, disk_path, remote, branches) gitlab_shell.delete_remote_branches(storage_path, disk_path, remote, branches)
end end
def set_remote_as_mirror(name)
config = raw_repository.rugged.config
=======
IMPORT_HEAD_REFS = '+refs/heads/*:refs/heads/*'.freeze
IMPORT_TAG_REFS = '+refs/tags/*:refs/tags/*'.freeze
>>>>>>> ce/master
def set_remote_as_mirror(name) def set_remote_as_mirror(name)
# This is used to define repository as equivalent as "git clone --mirror" # This is used to define repository as equivalent as "git clone --mirror"
raw_repository.rugged.config["remote.#{name}.fetch"] = 'refs/*:refs/*' raw_repository.rugged.config["remote.#{name}.fetch"] = 'refs/*:refs/*'
......
...@@ -13,19 +13,17 @@ class MergeRequestEntity < IssuableEntity ...@@ -13,19 +13,17 @@ class MergeRequestEntity < IssuableEntity
expose :target_branch expose :target_branch
expose :target_project_id expose :target_project_id
<<<<<<< HEAD expose :should_be_rebased?, as: :should_be_rebased
expose :ff_only_enabled do |merge_request|
merge_request.project.merge_requests_ff_only_enabled
end
# EE-specific # EE-specific
expose :approvals_before_merge expose :approvals_before_merge
expose :squash expose :squash
expose :rebase_commit_sha expose :rebase_commit_sha
expose :rebase_in_progress?, as: :rebase_in_progress expose :rebase_in_progress?, as: :rebase_in_progress
=======
>>>>>>> ce/master
expose :should_be_rebased?, as: :should_be_rebased
expose :ff_only_enabled do |merge_request|
merge_request.project.merge_requests_ff_only_enabled
end
<<<<<<< HEAD
expose :can_push_to_source_branch do |merge_request| expose :can_push_to_source_branch do |merge_request|
presenter(merge_request).can_push_to_source_branch? presenter(merge_request).can_push_to_source_branch?
end end
...@@ -35,8 +33,6 @@ class MergeRequestEntity < IssuableEntity ...@@ -35,8 +33,6 @@ class MergeRequestEntity < IssuableEntity
expose :approvals_path do |merge_request| expose :approvals_path do |merge_request|
presenter(merge_request).approvals_path presenter(merge_request).approvals_path
end end
=======
>>>>>>> ce/master
# Events # Events
expose :merge_event, using: EventEntity expose :merge_event, using: EventEntity
......
module Emails module Emails
class CreateService < ::Emails::BaseService class CreateService < ::Emails::BaseService
<<<<<<< HEAD
prepend ::EE::Emails::CreateService prepend ::EE::Emails::CreateService
def execute
@user.emails.create(email: @email)
=======
def execute(extra_params = {}) def execute(extra_params = {})
@user.emails.create(@params.merge(extra_params)) @user.emails.create(@params.merge(extra_params))
>>>>>>> ce/master
end end
end end
end end
module Emails module Emails
class DestroyService < ::Emails::BaseService class DestroyService < ::Emails::BaseService
<<<<<<< HEAD
prepend ::EE::Emails::DestroyService prepend ::EE::Emails::DestroyService
def execute
update_secondary_emails! if Email.find_by_email!(@email).destroy
=======
def execute(email) def execute(email)
email.destroy && update_secondary_emails! email.destroy && update_secondary_emails!
>>>>>>> ce/master
end end
private private
......
...@@ -374,14 +374,11 @@ Settings.pages['url'] ||= Settings.__send__(:build_pages_url) ...@@ -374,14 +374,11 @@ Settings.pages['url'] ||= Settings.__send__(:build_pages_url)
Settings.pages['external_http'] ||= false unless Settings.pages['external_http'].present? Settings.pages['external_http'] ||= false unless Settings.pages['external_http'].present?
Settings.pages['external_https'] ||= false unless Settings.pages['external_https'].present? Settings.pages['external_https'] ||= false unless Settings.pages['external_https'].present?
Settings.pages['artifacts_server'] ||= Settings.pages['enabled'] if Settings.pages['artifacts_server'].nil? Settings.pages['artifacts_server'] ||= Settings.pages['enabled'] if Settings.pages['artifacts_server'].nil?
<<<<<<< HEAD
# #
# Geo # Geo
# #
Settings.gitlab['geo_status_timeout'] ||= 10 Settings.gitlab['geo_status_timeout'] ||= 10
=======
>>>>>>> ce/master
# #
# Git LFS # Git LFS
......
...@@ -74,13 +74,10 @@ var config = { ...@@ -74,13 +74,10 @@ var config = {
protected_branches: './protected_branches', protected_branches: './protected_branches',
ee_protected_branches: 'ee/protected_branches', ee_protected_branches: 'ee/protected_branches',
protected_tags: './protected_tags', protected_tags: './protected_tags',
<<<<<<< HEAD
ee_protected_tags: 'ee/protected_tags', ee_protected_tags: 'ee/protected_tags',
service_desk: './projects/settings_service_desk/service_desk_bundle.js', service_desk: './projects/settings_service_desk/service_desk_bundle.js',
service_desk_issues: './service_desk_issues/index.js', service_desk_issues: './service_desk_issues/index.js',
=======
registry_list: './registry/index.js', registry_list: './registry/index.js',
>>>>>>> ce/master
repo: './repo/index.js', repo: './repo/index.js',
sidebar: './sidebar/sidebar_bundle.js', sidebar: './sidebar/sidebar_bundle.js',
schedule_form: './pipeline_schedules/pipeline_schedule_form_bundle.js', schedule_form: './pipeline_schedules/pipeline_schedule_form_bundle.js',
......
...@@ -22,7 +22,6 @@ Feature: Project Ff Merge Requests ...@@ -22,7 +22,6 @@ Feature: Project Ff Merge Requests
Then I should see ff-only merge button Then I should see ff-only merge button
When I accept this merge request When I accept this merge request
Then I should see merged request Then I should see merged request
<<<<<<< HEAD
@javascript @javascript
Scenario: I do rebase before ff-only merge Scenario: I do rebase before ff-only merge
...@@ -40,5 +39,3 @@ Feature: Project Ff Merge Requests ...@@ -40,5 +39,3 @@ Feature: Project Ff Merge Requests
Then I should see rebase button Then I should see rebase button
When I press rebase button When I press rebase button
Then I should see rebase in progress message Then I should see rebase in progress message
=======
>>>>>>> ce/master
...@@ -17,13 +17,10 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps ...@@ -17,13 +17,10 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
author: project.users.first) author: project.users.first)
end end
<<<<<<< HEAD
step 'merge request is mergeable' do step 'merge request is mergeable' do
expect(page).to have_button 'Merge' expect(page).to have_button 'Merge'
end end
=======
>>>>>>> ce/master
step 'I should see ff-only merge button' do step 'I should see ff-only merge button' do
expect(page).to have_content "Fast-forward merge without a merge commit" expect(page).to have_content "Fast-forward merge without a merge commit"
expect(page).to have_button 'Merge' expect(page).to have_button 'Merge'
...@@ -52,13 +49,10 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps ...@@ -52,13 +49,10 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
project.save! project.save!
end end
<<<<<<< HEAD
step 'I should see rebase button' do step 'I should see rebase button' do
expect(page).to have_button "Rebase" expect(page).to have_button "Rebase"
end end
=======
>>>>>>> ce/master
step 'merge request "Bug NS-05" is rebased' do step 'merge request "Bug NS-05" is rebased' do
merge_request.source_branch = 'flatten-dir' merge_request.source_branch = 'flatten-dir'
merge_request.target_branch = 'improve/awesome' merge_request.target_branch = 'improve/awesome'
...@@ -73,7 +67,6 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps ...@@ -73,7 +67,6 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
merge_request.save! merge_request.save!
end end
<<<<<<< HEAD
step 'rebase before merge enabled' do step 'rebase before merge enabled' do
project = merge_request.target_project project = merge_request.target_project
project.merge_requests_rebase_enabled = true project.merge_requests_rebase_enabled = true
...@@ -88,8 +81,6 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps ...@@ -88,8 +81,6 @@ class Spinach::Features::ProjectFfMergeRequests < Spinach::FeatureSteps
expect(page).to have_content("Rebase in progress") expect(page).to have_content("Rebase in progress")
end end
=======
>>>>>>> ce/master
def merge_request def merge_request
@merge_request ||= MergeRequest.find_by!(title: "Bug NS-05") @merge_request ||= MergeRequest.find_by!(title: "Bug NS-05")
end end
......
...@@ -8,13 +8,8 @@ msgid "" ...@@ -8,13 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: gitlab 1.0.0\n" "Project-Id-Version: gitlab 1.0.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
<<<<<<< HEAD
"POT-Creation-Date: 2017-10-02 15:48-0400\n"
"PO-Revision-Date: 2017-10-02 15:48-0400\n"
=======
"POT-Creation-Date: 2017-10-03 16:06-0400\n" "POT-Creation-Date: 2017-10-03 16:06-0400\n"
"PO-Revision-Date: 2017-10-03 16:06-0400\n" "PO-Revision-Date: 2017-10-03 16:06-0400\n"
>>>>>>> ce/master
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n" "Language: \n"
......
...@@ -96,29 +96,24 @@ ...@@ -96,29 +96,24 @@
"commit_change_content_path": { "type": "string" }, "commit_change_content_path": { "type": "string" },
"remove_wip_path": { "type": ["string", "null"] }, "remove_wip_path": { "type": ["string", "null"] },
"commits_count": { "type": "integer" }, "commits_count": { "type": "integer" },
"merge_ongoing": { "type": "boolean" },
"remove_source_branch": { "type": ["boolean", "null"] }, "remove_source_branch": { "type": ["boolean", "null"] },
<<<<<<< HEAD "merge_ongoing": { "type": "boolean" },
"ff_only_enabled": { "type": ["boolean", false] },
"should_be_rebased": { "type": "boolean" },
// EE-specific // EE-specific
"rebase_commit_sha": { "type": ["string", "null"] }, "rebase_commit_sha": { "type": ["string", "null"] },
"approvals_before_merge": { "type": ["integer", "null"] }, "approvals_before_merge": { "type": ["integer", "null"] },
"squash": { "type": "boolean" }, "squash": { "type": "boolean" },
"rebase_in_progress": { "type": "boolean" }, "rebase_in_progress": { "type": "boolean" },
"should_be_rebased": { "type": "boolean" },
"can_push_to_source_branch": { "type": "boolean" }, "can_push_to_source_branch": { "type": "boolean" },
"rebase_path": { "type": ["string", "null"] }, "rebase_path": { "type": ["string", "null"] },
"approved": { "type": "boolean" }, "approved": { "type": "boolean" },
"approvals_path": { "type": ["string", "null"] }, "approvals_path": { "type": ["string", "null"] },
"ff_only_enabled": { "type": "boolean" },
"codeclimate": { "codeclimate": {
"head_path": { "type": "string" }, "head_path": { "type": "string" },
"base_path": { "type": "string" } "base_path": { "type": "string" }
} }
=======
"merge_ongoing": { "type": "boolean" },
"ff_only_enabled": { "type": ["boolean", false] },
"should_be_rebased": { "type": "boolean" }
>>>>>>> ce/master
}, },
"additionalProperties": false "additionalProperties": false
} }
...@@ -86,11 +86,7 @@ describe Gitlab::PathRegex do ...@@ -86,11 +86,7 @@ describe Gitlab::PathRegex do
route.split('/')[1] route.split('/')[1]
end.compact end.compact
<<<<<<< HEAD
words + files_in_public + Array(API::API.prefix.to_s)
=======
(words + ee_top_level_words + files_in_public + Array(API::API.prefix.to_s)).uniq (words + ee_top_level_words + files_in_public + Array(API::API.prefix.to_s)).uniq
>>>>>>> ce/master
end end
let(:ee_top_level_words) do let(:ee_top_level_words) do
......
...@@ -678,14 +678,6 @@ describe Gitlab::Shell do ...@@ -678,14 +678,6 @@ describe Gitlab::Shell do
end end
end end
<<<<<<< HEAD
def find_in_authorized_keys_file(key_id)
gitlab_shell.batch_read_key_ids do |ids|
return true if ids.include?(key_id)
end
false
=======
describe 'namespace actions' do describe 'namespace actions' do
subject { described_class.new } subject { described_class.new }
let(:storage_path) { Gitlab.config.repositories.storages.default.path } let(:storage_path) { Gitlab.config.repositories.storages.default.path }
...@@ -732,6 +724,13 @@ describe Gitlab::Shell do ...@@ -732,6 +724,13 @@ describe Gitlab::Shell do
expect(subject.exists?(storage_path, "2mep")).to be(true) expect(subject.exists?(storage_path, "2mep")).to be(true)
end end
end end
>>>>>>> ce/master end
def find_in_authorized_keys_file(key_id)
gitlab_shell.batch_read_key_ids do |ids|
return true if ids.include?(key_id)
end
false
end end
end end
...@@ -38,15 +38,11 @@ describe MergeRequestEntity do ...@@ -38,15 +38,11 @@ describe MergeRequestEntity do
:create_issue_to_resolve_discussions_path, :create_issue_to_resolve_discussions_path,
:source_branch_path, :target_branch_commits_path, :source_branch_path, :target_branch_commits_path,
:target_branch_tree_path, :commits_count, :merge_ongoing, :target_branch_tree_path, :commits_count, :merge_ongoing,
<<<<<<< HEAD
:ff_only_enabled, :ff_only_enabled,
## EE ## EE
:can_push_to_source_branch, :approvals_before_merge, :can_push_to_source_branch, :approvals_before_merge,
:squash, :rebase_commit_sha, :rebase_in_progress, :squash, :rebase_commit_sha, :rebase_in_progress,
:approvals_path) :approvals_path)
=======
:ff_only_enabled)
>>>>>>> ce/master
end end
it 'has email_patches_path' do it 'has email_patches_path' do
......
...@@ -28,17 +28,11 @@ shared_examples 'update invalid issuable' do |klass| ...@@ -28,17 +28,11 @@ shared_examples 'update invalid issuable' do |klass|
if klass == MergeRequest if klass == MergeRequest
it 'renders edit when format is html' do it 'renders edit when format is html' do
put :update, params put :update, params
<<<<<<< HEAD
expect(response).to render_template(:edit) expect(response).to render_template(:edit)
expect(assigns[:conflict]).to be_truthy expect(assigns[:conflict]).to be_truthy
expect(assigns[:suggested_approvers]).to be_an(Array) if issuable.requires_approve? expect(assigns[:suggested_approvers]).to be_an(Array) if issuable.requires_approve?
=======
expect(response).to render_template(:edit)
expect(assigns[:conflict]).to be_truthy
>>>>>>> ce/master
end end
end end
......
...@@ -256,14 +256,10 @@ describe 'gitlab:app namespace rake task' do ...@@ -256,14 +256,10 @@ describe 'gitlab:app namespace rake task' do
after do after do
FileUtils.rm_rf('tmp/tests/default_storage') FileUtils.rm_rf('tmp/tests/default_storage')
FileUtils.rm_rf('tmp/tests/custom_storage') FileUtils.rm_rf('tmp/tests/custom_storage')
<<<<<<< HEAD FileUtils.rm(@backup_tar) if @backup_tar
FileUtils.rm(@backup_tar)
# We unstub the storages to be able to reconfigure the actual Gitaly channels # We unstub the storages to be able to reconfigure the actual Gitaly channels
allow(Gitlab.config.repositories).to receive(:storages).and_call_original allow(Gitlab.config.repositories).to receive(:storages).and_call_original
=======
FileUtils.rm(@backup_tar) if @backup_tar
>>>>>>> ce/master
end end
it 'includes repositories in all repository storages' do it 'includes repositories in all repository storages' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment