* [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest
@ 2014-02-11 13:31 Ian Campbell
2014-03-17 11:16 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2014-02-11 13:31 UTC (permalink / raw)
To: ian.jackson; +Cc: Ian Campbell, xen-devel
Otherwise cr-daily-branch expects $HOME/testing.git to exist and will
git-reset it etc, which is rather annoying when in standalone mode...
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
ap-fetch-version | 8 ++++++--
ap-fetch-version-old | 8 ++++++--
cr-daily-branch | 4 +++-
3 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/ap-fetch-version b/ap-fetch-version
index 1f3c6e9..5a5d5c4 100755
--- a/ap-fetch-version
+++ b/ap-fetch-version
@@ -70,8 +70,12 @@ linuxfirmware)
$UPSTREAM_TREE_LINUXFIRMWARE master daily-cron.$branch
;;
osstest)
- git-fetch $HOME/testing.git pretest:ap-fetch >&2
- git-rev-parse ap-fetch^0
+ if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+ git-fetch $HOME/testing.git pretest:ap-fetch >&2
+ git-rev-parse ap-fetch^0
+ else
+ git-rev-parse HEAD^0
+ fi
;;
*)
echo >&2 "branch $branch ?"
diff --git a/ap-fetch-version-old b/ap-fetch-version-old
index 353a817..0f5af49 100755
--- a/ap-fetch-version-old
+++ b/ap-fetch-version-old
@@ -74,8 +74,12 @@ linuxfirmware)
$TREE_LINUXFIRMWARE master daily-cron-old.$branch
;;
osstest)
- git-fetch -f $HOME/testing.git incoming:ap-fetch
- git-rev-parse ap-fetch^0
+ if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+ git-fetch -f $HOME/testing.git incoming:ap-fetch
+ git-rev-parse ap-fetch^0
+ else
+ git-rev-parse HEAD^0
+ fi
;;
*)
echo >&2 "branch $branch ?"
diff --git a/cr-daily-branch b/cr-daily-branch
index c4a0872..41ca796 100755
--- a/cr-daily-branch
+++ b/cr-daily-branch
@@ -146,7 +146,9 @@ osstest)
determine_version REVISION_OSSTEST osstest
realtree=
NEW_REVISION=$REVISION_OSSTEST
- git reset --hard $REVISION_OSSTEST
+ if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+ git reset --hard $REVISION_OSSTEST
+ fi
;;
qemuu)
realtree=qemu-upstream-${xenbranch#xen-}
--
1.8.5.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest
2014-02-11 13:31 [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest Ian Campbell
@ 2014-03-17 11:16 ` Ian Campbell
2014-03-17 11:31 ` Ian Jackson
0 siblings, 1 reply; 4+ messages in thread
From: Ian Campbell @ 2014-03-17 11:16 UTC (permalink / raw)
To: ian.jackson; +Cc: xen-devel
ping?
On Tue, 2014-02-11 at 13:31 +0000, Ian Campbell wrote:
> Otherwise cr-daily-branch expects $HOME/testing.git to exist and will
> git-reset it etc, which is rather annoying when in standalone mode...
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> ---
> ap-fetch-version | 8 ++++++--
> ap-fetch-version-old | 8 ++++++--
> cr-daily-branch | 4 +++-
> 3 files changed, 15 insertions(+), 5 deletions(-)
>
> diff --git a/ap-fetch-version b/ap-fetch-version
> index 1f3c6e9..5a5d5c4 100755
> --- a/ap-fetch-version
> +++ b/ap-fetch-version
> @@ -70,8 +70,12 @@ linuxfirmware)
> $UPSTREAM_TREE_LINUXFIRMWARE master daily-cron.$branch
> ;;
> osstest)
> - git-fetch $HOME/testing.git pretest:ap-fetch >&2
> - git-rev-parse ap-fetch^0
> + if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
> + git-fetch $HOME/testing.git pretest:ap-fetch >&2
> + git-rev-parse ap-fetch^0
> + else
> + git-rev-parse HEAD^0
> + fi
> ;;
> *)
> echo >&2 "branch $branch ?"
> diff --git a/ap-fetch-version-old b/ap-fetch-version-old
> index 353a817..0f5af49 100755
> --- a/ap-fetch-version-old
> +++ b/ap-fetch-version-old
> @@ -74,8 +74,12 @@ linuxfirmware)
> $TREE_LINUXFIRMWARE master daily-cron-old.$branch
> ;;
> osstest)
> - git-fetch -f $HOME/testing.git incoming:ap-fetch
> - git-rev-parse ap-fetch^0
> + if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
> + git-fetch -f $HOME/testing.git incoming:ap-fetch
> + git-rev-parse ap-fetch^0
> + else
> + git-rev-parse HEAD^0
> + fi
> ;;
> *)
> echo >&2 "branch $branch ?"
> diff --git a/cr-daily-branch b/cr-daily-branch
> index c4a0872..41ca796 100755
> --- a/cr-daily-branch
> +++ b/cr-daily-branch
> @@ -146,7 +146,9 @@ osstest)
> determine_version REVISION_OSSTEST osstest
> realtree=
> NEW_REVISION=$REVISION_OSSTEST
> - git reset --hard $REVISION_OSSTEST
> + if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
> + git reset --hard $REVISION_OSSTEST
> + fi
> ;;
> qemuu)
> realtree=qemu-upstream-${xenbranch#xen-}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest
2014-03-17 11:16 ` Ian Campbell
@ 2014-03-17 11:31 ` Ian Jackson
2014-03-17 11:57 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: Ian Jackson @ 2014-03-17 11:31 UTC (permalink / raw)
To: Ian Campbell; +Cc: ian.jackson, xen-devel
Ian Campbell writes ("Re: [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest"):
> ping?
>
> On Tue, 2014-02-11 at 13:31 +0000, Ian Campbell wrote:
> > Otherwise cr-daily-branch expects $HOME/testing.git to exist and will
> > git-reset it etc, which is rather annoying when in standalone mode...
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Ian.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest
2014-03-17 11:31 ` Ian Jackson
@ 2014-03-17 11:57 ` Ian Campbell
0 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2014-03-17 11:57 UTC (permalink / raw)
To: Ian Jackson; +Cc: xen-devel
On Mon, 2014-03-17 at 11:31 +0000, Ian Jackson wrote:
> Ian Campbell writes ("Re: [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest"):
> > ping?
> >
> > On Tue, 2014-02-11 at 13:31 +0000, Ian Campbell wrote:
> > > Otherwise cr-daily-branch expects $HOME/testing.git to exist and will
> > > git-reset it etc, which is rather annoying when in standalone mode...
>
> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
When I came to apply their conflicts due to the switch from "git-foo" to
"git foo" but those were trivially resolved so I have pushed.
Ian.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-03-17 11:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-11 13:31 [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest Ian Campbell
2014-03-17 11:16 ` Ian Campbell
2014-03-17 11:31 ` Ian Jackson
2014-03-17 11:57 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).