public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
From: "W. Trevor King" <wking@tremily.us>
To: Catalyst <gentoo-catalyst@lists.gentoo.org>
Cc: "W. Trevor King" <wking@tremily.us>
Subject: [gentoo-catalyst] [PATCH v2 00/21] rewrite-on-master patches (part 1)
Date: Sat, 14 Dec 2013 14:24:08 -0800	[thread overview]
Message-ID: <cover.1387059467.git.wking@tremily.us> (raw)
In-Reply-To: <CAEdQ38F1Ld18wGeJV=kLr0HN1XAUn0+rz4xK8L3czk8tUuBsew@mail.gmail.com>

From: "W. Trevor King" <wking@tremily.us>

On Sat, Dec 14, 2013 at 10:44:13AM -0800, Matt Turner wrote:
> I feel they're basically ready to go, but I want everyone to be in
> the habit of sending patches to the list, so please do.

Here you go :).

> Preemptive review: I saw just a few minor things, almost entirely
> dealing with lack of whitespace around operators. git log -p --reverse
> origin/master..wking/dolsen-rewrite-part-1 and then search for ^\+.*[^
> ]\+[^ ] (less regex) finds a couple.

I added spaces around = and +.  Beyond that, I agree with Dustin:

On Sat, Dec 14, 2013 at 03:31:50PM -0600, Dustin C. Hatch wrote:
> On 12/14/2013 10:42, W. Trevor King wrote:
> > The current code base is so far from PEP 8 that changing touched
> > sections to match PEP 8 looks really out of place.  In this
> > instance it's probably fine, but I'd ok with putting off all/most
> > PEP 8 cleanups to their own pure-reformatting commits.
>
> I strongly agree with this idea. If we start mixing PEP8 and non
> PEP8 compliant code, it will get really hard to read really fast. I
> think we should wait until most if not all of this rewrite get onto
> master before we start changing stuff for the sake of reformatting.

On Sat, Dec 14, 2013 at 10:44:13AM -0800, Matt Turner wrote:
> I'd opt to just put parenthesis around prints where we're going to be
> line wrapping its argument. It accomplishes the same thing as the
> trailing slash, but moves us slightly in the direction of python3. So,
> fix up lines you think it possible that match ^\+.*\\$

Whitespace inconsistency is still readable, but having ‘print(…)’
where we touch lines, surrounded by ‘print …’ where we didn't touch
lines is a bit too far for me ;).  Can we just move to:

  from __future__ import print_function

and ‘print(…)’ as a mass-replace once we finish the rest of Brian's
series?

> The other thing: I think we should drop most of the last patch for
> now. Wrapping long lines before we switch from 8-space tabs to PEP8
> 4-space style seems premature. The other half of that commit that
> replaces a series of prints with a single one looks good though.

I've split the commit and placed the long-line wrapping at the end of
this part of the series.  There aren't too many lines in there, so
rebasing the remainder of the series onto master shouldn't be to bad
if you don't merge the last commit from this part.

> You may want to put your Signed-off-by on the patches to note that
> you refactored them heavily.

Done.  Brian, I'll wait until you've acked this form of your branch,
and then add sign-offs from you too, so you can ok (or not) my Git
refactoring.

Cheers,
Trevor

Brian Dolbec (21):
  modules/tinderbox_target.py: Use 'portdir' instead of hard-coding
    '/usr/portage'
  modules/generic_stage_target.py: Use 'portdir' instead of hard-coding
    '/usr/portage'
  modules/generic_stage_target.py: Use 'portdir' instead of hard-coding
    '/usr/portage'
  modules/generic_stage_target.py: Use 'distdir' instead of hard-coding
    '${PORTAGE}/distfiles'
  modules/generic_stage_target.py: Use a 'local_overlay' setting instead
    of hard-coding '/usr/local/portage'
  catalyst: Split confdefaults into line-per-entry
  catalyst: Add 'repo_name' default
  catalyst: Add 'snapshot_name' default
  catalyst: Add 'packagedir' default instead of hard-coding
    '/usr/portage/packages'
  catalyst: Add 'port_tmpdir' default instead of hard-coding
    '/var/tmp/portage'
  modules/generic_stage_target.py: Don't use paths as mountmap keys
  modules/generic_stage_target.py: Use 'proc' instead of '/proc' as the
    mountmap key
  modules/generic_stage_target.py: Use 'dev' instead of '/dev' as the
    mountmap key
  modules/generic_stage_target.py: Use 'distdir' instead of
    '/usr/portage/distfiles' as the mountmap key
  modules/generic_stage_target.py: Use 'port_tmpdir' instead of
    '/var/tmp/portage' as the mountmap key
  modules/generic_stage_target.py: Use 'devpts' instead of '/dev/pts' as
    the mountmap key
  modules/generic_stage_target.py: Use 'packagedir' instead of
    '/usr/portage/packages' as the mountmap key
  modules/generic_stage_target.py: Use 'kerncache' instead of
    '/tmp/kerncache' as the mountmap key
  modules/generic_stage_target.py: Use 'ccache' instead of
    '/var/tmp/ccache' as the mountmap key
  catalst: improve usage() output formatting slightly
  catalyst: cleanup long lines

 catalyst                        | 101 ++++++++++++++++++++++++----------------
 modules/generic_stage_target.py |  92 ++++++++++++++++++------------------
 modules/snapshot_target.py      |  14 ++++--
 modules/tinderbox_target.py     |   8 +++-
 4 files changed, 123 insertions(+), 92 deletions(-)

