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
128f2845
Commit
128f2845
authored
Jul 15, 2013
by
Izaak Alpert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rebased on 6.0
-Had to do some minor test clean up as well Change-Id: I8f378f1b5fe676d73b8691e870c11ca6def90cbf
parent
0ef055a4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
9 deletions
+8
-9
show.html.haml
app/views/projects/compare/show.html.haml
+1
-1
_diffs.html.haml
app/views/projects/merge_requests/show/_diffs.html.haml
+1
-1
update_branches.js.haml
app/views/projects/merge_requests/update_branches.js.haml
+0
-0
project_forked_merge_requests.rb
features/steps/project/project_forked_merge_requests.rb
+2
-1
factories.rb
spec/factories.rb
+0
-4
notes_on_merge_requests_spec.rb
spec/features/notes_on_merge_requests_spec.rb
+1
-1
test_env.rb
spec/support/test_env.rb
+3
-1
No files found.
app/views/projects/compare/show.html.haml
View file @
128f2845
...
...
@@ -9,7 +9,7 @@
.alert.alert-block
%p
%strong
Warning! This comparison include 100+ commits.
%p
To prevent performance issue we dont show diff information.
%p
To prevent performance issue
s
we dont show diff information.
-
if
@commits
.
present?
%div
.ui-box
...
...
app/views/projects/merge_requests/show/_diffs.html.haml
View file @
128f2845
-
if
@merge_request
.
valid_diffs?
=
render
"projects/commits/diffs"
,
diffs:
@diffs
,
project:
@merge_request
.
source_project
=
render
"projects/commits/diffs"
,
diffs:
@
merge_request
.
diffs
,
project:
@merge_request
.
source_project
-
elsif
@merge_request
.
broken_diffs?
%h4
.nothing_here_message
Can't load diff.
...
...
app/views/merge_requests/update_branches.js.haml
→
app/views/
projects/
merge_requests/update_branches.js.haml
View file @
128f2845
File moved
features/steps/project/project_forked_merge_requests.rb
View file @
128f2845
...
...
@@ -14,9 +14,10 @@ class ProjectForkedMergeRequests < Spinach::FeatureSteps
@forking_user
=
@user
forked_project_link
=
build
(
:forked_project_link
)
@forked_project
=
Project
.
find_by_name
"Forked Shop"
@forked_project
||=
create
(
:source_project_with_code
,
name:
"Forked Shop"
,
forked_project_link:
forked_project_link
,
creator_id:
@forking_user
.
id
)
@forked_project
||=
create
(
:source_project_with_code
,
name:
"Forked Shop"
,
forked_project_link:
forked_project_link
,
creator_id:
@forking_user
.
id
,
namespace:
@forking_user
.
namespace
)
forked_project_link
.
forked_from_project
=
@project
forked_project_link
.
forked_to_project
=
@forked_project
@forked_project
.
team
<<
[
@forking_user
,
:master
]
forked_project_link
.
save!
end
...
...
spec/factories.rb
View file @
128f2845
<<<<<<<
HEAD
include
ActionDispatch
::
TestProcess
=======
require
Rails
.
root
.
join
(
'spec'
,
'support'
,
'test_env.rb'
)
>>>>>>>
Merge
Request
on
forked
projects
FactoryGirl
.
define
do
sequence
:sentence
,
aliases:
[
:title
,
:content
]
do
...
...
spec/features/notes_on_merge_requests_spec.rb
View file @
128f2845
...
...
@@ -3,7 +3,7 @@ require 'spec_helper'
describe
"On a merge request"
,
js:
true
do
let!
(
:project
)
{
create
(
:project_with_code
)
}
let!
(
:merge_request
)
{
create
(
:merge_request
,
source_project:
project
,
target_project:
project
)
}
let!
(
:note
)
{
create
(
:note_on_merge_request_with_attachment
,
source_project:
project
,
target_
project:
project
)
}
let!
(
:note
)
{
create
(
:note_on_merge_request_with_attachment
,
project:
project
)
}
before
do
login_as
:user
...
...
spec/support/test_env.rb
View file @
128f2845
...
...
@@ -159,7 +159,9 @@ module TestEnv
# Create a testing satellite, and clone the source repo into it
def
create_satellite
(
source_repo
,
namespace
,
satellite_name
)
satellite_repo
=
satellite
(
namespace
,
satellite_name
)
# Symlink tmp/satellite/gitlabhq to tmp/test-git-base-path/satellite/gitlabhq
# Symlink tmp/satellite/gitlabhq to tmp/test-git-base-path/satellite/gitlabhq, create the directory if it doesn't exist already
satellite_dir
=
File
.
dirname
(
satellite_repo
)
FileUtils
.
mkdir_p
satellite_dir
unless
File
.
exists?
(
satellite_dir
)
system
(
"ln -s -f
#{
seed_satellite_path
()
}
#{
satellite_repo
}
"
)
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