Commit 6832435e by Rainer Orth Committed by Rainer Orth

gcc_update: Run $GCC_HG pull and update separately.

	* gcc_update: Run $GCC_HG pull and update separately.
	Check parents for SVN revision.

From-SVN: r165352
parent d95828db
2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* gcc_update: Run $GCC_HG pull and update separately.
Check parents for SVN revision.
2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* test_recheck: New script. * test_recheck: New script.
......
...@@ -311,17 +311,28 @@ case $vcs_type in ...@@ -311,17 +311,28 @@ case $vcs_type in
# Update tree, but make sure to only pull the default branch. # Update tree, but make sure to only pull the default branch.
# Otherwise all branches in the upstream repo are added, even if # Otherwise all branches in the upstream repo are added, even if
# only a single one has been cloned. # only a single one has been cloned.
$GCC_HG pull -u ${silent+-q} -r`$GCC_HG branch` ${1+"$@"} $GCC_HG pull ${silent+-q} -r`$GCC_HG branch` ${1+"$@"}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
(touch_files_reexec) (touch_files_reexec)
echo "hg pull of full tree failed." >&2 echo "hg pull of full tree failed." >&2
exit 1 exit 1
fi fi
# Extract SVN revision corresponding to tip, as stored by hg convert. # Update tree. Needs to be done separately from pull so
# Before hg 1.4.3, there's no template keyword corresponding to the # gcc_update -rREV works.
# extra: tag, so need to use hg log --debug to extract the info. $GCC_HG update ${silent+-q} ${1+"$@"}
revision=`$GCC_HG log --debug -l1 | \ if [ $? -ne 0 ]; then
(touch_files_reexec)
echo "hg update of full tree failed." >&2
exit 1
fi
# Extract SVN revision corresponding to parents, as stored by
# hg convert. Before hg 1.4.3, there's no template keyword
# corresponding to the extra: tag, so need to use hg log --debug
# to extract the info.
parents=`$GCC_HG parents --template '{rev}'`
revision=`$GCC_HG log --debug -r$parents | \
sed -ne "/^extra:.*convert_revision=svn:/ { sed -ne "/^extra:.*convert_revision=svn:/ {
s%^.*@%% s%^.*@%%
p p
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment