Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
LinuxSuRen
jenkins
提交
25acdd88
J
jenkins
项目概览
LinuxSuRen
/
jenkins
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
jenkins
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
25acdd88
编写于
6月 28, 2014
作者:
D
Daniel Beck
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[FIXED JENKINS-18902] Exclude lower bound of range from changes
上级
c826a014
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
39 addition
and
7 deletion
+39
-7
core/src/main/java/hudson/Functions.java
core/src/main/java/hudson/Functions.java
+14
-0
core/src/main/resources/hudson/model/AbstractProject/changes.jelly
...main/resources/hudson/model/AbstractProject/changes.jelly
+10
-3
core/src/main/resources/hudson/model/AbstractProject/changes.properties
...resources/hudson/model/AbstractProject/changes.properties
+3
-2
core/src/main/resources/hudson/model/AbstractProject/changes_da.properties
...ources/hudson/model/AbstractProject/changes_da.properties
+1
-0
core/src/main/resources/hudson/model/AbstractProject/changes_de.properties
...ources/hudson/model/AbstractProject/changes_de.properties
+2
-1
core/src/main/resources/hudson/model/AbstractProject/changes_es.properties
...ources/hudson/model/AbstractProject/changes_es.properties
+1
-0
core/src/main/resources/hudson/model/AbstractProject/changes_fr.properties
...ources/hudson/model/AbstractProject/changes_fr.properties
+1
-0
core/src/main/resources/hudson/model/AbstractProject/changes_ja.properties
...ources/hudson/model/AbstractProject/changes_ja.properties
+2
-1
core/src/main/resources/hudson/model/AbstractProject/changes_lv.properties
...ources/hudson/model/AbstractProject/changes_lv.properties
+1
-0
core/src/main/resources/hudson/model/AbstractProject/changes_pt_BR.properties
...ces/hudson/model/AbstractProject/changes_pt_BR.properties
+1
-0
core/src/main/resources/hudson/model/AbstractProject/changes_ru.properties
...ources/hudson/model/AbstractProject/changes_ru.properties
+1
-0
core/src/main/resources/hudson/model/AbstractProject/changes_tr.properties
...ources/hudson/model/AbstractProject/changes_tr.properties
+1
-0
core/src/main/resources/hudson/model/AbstractProject/changes_zh_TW.properties
...ces/hudson/model/AbstractProject/changes_zh_TW.properties
+1
-0
未找到文件。
core/src/main/java/hudson/Functions.java
浏览文件 @
25acdd88
...
...
@@ -540,6 +540,20 @@ public class Functions {
return
map
.
subMap
(
Integer
.
parseInt
(
to
),
Integer
.
parseInt
(
from
)-
1
);
}
/**
* Creates a sub map by using the given range (upper end inclusive).
*/
@Restricted
(
NoExternalUse
.
class
)
public
static
<
V
>
SortedMap
<
Integer
,
V
>
filterExcludingFrom
(
SortedMap
<
Integer
,
V
>
map
,
String
from
,
String
to
)
{
if
(
from
==
null
&&
to
==
null
)
return
map
;
if
(
to
==
null
)
return
map
.
headMap
(
Integer
.
parseInt
(
from
));
if
(
from
==
null
)
return
map
.
tailMap
(
Integer
.
parseInt
(
to
));
return
map
.
subMap
(
Integer
.
parseInt
(
to
),
Integer
.
parseInt
(
from
));
}
private
static
final
SimpleFormatter
formatter
=
new
SimpleFormatter
();
/**
...
...
core/src/main/resources/hudson/model/AbstractProject/changes.jelly
浏览文件 @
25acdd88
...
...
@@ -36,10 +36,17 @@ THE SOFTWARE.
<h1>
${%Changes}
<j:if test="${from!=null}">${%from.label(from)}</j:if>
<j:if test="${to!=null}"> ${%to.label(to)}</j:if>
<j:choose>
<j:when test="${from!=null and to!=null}">
${%range.label(from, to)}
</j:when>
<j:otherwise>
<j:if test="${from!=null}">${%from.label(from)}</j:if>
<j:if test="${to!=null}">${%to.label(to)}</j:if>
</j:otherwise>
</j:choose>
</h1>
<j:set var="builds" value="${h.filter(it.buildsAsMap,from,to).values()}" />
<j:set var="builds" value="${h.filter
ExcludingFrom
(it.buildsAsMap,from,to).values()}" />
<st:include it="${it.scm}" page="project-changes.jelly" />
</l:main-panel>
</l:layout>
...
...
core/src/main/resources/hudson/model/AbstractProject/changes.properties
浏览文件 @
25acdd88
...
...
@@ -21,5 +21,6 @@
# THE SOFTWARE.
changes.title
=
{0} Changes
from.label
=
from #{0}
to.label
=
to #{0}
\ No newline at end of file
from.label
=
since #{0}
to.label
=
up to #{0}
range.label
=
between #{0} and #{1}
core/src/main/resources/hudson/model/AbstractProject/changes_da.properties
浏览文件 @
25acdd88
...
...
@@ -23,4 +23,5 @@
Changes
=
\u
00c6ndringer
from.label
=
# fra #{0}
to.label=# til #{0}
range.label
=
fra #{0} til #{1}
changes.title
=
# {0} \u00c6ndringer
core/src/main/resources/hudson/model/AbstractProject/changes_de.properties
浏览文件 @
25acdd88
...
...
@@ -22,5 +22,6 @@
Changes
=
Änderungen
changes.title
=
Änderungen in {0}
from.label
=
von
#{0}
from.label
=
seit
#{0}
to.label
=
bis #{0}
range.label
=
zwischen #{0} und #{1}
core/src/main/resources/hudson/model/AbstractProject/changes_es.properties
浏览文件 @
25acdd88
...
...
@@ -23,4 +23,5 @@
changes.title
=
{0} Cambios
from.label
=
desde #{0}
to.label
=
hasta #{0}
range.label
=
desde #{0} hasta #{1}
Changes
=
Cambios
core/src/main/resources/hudson/model/AbstractProject/changes_fr.properties
浏览文件 @
25acdd88
...
...
@@ -24,3 +24,4 @@ changes.title=Changements dans {0}
Changes
=
Modifications
from.label
=
de #{0}
to.label
=
à #{0}
range.label
=
de #{0} à #{1}
core/src/main/resources/hudson/model/AbstractProject/changes_ja.properties
浏览文件 @
25acdd88
...
...
@@ -23,4 +23,5 @@
changes.title
=
{0}
\u
306e
\u5909\u
66f4
Changes
=
\u5909\u
66f4
\u
5c65
\u
6b74
from.label
=
#{0} \u304b\u3089
to.label=#{0}
\u
307e
\u3067
\ No newline at end of file
to.label=#{0}
\u
307e
\u3067
range.label
=
#{0}
\u
304b
\u3089
#{1}
\u
307e
\u3067
\ No newline at end of file
core/src/main/resources/hudson/model/AbstractProject/changes_lv.properties
浏览文件 @
25acdd88
...
...
@@ -23,3 +23,4 @@
Changes
=
Izmai
\u0146
as
from.label
=
no #{0}
to.label
=
l
\u
012Bdz #{0}
range.label
=
no #{0} l
\u
012Bdz #{1}
\ No newline at end of file
core/src/main/resources/hudson/model/AbstractProject/changes_pt_BR.properties
浏览文件 @
25acdd88
...
...
@@ -25,5 +25,6 @@ Changes=Mudan\u00e7as
from.label
=
de #{0}
# to #{0}
to.label
=
para #{0}
range.label
=
de #{0} para #{1}
# {0} Changes
changes.title
=
{0} Mudan
\u
00e7as
core/src/main/resources/hudson/model/AbstractProject/changes_ru.properties
浏览文件 @
25acdd88
...
...
@@ -23,3 +23,4 @@
Changes
=
\u0418\u0437\u
043c
\u0435\u
043d
\u0435\u
043d
\u0438\u
044f
from.label
=
\u0441
#{0}
to.label=
\u0434\u
043E #{0}
range.label
=
\u0441
#{0}
\u0434\u
043E #{1}
\ No newline at end of file
core/src/main/resources/hudson/model/AbstractProject/changes_tr.properties
浏览文件 @
25acdd88
...
...
@@ -24,3 +24,4 @@ Changes=De\u011fi\u015fiklikler
changes.title
=
{0} degi
\u
015fiklik
from.label
=
#{0}'dan
to.label=#{0}'a
range.label
=
#{0}'dan #{1}'a
\ No newline at end of file
core/src/main/resources/hudson/model/AbstractProject/changes_zh_TW.properties
浏览文件 @
25acdd88
...
...
@@ -25,3 +25,4 @@ changes.title={0} \u8b8a\u66f4
Changes
=
\u
8b8a
\u
66f4
from.label
=
\u
5f9e #{0}
to.label
=
\u5230
#{0}
range.label=
\u
5f9e #{0}
\u5230
#{1}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录