Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
7db225e4
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7db225e4
编写于
3月 08, 2018
作者:
J
Jan Provaznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Revert "Cleanup after adding MR diff's commit_count"
This reverts commit
0b7d1085
.
上级
0f26f968
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
6 addition
and
17 deletion
+6
-17
app/models/merge_request_diff.rb
app/models/merge_request_diff.rb
+4
-0
db/migrate/20180304204842_clean_commits_count_migration.rb
db/migrate/20180304204842_clean_commits_count_migration.rb
+0
-14
doc/user/project/settings/import_export.md
doc/user/project/settings/import_export.md
+1
-2
lib/gitlab/import_export.rb
lib/gitlab/import_export.rb
+1
-1
spec/features/projects/import_export/test_project_export.tar.gz
...eatures/projects/import_export/test_project_export.tar.gz
+0
-0
vendor/project_templates/express.tar.gz
vendor/project_templates/express.tar.gz
+0
-0
vendor/project_templates/rails.tar.gz
vendor/project_templates/rails.tar.gz
+0
-0
vendor/project_templates/spring.tar.gz
vendor/project_templates/spring.tar.gz
+0
-0
未找到文件。
app/models/merge_request_diff.rb
浏览文件 @
7db225e4
...
...
@@ -197,6 +197,10 @@ class MergeRequestDiff < ActiveRecord::Base
CompareService
.
new
(
project
,
head_commit_sha
).
execute
(
project
,
sha
,
straight:
true
)
end
def
commits_count
super
||
merge_request_diff_commits
.
size
end
private
def
create_merge_request_diff_files
(
diffs
)
...
...
db/migrate/20180304204842_clean_commits_count_migration.rb
已删除
100644 → 0
浏览文件 @
0f26f968
class
CleanCommitsCountMigration
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
disable_ddl_transaction!
def
up
Gitlab
::
BackgroundMigration
.
steal
(
'AddMergeRequestDiffCommitsCount'
)
end
def
down
end
end
doc/user/project/settings/import_export.md
浏览文件 @
7db225e4
...
...
@@ -31,8 +31,7 @@ with all their related data and be moved into a new GitLab instance.
| GitLab version | Import/Export version |
| ---------------- | --------------------- |
| 10.6 to current | 0.2.3 |
| 10.4 | 0.2.2 |
| 10.4 to current | 0.2.2 |
| 10.3 | 0.2.1 |
| 10.0 | 0.2.0 |
| 9.4.0 | 0.1.8 |
...
...
lib/gitlab/import_export.rb
浏览文件 @
7db225e4
...
...
@@ -3,7 +3,7 @@ module Gitlab
extend
self
# For every version update, the version history in import_export.md has to be kept up to date.
VERSION
=
'0.2.
3
'
.
freeze
VERSION
=
'0.2.
2
'
.
freeze
FILENAME_LIMIT
=
50
def
export_path
(
relative_path
:)
...
...
spec/features/projects/import_export/test_project_export.tar.gz
浏览文件 @
7db225e4
无法预览此类型文件
vendor/project_templates/express.tar.gz
浏览文件 @
7db225e4
无法预览此类型文件
vendor/project_templates/rails.tar.gz
浏览文件 @
7db225e4
无法预览此类型文件
vendor/project_templates/spring.tar.gz
浏览文件 @
7db225e4
无法预览此类型文件
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录