From: Robert Yang <liezhi.yang@windriver.com>
To: Paul Eggleton <paul.eggleton@linux.intel.com>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 1/1] git.py: create a branch when checkout
Date: Wed, 8 Jul 2015 09:28:51 +0800 [thread overview]
Message-ID: <559C7CD3.5080100@windriver.com> (raw)
In-Reply-To: <10060998.dTQVzXkhxA@peggleto-mobl.ger.corp.intel.com>
On 07/08/2015 12:56 AM, Paul Eggleton wrote:
> On Tuesday 07 July 2015 16:17:42 Richard Purdie wrote:
>> On Mon, 2015-07-06 at 18:33 -0700, Robert Yang wrote:
>>> Create a branch named oebuild_SRCREV when checkout the source, this
>>> makes debug easier than "(no branch)" when look into the source.
>>>
>>> Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
>>> ---
>>>
>>> bitbake/lib/bb/fetch2/git.py | 3 ++-
>>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
>>> index 2e53882..12087dd 100644
>>> --- a/bitbake/lib/bb/fetch2/git.py
>>> +++ b/bitbake/lib/bb/fetch2/git.py
>>>
>>> @@ -280,7 +280,8 @@ class Git(FetchMethod):
>>> runfetchcmd("%s read-tree %s%s" % (ud.basecmd,
>>> ud.revisions[ud.names[0]], readpathspec), d)
>>> runfetchcmd("%s checkout-index -q -f -a" % ud.basecmd,
>>> d)
>>>
>>> else:
>>> - runfetchcmd("%s checkout %s" % (ud.basecmd,
>>> ud.revisions[ud.names[0]]), d) + runfetchcmd("%s checkout
>>> %s -b oebuild_%s" % (ud.basecmd, \ +
>>> ud.revisions[ud.names[0]], ud.revisions[ud.names[0]]), d)>
>>> return True
>>
>> Would it not make more sense to set the branch to the upstream branch
>> name here?
>
> I'd go one step further, use the upstream branch name and also set it to track
> the remote branch as well.
Hi Paul and RP,
I'm afraid that the ud.revisions[ud.names[0]] which is SRCREV may
not point to an upstream branch or tag, please ?
// Robert
>
> Cheers,
> Paul
>
next prev parent reply other threads:[~2015-07-08 1:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-07 1:33 [PATCH 0/1] git.py: create a branch when checkout Robert Yang
2015-07-07 1:33 ` [PATCH 1/1] " Robert Yang
2015-07-07 15:17 ` Richard Purdie
2015-07-07 16:56 ` Paul Eggleton
2015-07-08 1:28 ` Robert Yang [this message]
2015-07-08 8:28 ` Richard Purdie
2015-07-09 5:57 ` Robert Yang
-- strict thread matches above, loose matches on Subject: below --
2015-07-09 7:18 [PATCH 0/1 V2] " Robert Yang
2015-07-09 7:18 ` [PATCH 1/1] " Robert Yang
2015-07-09 16:54 ` Paul Eggleton
2015-07-10 0:00 ` Robert Yang
2015-07-10 9:04 ` Paul Eggleton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=559C7CD3.5080100@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=bitbake-devel@lists.openembedded.org \
--cc=paul.eggleton@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.