<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/buildstream.git/src/buildstream/plugins, branch update_committers</title>
<subtitle>gitlab.com: buildstream/buildstream.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/'/>
<entry>
<title>downloadablefilesource: Cache 'mirror_dir' and 'default_mirror_file'</title>
<updated>2019-07-17T09:04:08+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-07-15T17:27:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=bbf65daff319f707c6010bfc8aeddd19dd1c6e16'/>
<id>bbf65daff319f707c6010bfc8aeddd19dd1c6e16</id>
<content type='text'>
This allows faster access to those two files and reduces the time spent
in their getters by more than 50%, which can be 2-3s on medium projects
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows faster access to those two files and reduces the time spent
in their getters by more than 50%, which can be 2-3s on medium projects
</pre>
</div>
</content>
</entry>
<entry>
<title>node: Add 'get_str_list' on 'MappingNode'</title>
<updated>2019-07-17T08:26:26+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-07-16T17:31:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=b2a91466511f60e33e2e77fed2bf9c60bc31803d'/>
<id>b2a91466511f60e33e2e77fed2bf9c60bc31803d</id>
<content type='text'>
`mapping.get_sequence(...).as_str_list()` is a very common
pattern seen both in plugins and the core. Adding a helper to reduce
the number of operations will make usage smoother
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`mapping.get_sequence(...).as_str_list()` is a very common
pattern seen both in plugins and the core. Adding a helper to reduce
the number of operations will make usage smoother
</pre>
</div>
</content>
</entry>
<entry>
<title>plugin: remove 'node_get_provenance', use the Node API directly</title>
<updated>2019-07-15T14:14:03+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>contact@benschubert.me</email>
</author>
<published>2019-07-08T18:15:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=61ea58e52b75802ea0e4b760563a50149c905b31'/>
<id>61ea58e52b75802ea0e4b760563a50149c905b31</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>_project: remove 'key' argument from 'get_path_from_node'</title>
<updated>2019-07-15T14:14:03+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-07-05T16:00:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=2b1c63b50b11293377e87df802f35489e5f86c12'/>
<id>2b1c63b50b11293377e87df802f35489e5f86c12</id>
<content type='text'>
Now that we have scalar nodes, we can directly give the scalar to the
method.

- Adapt the plugin method to also not access via the key
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that we have scalar nodes, we can directly give the scalar to the
method.

- Adapt the plugin method to also not access via the key
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Remove 'node_validate' and replace by 'MappingNode.validate_keys'</title>
<updated>2019-07-15T14:14:03+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-07-03T17:01:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=8c9f41922ad16f8a031ac612bb35e493e8581380'/>
<id>8c9f41922ad16f8a031ac612bb35e493e8581380</id>
<content type='text'>
- adapt all call sites to use the new API
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- adapt all call sites to use the new API
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Remove 'node_items' and add 'MappingNode.items()'</title>
<updated>2019-07-15T14:14:03+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>contact@benschubert.me</email>
</author>
<published>2019-06-25T20:14:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=1aa0fb1fefa7e86586831a13200a92f6dd9bd3b4'/>
<id>1aa0fb1fefa7e86586831a13200a92f6dd9bd3b4</id>
<content type='text'>
One difference is that 'MappingNode.items()' does not strip the
provenance from scalars and lists, which ends up not affecting the
code much.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
One difference is that 'MappingNode.items()' does not strip the
provenance from scalars and lists, which ends up not affecting the
code much.
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Remove 'node_get' and migrate all remaining calls to new API</title>
<updated>2019-07-15T14:14:02+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-06-13T17:54:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=50335363cd49e7945567609cf8b1273576b27667'/>
<id>50335363cd49e7945567609cf8b1273576b27667</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>element: Remove `node_get_member` and all references to it</title>
<updated>2019-07-15T14:14:02+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-06-13T19:21:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=57f9715874ffaf92b8125b07a3a88415cda02baa'/>
<id>57f9715874ffaf92b8125b07a3a88415cda02baa</id>
<content type='text'>
This can now be done more easily with the Node api
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This can now be done more easily with the Node api
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Add 'as_int()' on ScalarNode</title>
<updated>2019-07-15T14:14:02+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>contact@benschubert.me</email>
</author>
<published>2019-06-11T06:55:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=4a56ebe6e589e2aa5d8da3fc2b76f76a19aa03b7'/>
<id>4a56ebe6e589e2aa5d8da3fc2b76f76a19aa03b7</id>
<content type='text'>
- Add the 'as_int()' method on 'ScalarNode' to replace
  'node_get(mapping, key, int)'
- Adapt all call sites to use the new API
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Add the 'as_int()' method on 'ScalarNode' to replace
  'node_get(mapping, key, int)'
- Adapt all call sites to use the new API
</pre>
</div>
</content>
</entry>
<entry>
<title>_yaml: Add 'as_bool()' and 'is_none()' to ScalarNode</title>
<updated>2019-07-15T14:14:02+00:00</updated>
<author>
<name>Benjamin Schubert</name>
<email>ben.c.schubert@gmail.com</email>
</author>
<published>2019-06-10T13:20:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/buildstream.git/commit/?id=d14b809cc7b56b7be9e3e40c2e12e8f7245ba680'/>
<id>d14b809cc7b56b7be9e3e40c2e12e8f7245ba680</id>
<content type='text'>
- 'as_bool()' casts a ScalarNode into a boolean, understanding both
  'True' and 'False' as truthy-falsy values, as per node_get(type=bool)
  behavior
- 'is_none()' allwos checking whether the scalar node contains a 'None'
  value. Since 'None' cannot be used when working with booleans, we need
  to have a way of checking for 'None' when we actually need the
  information of whether the value is unset.
- Adapt all call places to use the new API
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- 'as_bool()' casts a ScalarNode into a boolean, understanding both
  'True' and 'False' as truthy-falsy values, as per node_get(type=bool)
  behavior
- 'is_none()' allwos checking whether the scalar node contains a 'None'
  value. Since 'None' cannot be used when working with booleans, we need
  to have a way of checking for 'None' when we actually need the
  information of whether the value is unset.
- Adapt all call places to use the new API
</pre>
</div>
</content>
</entry>
</feed>
