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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
88033500
Commit
88033500
authored
Jul 17, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CHANGELOG updated. Fixed MR bug. Logger improved
parent
494cd02b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
5 deletions
+23
-5
CHANGELOG
CHANGELOG
+4
-0
app/assets/stylesheets/gitlab_bootstrap.scss
app/assets/stylesheets/gitlab_bootstrap.scss
+4
-0
app/models/merge_request.rb
app/models/merge_request.rb
+1
-1
lib/gitlab/logger.rb
lib/gitlab/logger.rb
+14
-4
No files found.
CHANGELOG
View file @
88033500
v 2.7.0
v 2.7.0
- Issue Labels
- Issue Labels
- Inline diff
- Git HTTP
- API
- UI improved
v 2.6.0
v 2.6.0
- UI polished
- UI polished
...
...
app/assets/stylesheets/gitlab_bootstrap.scss
View file @
88033500
...
@@ -317,6 +317,10 @@ table.no-borders {
...
@@ -317,6 +317,10 @@ table.no-borders {
&
.closed
{
&
.closed
{
background-color
:
#B94A48
;
background-color
:
#B94A48
;
}
}
&
.merged
{
background-color
:
#2A2
;
}
}
}
img
.avatar
{
img
.avatar
{
...
...
app/models/merge_request.rb
View file @
88033500
...
@@ -128,7 +128,7 @@ class MergeRequest < ActiveRecord::Base
...
@@ -128,7 +128,7 @@ class MergeRequest < ActiveRecord::Base
def
unmerged_diffs
def
unmerged_diffs
commits
=
project
.
repo
.
commits_between
(
target_branch
,
source_branch
).
map
{
|
c
|
Commit
.
new
(
c
)}
commits
=
project
.
repo
.
commits_between
(
target_branch
,
source_branch
).
map
{
|
c
|
Commit
.
new
(
c
)}
diffs
=
project
.
repo
.
diff
(
commits
.
first
.
prev_commit
.
id
,
commits
.
last
.
id
)
diffs
=
project
.
repo
.
diff
(
commits
.
first
.
prev_commit
.
id
,
commits
.
last
.
id
)
rescue
[]
end
end
def
last_commit
def
last_commit
...
...
lib/gitlab/logger.rb
View file @
88033500
module
Gitlab
module
Gitlab
class
Logger
class
Logger
<
::
Logger
def
self
.
error
(
message
)
def
self
.
error
(
message
)
@@logger
||=
::
Logger
.
new
(
File
.
join
(
Rails
.
root
,
"log/githost.log"
))
build
.
error
(
message
)
message
=
Time
.
now
.
to_s
(
:long
)
+
" -> "
+
message
end
@@logger
.
error
(
message
)
def
self
.
info
(
message
)
build
.
info
(
message
)
end
end
def
self
.
read_latest
def
self
.
read_latest
path
=
Rails
.
root
.
join
(
"log/githost.log"
)
path
=
Rails
.
root
.
join
(
"log/githost.log"
)
logs
=
File
.
read
(
path
).
split
(
"
\n
"
)
logs
=
File
.
read
(
path
).
split
(
"
\n
"
)
end
end
def
self
.
build
new
(
File
.
join
(
Rails
.
root
,
"log/githost.log"
))
end
def
format_message
(
severity
,
timestamp
,
progname
,
msg
)
"
#{
timestamp
.
to_s
(
:long
)
}
->
#{
severity
}
->
#{
msg
}
\n
"
end
end
end
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