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
b3f8a978
Commit
b3f8a978
authored
Apr 13, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve merge conflicts
parent
e74833f8
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
6 additions
and
85 deletions
+6
-85
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+2
-3
app/models/concerns/discussion_on_diff.rb
app/models/concerns/discussion_on_diff.rb
+0
-6
app/views/projects/blob/_header.html.haml
app/views/projects/blob/_header.html.haml
+0
-3
lib/api/groups.rb
lib/api/groups.rb
+0
-5
lib/api/issues.rb
lib/api/issues.rb
+0
-5
lib/api/merge_requests.rb
lib/api/merge_requests.rb
+0
-10
lib/api/projects.rb
lib/api/projects.rb
+0
-10
lib/api/settings.rb
lib/api/settings.rb
+0
-5
lib/api/users.rb
lib/api/users.rb
+0
-3
lib/gitlab/database.rb
lib/gitlab/database.rb
+0
-5
scripts/prepare_build.sh
scripts/prepare_build.sh
+4
-24
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+0
-3
spec/spec_helper.rb
spec/spec_helper.rb
+0
-3
No files found.
app/controllers/projects_controller.rb
View file @
b3f8a978
...
@@ -382,15 +382,14 @@ class ProjectsController < Projects::ApplicationController
...
@@ -382,15 +382,14 @@ class ProjectsController < Projects::ApplicationController
project
.
repository
.
root_ref
project
.
repository
.
root_ref
end
end
<<<<<<<
HEAD
# ExtractsPath will set @id = project.path on the show route, but it has to be the
# ExtractsPath will set @id = project.path on the show route, but it has to be the
# branch name for the tree view to work correctly.
# branch name for the tree view to work correctly.
def
assign_tree_vars
def
assign_tree_vars
@id
=
get_id
@id
=
get_id
tree
tree
=======
end
def
project_view_files_allowed?
def
project_view_files_allowed?
!
project
.
empty_repo?
&&
can?
(
current_user
,
:download_code
,
project
)
!
project
.
empty_repo?
&&
can?
(
current_user
,
:download_code
,
project
)
>>>>>>>
ce
/
master
end
end
end
end
app/models/concerns/discussion_on_diff.rb
View file @
b3f8a978
...
@@ -2,15 +2,9 @@
...
@@ -2,15 +2,9 @@
module
DiscussionOnDiff
module
DiscussionOnDiff
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
<<<<<<<
HEAD
included
do
NUMBER_OF_TRUNCATED_DIFF_LINES
=
16
=======
NUMBER_OF_TRUNCATED_DIFF_LINES
=
16
NUMBER_OF_TRUNCATED_DIFF_LINES
=
16
included
do
included
do
>>>>>>>
ce
/
master
delegate
:line_code
,
delegate
:line_code
,
:original_line_code
,
:original_line_code
,
:diff_file
,
:diff_file
,
...
...
app/views/projects/blob/_header.html.haml
View file @
b3f8a978
...
@@ -47,7 +47,6 @@
...
@@ -47,7 +47,6 @@
=
link_to
'Fork'
,
fork_path
,
method: :post
,
class:
'btn btn-grouped btn-inverted btn-new'
=
link_to
'Fork'
,
fork_path
,
method: :post
,
class:
'btn btn-grouped btn-inverted btn-new'
%button
.js-cancel-fork-suggestion.btn.btn-grouped
{
type:
'button'
}
%button
.js-cancel-fork-suggestion.btn.btn-grouped
{
type:
'button'
}
Cancel
Cancel
<<<<<<<
HEAD
-
if
license_allows_file_locks?
-
if
license_allows_file_locks?
:javascript
:javascript
...
@@ -55,5 +54,3 @@
...
@@ -55,5 +54,3 @@
'
#{
toggle_namespace_project_path_locks_path
(
@project
.
namespace
,
@project
)
}
'
,
'
#{
toggle_namespace_project_path_locks_path
(
@project
.
namespace
,
@project
)
}
'
,
'
#{
@path
}
'
'
#{
@path
}
'
);
);
==
=====
>
>>>>>> ce/master
lib/api/groups.rb
View file @
b3f8a978
...
@@ -13,7 +13,6 @@ module API
...
@@ -13,7 +13,6 @@ module API
optional
:share_with_group_lock
,
type:
Boolean
,
desc:
'Prevent sharing a project with another group within this group'
optional
:share_with_group_lock
,
type:
Boolean
,
desc:
'Prevent sharing a project with another group within this group'
end
end
<<<<<<<
HEAD
params
:optional_params_ee
do
params
:optional_params_ee
do
optional
:membership_lock
,
type:
Boolean
,
desc:
'Prevent adding new members to project membership within this group'
optional
:membership_lock
,
type:
Boolean
,
desc:
'Prevent adding new members to project membership within this group'
optional
:ldap_cn
,
type:
String
,
desc:
'LDAP Common Name'
optional
:ldap_cn
,
type:
String
,
desc:
'LDAP Common Name'
...
@@ -24,10 +23,6 @@ module API
...
@@ -24,10 +23,6 @@ module API
params
:optional_params
do
params
:optional_params
do
use
:optional_params_ce
use
:optional_params_ce
use
:optional_params_ee
use
:optional_params_ee
=======
params
:optional_params
do
use
:optional_params_ce
>>>>>>>
ce
/
master
end
end
params
:statistics_params
do
params
:statistics_params
do
...
...
lib/api/issues.rb
View file @
b3f8a978
...
@@ -39,7 +39,6 @@ module API
...
@@ -39,7 +39,6 @@ module API
optional
:confidential
,
type:
Boolean
,
desc:
'Boolean parameter if the issue should be confidential'
optional
:confidential
,
type:
Boolean
,
desc:
'Boolean parameter if the issue should be confidential'
end
end
<<<<<<<
HEAD
params
:issue_params_ee
do
params
:issue_params_ee
do
optional
:weight
,
type:
Integer
,
values:
0
..
9
,
desc:
'The weight of the issue'
optional
:weight
,
type:
Integer
,
values:
0
..
9
,
desc:
'The weight of the issue'
end
end
...
@@ -47,10 +46,6 @@ module API
...
@@ -47,10 +46,6 @@ module API
params
:issue_params
do
params
:issue_params
do
use
:issue_params_ce
use
:issue_params_ce
use
:issue_params_ee
use
:issue_params_ee
=======
params
:issue_params
do
use
:issue_params_ce
>>>>>>>
ce
/
master
end
end
end
end
...
...
lib/api/merge_requests.rb
View file @
b3f8a978
...
@@ -41,7 +41,6 @@ module API
...
@@ -41,7 +41,6 @@ module API
optional
:remove_source_branch
,
type:
Boolean
,
desc:
'Remove source branch when merging'
optional
:remove_source_branch
,
type:
Boolean
,
desc:
'Remove source branch when merging'
end
end
<<<<<<<
HEAD
params
:optional_params_ee
do
params
:optional_params_ee
do
optional
:approvals_before_merge
,
type:
Integer
,
desc:
'Number of approvals required before this can be merged'
optional
:approvals_before_merge
,
type:
Integer
,
desc:
'Number of approvals required before this can be merged'
optional
:squash
,
type:
Boolean
,
desc:
'Squash commits when merging'
optional
:squash
,
type:
Boolean
,
desc:
'Squash commits when merging'
...
@@ -50,10 +49,6 @@ module API
...
@@ -50,10 +49,6 @@ module API
params
:optional_params
do
params
:optional_params
do
use
:optional_params_ce
use
:optional_params_ce
use
:optional_params_ee
use
:optional_params_ee
=======
params
:optional_params
do
use
:optional_params_ce
>>>>>>>
ce
/
master
end
end
end
end
...
@@ -176,7 +171,6 @@ module API
...
@@ -176,7 +171,6 @@ module API
optional
:state_event
,
type:
String
,
values:
%w[close reopen]
,
optional
:state_event
,
type:
String
,
values:
%w[close reopen]
,
desc:
'Status of the merge request'
desc:
'Status of the merge request'
<<<<<<<
HEAD
# EE
# EE
at_least_one_of_ee
=
[
at_least_one_of_ee
=
[
:squash
:squash
...
@@ -184,10 +178,6 @@ module API
...
@@ -184,10 +178,6 @@ module API
use
:optional_params
use
:optional_params
at_least_one_of
(
*
(
at_least_one_of_ce
+
at_least_one_of_ee
))
at_least_one_of
(
*
(
at_least_one_of_ce
+
at_least_one_of_ee
))
=======
use
:optional_params
at_least_one_of
(
*
at_least_one_of_ce
)
>>>>>>>
ce
/
master
end
end
put
':id/merge_requests/:merge_request_iid'
do
put
':id/merge_requests/:merge_request_iid'
do
merge_request
=
find_merge_request_with_access
(
params
.
delete
(
:merge_request_iid
),
:update_merge_request
)
merge_request
=
find_merge_request_with_access
(
params
.
delete
(
:merge_request_iid
),
:update_merge_request
)
...
...
lib/api/projects.rb
View file @
b3f8a978
...
@@ -23,7 +23,6 @@ module API
...
@@ -23,7 +23,6 @@ module API
optional
:only_allow_merge_if_all_discussions_are_resolved
,
type:
Boolean
,
desc:
'Only allow to merge if all discussions are resolved'
optional
:only_allow_merge_if_all_discussions_are_resolved
,
type:
Boolean
,
desc:
'Only allow to merge if all discussions are resolved'
end
end
<<<<<<<
HEAD
params
:optional_params_ee
do
params
:optional_params_ee
do
optional
:repository_storage
,
type:
String
,
desc:
'Which storage shard the repository is on. Available only to admins'
optional
:repository_storage
,
type:
String
,
desc:
'Which storage shard the repository is on. Available only to admins'
optional
:approvals_before_merge
,
type:
Integer
,
desc:
'How many approvers should approve merge request by default'
optional
:approvals_before_merge
,
type:
Integer
,
desc:
'How many approvers should approve merge request by default'
...
@@ -32,10 +31,6 @@ module API
...
@@ -32,10 +31,6 @@ module API
params
:optional_params
do
params
:optional_params
do
use
:optional_params_ce
use
:optional_params_ce
use
:optional_params_ee
use
:optional_params_ee
=======
params
:optional_params
do
use
:optional_params_ce
>>>>>>>
ce
/
master
end
end
end
end
...
@@ -238,7 +233,6 @@ module API
...
@@ -238,7 +233,6 @@ module API
optional
:default_branch
,
type:
String
,
desc:
'The default branch of the project'
optional
:default_branch
,
type:
String
,
desc:
'The default branch of the project'
optional
:path
,
type:
String
,
desc:
'The path of the repository'
optional
:path
,
type:
String
,
desc:
'The path of the repository'
<<<<<<<
HEAD
# EE
# EE
at_least_one_of_ee
=
[
at_least_one_of_ee
=
[
:approvals_before_merge
,
:approvals_before_merge
,
...
@@ -247,10 +241,6 @@ module API
...
@@ -247,10 +241,6 @@ module API
use
:optional_params
use
:optional_params
at_least_one_of
(
*
(
at_least_one_of_ce
+
at_least_one_of_ee
))
at_least_one_of
(
*
(
at_least_one_of_ce
+
at_least_one_of_ee
))
=======
use
:optional_params
at_least_one_of
(
*
at_least_one_of_ce
)
>>>>>>>
ce
/
master
end
end
put
':id'
do
put
':id'
do
authorize_admin_project
authorize_admin_project
...
...
lib/api/settings.rb
View file @
b3f8a978
...
@@ -160,7 +160,6 @@ module API
...
@@ -160,7 +160,6 @@ module API
end
end
optional
:terminal_max_session_time
,
type:
Integer
,
desc:
'Maximum time for web terminal websocket connection (in seconds). Set to 0 for unlimited time.'
optional
:terminal_max_session_time
,
type:
Integer
,
desc:
'Maximum time for web terminal websocket connection (in seconds). Set to 0 for unlimited time.'
optional
:polling_interval_multiplier
,
type:
BigDecimal
,
desc:
'Interval multiplier used by endpoints that perform polling. Set to 0 to disable polling.'
optional
:polling_interval_multiplier
,
type:
BigDecimal
,
desc:
'Interval multiplier used by endpoints that perform polling. Set to 0 to disable polling.'
<<<<<<<
HEAD
at_least_one_of
:default_branch_protection
,
:default_project_visibility
,
:default_snippet_visibility
,
at_least_one_of
:default_branch_protection
,
:default_project_visibility
,
:default_snippet_visibility
,
:default_group_visibility
,
:restricted_visibility_levels
,
:import_sources
,
:default_group_visibility
,
:restricted_visibility_levels
,
:import_sources
,
:enabled_git_access_protocol
,
:gravatar_enabled
,
:default_projects_limit
,
:enabled_git_access_protocol
,
:gravatar_enabled
,
:default_projects_limit
,
...
@@ -203,10 +202,6 @@ module API
...
@@ -203,10 +202,6 @@ module API
optional
:repository_size_limit
,
type:
Integer
,
desc:
'Size limit per repository (MB)'
optional
:repository_size_limit
,
type:
Integer
,
desc:
'Size limit per repository (MB)'
at_least_one_of
(
*
(
at_least_one_of_ce
+
at_least_one_of_ee
))
at_least_one_of
(
*
(
at_least_one_of_ce
+
at_least_one_of_ee
))
=======
at_least_one_of
(
*
at_least_one_of_ce
)
>>>>>>>
ce
/
master
end
end
put
"application/settings"
do
put
"application/settings"
do
attrs
=
declared_params
(
include_missing:
false
)
attrs
=
declared_params
(
include_missing:
false
)
...
...
lib/api/users.rb
View file @
b3f8a978
...
@@ -44,12 +44,9 @@ module API
...
@@ -44,12 +44,9 @@ module API
optional
:external
,
type:
Boolean
,
default:
false
,
desc:
'Filters only external users'
optional
:external
,
type:
Boolean
,
default:
false
,
desc:
'Filters only external users'
optional
:blocked
,
type:
Boolean
,
default:
false
,
desc:
'Filters only blocked users'
optional
:blocked
,
type:
Boolean
,
default:
false
,
desc:
'Filters only blocked users'
<<<<<<<
HEAD
# EE
# EE
optional
:skip_ldap
,
type:
Boolean
,
default:
false
,
desc:
'Skip LDAP users'
optional
:skip_ldap
,
type:
Boolean
,
default:
false
,
desc:
'Skip LDAP users'
=======
>>>>>>>
ce
/
master
use
:pagination
use
:pagination
end
end
get
do
get
do
...
...
lib/gitlab/database.rb
View file @
b3f8a978
...
@@ -57,17 +57,12 @@ module Gitlab
...
@@ -57,17 +57,12 @@ module Gitlab
postgresql?
?
"RANDOM()"
:
"RAND()"
postgresql?
?
"RANDOM()"
:
"RAND()"
end
end
<<<<<<<
HEAD
def
self
.
minute_interval
(
value
)
def
self
.
minute_interval
(
value
)
postgresql?
?
"
#{
value
}
* '1 minute'::interval"
:
"INTERVAL
#{
value
}
MINUTE"
postgresql?
?
"
#{
value
}
* '1 minute'::interval"
:
"INTERVAL
#{
value
}
MINUTE"
end
end
def
true_value
if
Gitlab
::
Database
.
postgresql?
=======
def
self
.
true_value
def
self
.
true_value
if
postgresql?
if
postgresql?
>>>>>>>
ce
/
master
"'t'"
"'t'"
else
else
1
1
...
...
scripts/prepare_build.sh
View file @
b3f8a978
...
@@ -20,32 +20,12 @@ sed -i 's/username:.*/username: root/g' config/database.yml
...
@@ -20,32 +20,12 @@ sed -i 's/username:.*/username: root/g' config/database.yml
sed
-i
's/password:.*/password:/g'
config/database.yml
sed
-i
's/password:.*/password:/g'
config/database.yml
sed
-i
's/# socket:.*/host: mysql/g'
config/database.yml
sed
-i
's/# socket:.*/host: mysql/g'
config/database.yml
<<<<<<
< HEAD
cp
config/database_geo.yml.mysql config/database_geo.yml
cp
config/database_geo.yml.mysql config/database_geo.yml
sed
-i
's/username:.*/username: root/g'
config/database_geo.yml
sed
-i
's/username:.*/username: root/g'
config/database_geo.yml
sed
-i
's/password:.*/password:/g'
config/database_geo.yml
sed
-i
's/password:.*/password:/g'
config/database_geo.yml
sed
-i
's/# socket:.*/host: mysql/g'
config/database_geo.yml
sed
-i
's/# socket:.*/host: mysql/g'
config/database_geo.yml
cp
config/resque.yml.example config/resque.yml
sed
-i
's/localhost/redis/g'
config/resque.yml
export
FLAGS
=
"--path vendor --retry 3 --quiet"
else
rnd
=
$(
awk
'BEGIN { srand() ; printf("%d\n",rand()*5) }'
)
export
PATH
=
"
$HOME
/bin:/usr/local/bin:/usr/bin:/bin"
cp
config/database.yml.mysql config/database.yml
sed
"s/username
\:
.*
$/
username
\:
runner/"
-i
config/database.yml
sed
"s/password
\:
.*
$/
password
\:
'password'/"
-i
config/database.yml
sed
"s/gitlabhq_test/gitlabhq_test_
$rnd
/"
-i
config/database.yml
cp
config/database_geo.yml.mysql config/database_geo.yml
sed
"s/username
\:
.*
$/
username
\:
runner/"
-i
config/database_geo.yml
sed
"s/password
\:
.*
$/
password
\:
'password'/"
-i
config/database_geo.yml
sed
"s/gitlabhq_test/gitlabhq_test_
$rnd
/"
-i
config/database_geo.yml
fi
=======
cp
config/resque.yml.example config/resque.yml
cp
config/resque.yml.example config/resque.yml
sed
-i
's/localhost/redis/g'
config/resque.yml
sed
-i
's/localhost/redis/g'
config/resque.yml
export
FLAGS
=
"--path vendor --retry 3 --quiet"
export
FLAGS
=
"--path vendor --retry 3 --quiet"
>>>>>>>
ce/master
spec/models/repository_spec.rb
View file @
b3f8a978
...
@@ -1972,7 +1972,6 @@ describe Repository, models: true do
...
@@ -1972,7 +1972,6 @@ describe Repository, models: true do
end
end
end
end
<<<<<<<
HEAD
describe
'#after_sync'
do
describe
'#after_sync'
do
it
'expires repository cache'
do
it
'expires repository cache'
do
expect
(
repository
).
to
receive
(
:expire_all_method_caches
)
expect
(
repository
).
to
receive
(
:expire_all_method_caches
)
...
@@ -1988,8 +1987,6 @@ describe Repository, models: true do
...
@@ -1988,8 +1987,6 @@ describe Repository, models: true do
rugged
.
references
.
create
(
"refs/remotes/
#{
remote_name
}
/
#{
branch_name
}
"
,
target
.
id
)
rugged
.
references
.
create
(
"refs/remotes/
#{
remote_name
}
/
#{
branch_name
}
"
,
target
.
id
)
end
end
=======
>>>>>>>
ce
/
master
# TODO: Uncomment when feature is reenabled
# TODO: Uncomment when feature is reenabled
# describe '#is_ancestor?' do
# describe '#is_ancestor?' do
# context 'Gitaly is_ancestor feature enabled' do
# context 'Gitaly is_ancestor feature enabled' do
...
...
spec/spec_helper.rb
View file @
b3f8a978
...
@@ -60,14 +60,11 @@ RSpec.configure do |config|
...
@@ -60,14 +60,11 @@ RSpec.configure do |config|
TestEnv
.
init
TestEnv
.
init
end
end
<<<<<<<
HEAD
config
.
before
(
:all
)
do
config
.
before
(
:all
)
do
License
.
destroy_all
License
.
destroy_all
TestLicense
.
init
TestLicense
.
init
end
end
=======
>>>>>>>
ce
/
master
config
.
after
(
:suite
)
do
config
.
after
(
:suite
)
do
TestEnv
.
cleanup
TestEnv
.
cleanup
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