Skip to content

Commit 3479d6b

Browse files
authored
Merge branch 'master' into webkit-calendar-icon
2 parents 9d6a864 + 34b2162 commit 3479d6b

File tree

7 files changed

+35
-17
lines changed

7 files changed

+35
-17
lines changed

options/locale/locale_de-DE.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,6 +2178,8 @@ dashboard.total_gc_time=Gesamte GC-Pause
21782178
dashboard.total_gc_pause=Gesamte GC-Pause
21792179
dashboard.last_gc_pause=Letzte GC-Pause
21802180
dashboard.gc_times=Anzahl GC
2181+
dashboard.delete_old_actions=Alle alten Aktionen aus der Datenbank löschen
2182+
dashboard.delete_old_actions.started=Löschen aller alten Aktionen in der Datenbank gestartet.
21812183

21822184
users.user_manage_panel=Benutzerkontenverwaltung
21832185
users.new_account=Benutzerkonto erstellen

options/locale/locale_en-US.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,6 +1887,7 @@ diff.file_image_width = Width
18871887
diff.file_image_height = Height
18881888
diff.file_byte_size = Size
18891889
diff.file_suppressed = File diff suppressed because it is too large
1890+
diff.file_suppressed_line_too_long = File diff suppressed because one or more lines are too long
18901891
diff.too_many_files = Some files were not shown because too many files changed in this diff
18911892
diff.comment.placeholder = Leave a comment
18921893
diff.comment.markdown_info = Styling with markdown is supported.

options/locale/locale_ja-JP.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2178,6 +2178,8 @@ dashboard.total_gc_time=GC停止時間の合計
21782178
dashboard.total_gc_pause=GC停止時間の合計
21792179
dashboard.last_gc_pause=前回のGC停止時間
21802180
dashboard.gc_times=GC実行回数
2181+
dashboard.delete_old_actions=データベースから古い操作履歴をすべて削除
2182+
dashboard.delete_old_actions.started=データベースからの古い操作履歴の削除を開始しました。
21812183

21822184
users.user_manage_panel=ユーザーアカウント管理
21832185
users.new_account=ユーザーアカウントを作成

options/locale/locale_tr-TR.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2177,6 +2177,8 @@ dashboard.total_gc_time=Toplam GC Durması
21772177
dashboard.total_gc_pause=Toplam GC Durması
21782178
dashboard.last_gc_pause=Son GC Durması
21792179
dashboard.gc_times=GC Zamanları
2180+
dashboard.delete_old_actions=Veritabanından tüm eski eylemleri sil
2181+
dashboard.delete_old_actions.started=Veritabanından başlatılan tüm eski eylemleri silin.
21802182
21812183
users.user_manage_panel=Kullanıcı Hesap Yönetimi
21822184
users.new_account=Yeni Kullanıcı Hesabı

services/gitdiff/gitdiff.go

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -574,21 +574,22 @@ func (diffSection *DiffSection) GetComputedInlineDiffFor(diffLine *DiffLine) tem
574574

575575
// DiffFile represents a file diff.
576576
type DiffFile struct {
577-
Name string
578-
OldName string
579-
Index int
580-
Addition, Deletion int
581-
Type DiffFileType
582-
IsCreated bool
583-
IsDeleted bool
584-
IsBin bool
585-
IsLFSFile bool
586-
IsRenamed bool
587-
IsAmbiguous bool
588-
IsSubmodule bool
589-
Sections []*DiffSection
590-
IsIncomplete bool
591-
IsProtected bool
577+
Name string
578+
OldName string
579+
Index int
580+
Addition, Deletion int
581+
Type DiffFileType
582+
IsCreated bool
583+
IsDeleted bool
584+
IsBin bool
585+
IsLFSFile bool
586+
IsRenamed bool
587+
IsAmbiguous bool
588+
IsSubmodule bool
589+
Sections []*DiffSection
590+
IsIncomplete bool
591+
IsIncompleteLineTooLong bool
592+
IsProtected bool
592593
}
593594

594595
// GetType returns type of diff file.
@@ -935,6 +936,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio
935936
for {
936937
for isFragment {
937938
curFile.IsIncomplete = true
939+
curFile.IsIncompleteLineTooLong = true
938940
_, isFragment, err = input.ReadLine()
939941
if err != nil {
940942
// Now by the definition of ReadLine this cannot be io.EOF
@@ -1062,6 +1064,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio
10621064
line := string(lineBytes)
10631065
if isFragment {
10641066
curFile.IsIncomplete = true
1067+
curFile.IsIncompleteLineTooLong = true
10651068
for isFragment {
10661069
lineBytes, isFragment, err = input.ReadLine()
10671070
if err != nil {
@@ -1073,6 +1076,7 @@ func parseHunks(curFile *DiffFile, maxLines, maxLineCharacters int, input *bufio
10731076
}
10741077
if len(line) > maxLineCharacters {
10751078
curFile.IsIncomplete = true
1079+
curFile.IsIncompleteLineTooLong = true
10761080
line = line[:maxLineCharacters]
10771081
}
10781082
curSection.Lines[len(curSection.Lines)-1].Content = line

services/pull/pull.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,8 @@ func GetIssuesLastCommitStatus(issues models.IssueList) (map[int64]*models.Commi
677677

678678
status, err := getLastCommitStatus(gitRepo, issue.PullRequest)
679679
if err != nil {
680-
return nil, err
680+
log.Error("getLastCommitStatus: cant get last commit of pull [%d]: %v", issue.PullRequest.ID, err)
681+
continue
681682
}
682683
res[issue.PullRequest.ID] = status
683684
}

templates/repo/diff/box.tmpl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@
5353
</div>
5454
<span class="file mono">{{$file.Name}}</span>
5555
<div class="diff-file-header-actions df ac">
56-
<div class="text grey">{{$.i18n.Tr "repo.diff.file_suppressed"}}</div>
56+
<div class="text grey">
57+
{{if $file.IsIncompleteLineTooLong}}
58+
{{$.i18n.Tr "repo.diff.file_suppressed_line_too_long"}}
59+
{{else}}
60+
{{$.i18n.Tr "repo.diff.file_suppressed"}}
61+
{{end}}
62+
</div>
5763
{{if $file.IsProtected}}
5864
<span class="ui basic label">{{$.i18n.Tr "repo.diff.protected"}}</span>
5965
{{end}}

0 commit comments

Comments
 (0)