-- 
1.8.3.2



  reply	other threads:[~2013-12-14 22:25 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-14  3:07 [gentoo-catalyst] rewrite-on-master patches Brian Dolbec
2013-12-14  3:07 ` [gentoo-catalyst] [PATCH 1/4] Add more configured defaults Brian Dolbec
2013-12-14  4:12   ` Rick "Zero_Chaos" Farina
2013-12-14  4:51   ` Matt Turner
2013-12-14 11:54     ` Brian Dolbec
2013-12-14 14:33   ` Dylan Baker
2013-12-14 16:31     ` W. Trevor King
2013-12-15  0:05     ` W. Trevor King
2013-12-14  3:07 ` [gentoo-catalyst] [PATCH 2/4] Remove self.mounts and self.mountmap's use of paths for keys and paths Brian Dolbec
2013-12-14  4:26   ` Rick "Zero_Chaos" Farina
2013-12-14  5:08   ` Matt Turner
2013-12-14 11:15     ` Brian Dolbec
2013-12-14 16:37       ` W. Trevor King
2013-12-14 18:05         ` W. Trevor King
2013-12-14 18:44           ` Matt Turner
2013-12-14 22:24             ` W. Trevor King [this message]
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 01/21] modules/tinderbox_target.py: Use 'portdir' instead of hard-coding '/usr/portage' W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 02/21] modules/generic_stage_target.py: " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 03/21] " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 04/21] modules/generic_stage_target.py: Use 'distdir' instead of hard-coding '${PORTAGE}/distfiles' W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 05/21] modules/generic_stage_target.py: Use a 'local_overlay' setting instead of hard-coding '/usr/local/portage' W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 06/21] catalyst: Split confdefaults into line-per-entry W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 07/21] catalyst: Add 'repo_name' default W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 08/21] catalyst: Add 'snapshot_name' default W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 09/21] catalyst: Add 'packagedir' default instead of hard-coding '/usr/portage/packages' W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 10/21] catalyst: Add 'port_tmpdir' default instead of hard-coding '/var/tmp/portage' W. Trevor King
2013-12-15  2:56                 ` Brian Dolbec
2013-12-15  3:07                   ` W. Trevor King
2013-12-15  3:22                     ` W. Trevor King
2013-12-15  4:00                       ` [gentoo-catalyst] [PATCH v3 00/19] rewrite-on-master patches (part 1) W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 01/19] modules/tinderbox_target.py: Use 'portdir' instead of hard-coding '/usr/portage' W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 02/19] modules/generic_stage_target.py: " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 03/19] " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 04/19] modules/generic_stage_target.py: Use 'distdir' instead of hard-coding '${PORTAGE}/distfiles' W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 05/19] modules/generic_stage_target.py: Use a 'local_overlay' setting instead of hard-coding '/usr/local/portage' W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 06/19] catalyst: Split confdefaults into line-per-entry W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 07/19] catalyst: Add 'repo_name' default W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 08/19] catalyst: Add 'snapshot_name' default W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 09/19] catalyst: Add 'packagedir' default instead of hard-coding '/usr/portage/packages' W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 10/19] modules/generic_stage_target.py: Don't use paths as mountmap keys W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 11/19] modules/generic_stage_target.py: Use 'proc' instead of '/proc' as the mountmap key W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 12/19] modules/generic_stage_target.py: Use 'dev' instead of '/dev' " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 13/19] modules/generic_stage_target.py: Use 'distdir' instead of '/usr/portage/distfiles' " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 14/19] modules/generic_stage_target.py: Use 'port_tmpdir' instead of '/var/tmp/portage' " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 15/19] modules/generic_stage_target.py: Use 'devpts' instead of '/dev/pts' " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 16/19] modules/generic_stage_target.py: Use 'packagedir' instead of '/usr/portage/packages' " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 17/19] modules/generic_stage_target.py: Use 'kerncache' instead of '/tmp/kerncache' " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 18/19] modules/generic_stage_target.py: Use 'ccache' instead of '/var/tmp/ccache' " W. Trevor King
2013-12-15  4:00                         ` [gentoo-catalyst] [PATCH v3 19/19] catalst: improve usage() output formatting slightly W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 11/21] modules/generic_stage_target.py: Don't use paths as mountmap keys W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 12/21] modules/generic_stage_target.py: Use 'proc' instead of '/proc' as the mountmap key W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 13/21] modules/generic_stage_target.py: Use 'dev' instead of '/dev' " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 14/21] modules/generic_stage_target.py: Use 'distdir' instead of '/usr/portage/distfiles' " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 15/21] modules/generic_stage_target.py: Use 'port_tmpdir' instead of '/var/tmp/portage' " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 16/21] modules/generic_stage_target.py: Use 'devpts' instead of '/dev/pts' " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 17/21] modules/generic_stage_target.py: Use 'packagedir' instead of '/usr/portage/packages' " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 18/21] modules/generic_stage_target.py: Use 'kerncache' instead of '/tmp/kerncache' " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 19/21] modules/generic_stage_target.py: Use 'ccache' instead of '/var/tmp/ccache' " W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 20/21] catalst: improve usage() output formatting slightly W. Trevor King
2013-12-14 22:24               ` [gentoo-catalyst] [PATCH v2 21/21] catalyst: cleanup long lines W. Trevor King
2013-12-14 22:29               ` [gentoo-catalyst] Re: [PATCH v2 00/21] rewrite-on-master patches (part 1) W. Trevor King
2013-12-14 23:10                 ` W. Trevor King
2013-12-15  0:24               ` [gentoo-catalyst] " Matt Turner
2013-12-15  1:40                 ` W. Trevor King
2013-12-14 14:51   ` [gentoo-catalyst] [PATCH 2/4] Remove self.mounts and self.mountmap's use of paths for keys and paths Dylan Baker
2013-12-14 16:42     ` W. Trevor King
2013-12-14 21:31       ` Dustin C. Hatch
2013-12-14  3:07 ` [gentoo-catalyst] [PATCH 3/4] Adapt commit c52962b6bd2 to use the new configured settings values Brian Dolbec
2013-12-14  4:59   ` Dustin C. Hatch
2013-12-14  6:12     ` Brian Dolbec
2013-12-14 14:54   ` Dylan Baker
2013-12-14 16:07     ` Dylan Baker
2013-12-14 16:22     ` Brian Dolbec
2013-12-14  3:07 ` [gentoo-catalyst] [PATCH 4/4] cleanup long lines, improve usage() output formatting slightly Brian Dolbec
2013-12-14  5:14   ` Matt Turner
2013-12-14  5:22     ` W. Trevor King
2013-12-14  6:21     ` Brian Dolbec
2013-12-14 14:56       ` Dylan Baker
2013-12-14 16:02         ` Brian Dolbec

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=cover.1387059467.git.wking@tremily.us \
    --to=wking@tremily.us \
    --cc=gentoo-catalyst@lists.gentoo.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