Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@linux.intel.com>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: Package recipes change proposal (system-wide) -	name wise
Date: Fri, 03 Aug 2012 16:46:17 -0700	[thread overview]
Message-ID: <501C62C9.9090707@linux.intel.com> (raw)
In-Reply-To: <7A8E501D-1792-4693-8EF4-C51E08B850FC@chargestorm.se>



On 07/28/2012 02:22 AM, Anders Darander wrote:
> 
> On 26 jul 2012, at 22:43, "Joshua Lock" <josh@linux.intel.com>
> wrote:
>> On Thu, 2012-07-26 at 20:40 +0100, Richard Purdie wrote:
>>> 
>>> Also, as others have mentioned, git can detect move operations if
>>> you tell it to.
>> 
>> FYI the create-pull-request script passes -M40 to git
>> format-patch, which tells git to:
>> 
>> "should consider a delete/add pair to be a rename if more than 40%
>> of the file hasn’t changed."
>> 
>> Though with the size of some recipes perhaps the -M value should
>> be increased, or not passed at all?
> 
> No, the -M option shouldn't be removed. Why would you like to
> increase the percentage needed to handle a delete/add pair as a
> rename? Rather, it could very well be lowered even more, though the
> current 40% might be a good compromise.
> 
> Detecting a delete/add pair as a rename operation with some further
> modifications of the recipe does make reviewing the upgrade patches a
> lot easier...

Right, Anders submitted the -M40 change deliberately:

This was introduced as:

commit c8294d1e6da20f82d444a9d866bf5444a002dc5c
Author: Anders Darander <anders@chargestorm.se>
Date:   Tue Aug 16 15:41:34 2011 +0200

    create-pull-request: increase likelihood of detecting a rename

    Decrease the similarity percentage needed to recognize a
delete/add-pair follow
    as a rename.
    This make reviewing patches easier.

    (From OE-Core rev: 3944f5e02d22b70b3bcd733a80f005dbd8e248a2)

    Signed-off-by: Anders Darander <anders@chargestorm.se>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

This hasn't been an issue for me, but I could see that with some of the
minimal recipes that this could trigger some false renames. Still, I
don't see it as a problem.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel



  reply	other threads:[~2012-08-03 23:59 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25  7:02 [PATCH 0/1] mtools: add glibc-gconv-* to RDEPENDS/RRECOMMENDS xin.ouyang
2012-07-25  7:02 ` [PATCH 1/1] " xin.ouyang
2012-07-26 19:04   ` Phil Blundell
2012-07-25  7:23 ` Package recipes change proposal (system-wide) - name wise Iorga, Cristian
2012-07-25 10:05   ` Koen Kooi
2012-07-25 10:09   ` Paul Eggleton
2012-07-25 13:48     ` Chris Larson
2012-07-26 19:52     ` Bruce Ashfield
2012-07-26 19:40   ` Richard Purdie
2012-07-26 20:44     ` Joshua Lock
2012-07-28  9:22       ` Anders Darander
2012-08-03 23:46         ` Darren Hart [this message]
2012-07-26 19:01 ` [PATCH 0/1] mtools: add glibc-gconv-* to RDEPENDS/RRECOMMENDS Saul Wold

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=501C62C9.9090707@linux.intel.com \
    --to=dvhart@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox