Re: [PATCH RFC v10] scmutil: add a simple key-value file helper

2017-02-13 Thread Augie Fackler
On Fri, Feb 03, 2017 at 02:47:26AM -0800, Kostia Balytskyi wrote: > # HG changeset patch > # User Kostia Balytskyi > # Date 1484824655 28800 > # Thu Jan 19 03:17:35 2017 -0800 > # Node ID 19a449c91ef14e691cf1347748473e0094fedc86 > # Parent

Re: [PATCH RFC v10] scmutil: add a simple key-value file helper

2017-02-13 Thread Augie Fackler
On Fri, Feb 03, 2017 at 02:47:26AM -0800, Kostia Balytskyi wrote: > # HG changeset patch > # User Kostia Balytskyi > # Date 1484824655 28800 > # Thu Jan 19 03:17:35 2017 -0800 > # Node ID 19a449c91ef14e691cf1347748473e0094fedc86 > # Parent

Re: [PATCH RFC v10] scmutil: add a simple key-value file helper

2017-02-13 Thread Kostia Balytskyi
On 13/02/2017 21:58, Jun Wu wrote: > As said before, I still prefer a simpler design without the "required" > boolean flag, and move the responsibility of checking requirements to the > higher-level code. Because: > >- As Yuya pointed out at the first place, "required" here will have >

Re: [PATCH RFC v10] scmutil: add a simple key-value file helper

2017-02-13 Thread Jun Wu
As said before, I still prefer a simpler design without the "required" boolean flag, and move the responsibility of checking requirements to the higher-level code. Because: - As Yuya pointed out at the first place, "required" here will have trouble dealing with future schema changes. So

[PATCH RFC v10] scmutil: add a simple key-value file helper

2017-02-03 Thread Kostia Balytskyi
# HG changeset patch # User Kostia Balytskyi # Date 1484824655 28800 # Thu Jan 19 03:17:35 2017 -0800 # Node ID 19a449c91ef14e691cf1347748473e0094fedc86 # Parent 9f264adbe75bfae8551dc0e6e0fce8d43fc7b43a scmutil: add a simple key-value file helper The purpose of the added