Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8
提交
697b448e
D
dragonwell8
项目概览
openanolis
/
dragonwell8
通知
5
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
697b448e
编写于
3月 26, 2014
作者:
M
mduigou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8038435: Some hgforest.sh commands don't receive parameters
Reviewed-by: katleman
上级
baf90315
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
21 addition
and
17 deletion
+21
-17
common/bin/hgforest.sh
common/bin/hgforest.sh
+21
-17
未找到文件。
common/bin/hgforest.sh
浏览文件 @
697b448e
#!/bin/
ba
sh
#!/bin/sh
#
# Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
...
...
@@ -60,10 +60,10 @@ done
command
=
"
$1
"
;
shift
repo_base
=
"
$@
"
command_args
=
"
$@
"
usage
()
{
echo
"usage:
$0
[-q|--quiet] [-v|--verbose] [--] <command> [
repo_base_path
]"
>
${
status_output
}
echo
"usage:
$0
[-q|--quiet] [-v|--verbose] [--] <command> [
commands...
]"
>
${
status_output
}
exit
1
}
...
...
@@ -113,26 +113,30 @@ subrepos_extra="jdk/src/closed jdk/make/closed jdk/test/closed hotspot/make/clos
pull_default
=
""
repos
=
""
repos_extra
=
""
if
[
"
${
command
}
"
=
"clone"
-o
"
${
command
}
"
=
"fclone"
]
;
then
if
[
-f
.hg/hgrc
]
;
then
pull_default
=
`
hg paths default
`
if
[
"
${
pull_default
}
"
=
""
]
;
then
echo
"ERROR: Need initial clone with 'hg paths default' defined"
>
${
status_output
}
exit
1
fi
if
[
"
${
command
}
"
=
"clone"
-o
"
${
command
}
"
=
"fclone"
-o
"
${
command
}
"
=
"tclone"
]
;
then
if
[
!
-f
.hg/hgrc
]
;
then
echo
"ERROR: Need initial repository to use this script"
>
${
status_output
}
exit
1
fi
pull_default
=
`
hg paths default
`
if
[
"
${
pull_default
}
"
=
""
]
;
then
echo
"ERROR: Need initial
repository to use this script
"
>
${
status_output
}
echo
"ERROR: Need initial
clone with 'hg paths default' defined
"
>
${
status_output
}
exit
1
fi
for
i
in
${
subrepos
}
;
do
if
[
!
-f
${
i
}
/.hg/hgrc
]
;
then
repos
=
"
${
repos
}
${
i
}
"
fi
done
if
[
"
${
repo_base
}
"
!=
""
]
;
then
if
[
"
${
command_args
}
"
!=
""
]
;
then
pull_default_tail
=
`
echo
${
pull_default
}
|
sed
-e
's@^.*://[^/]*/\(.*\)@\1@'
`
pull_extra
=
"
${
repo_base
}
/
${
pull_default_tail
}
"
if
[
"x
${
pull_default
}
"
=
"x
${
pull_default_tail
}
"
]
;
then
echo
"ERROR: Need initial clone from non-local source"
>
${
status_output
}
exit
1
fi
pull_extra
=
"
${
command_args
}
/
${
pull_default_tail
}
"
for
i
in
${
subrepos_extra
}
;
do
if
[
!
-f
${
i
}
/.hg/hgrc
]
;
then
repos_extra
=
"
${
repos_extra
}
${
i
}
"
...
...
@@ -214,9 +218,8 @@ else
done
(
(
if
[
"
${
command
}
"
=
"clone"
-o
"
${
command
}
"
=
"fclone"
]
;
then
if
[
"
${
command
}
"
=
"clone"
-o
"
${
command
}
"
=
"fclone"
-o
"
${
command
}
"
=
"tclone"
]
;
then
pull_newrepo
=
"
`
echo
${
pull_base
}
/
${
i
}
|
sed
-e
's@\([^:]/\)//*@\1@g'
`
"
echo
"hg clone
${
pull_newrepo
}
${
i
}
"
>
${
status_output
}
path
=
"
`
dirname
${
i
}
`
"
if
[
"
${
path
}
"
!=
"."
]
;
then
times
=
0
...
...
@@ -229,10 +232,11 @@ else
sleep
5
done
fi
echo
"hg clone
${
pull_newrepo
}
${
i
}
"
>
${
status_output
}
(
PYTHONUNBUFFERED
=
true
hg
${
global_opts
}
clone
${
pull_newrepo
}
${
i
}
;
echo
"
$?
"
>
${
tmp
}
/
${
repopidfile
}
.pid.rc
)
2>&1 &
else
echo
"cd
${
i
}
&& hg
${
global_opts
}
${
command
}
${
repo_base
}
"
>
${
status_output
}
cd
${
i
}
&&
(
PYTHONUNBUFFERED
=
true
hg
${
global_opts
}
${
command
}
${
command_
repo
}
;
echo
"
$?
"
>
${
tmp
}
/
${
repopidfile
}
.pid.rc
)
2>&1 &
echo
"cd
${
i
}
&& hg
${
global_opts
}
${
command
}
${
command_args
}
"
>
${
status_output
}
cd
${
i
}
&&
(
PYTHONUNBUFFERED
=
true
hg
${
global_opts
}
${
command
}
${
command_
args
}
;
echo
"
$?
"
>
${
tmp
}
/
${
repopidfile
}
.pid.rc
)
2>&1 &
fi
echo
$!
>
${
tmp
}
/
${
repopidfile
}
.pid
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录