Ensure `--deps=none` option works for `bst checkout`
Description
This is a backport of !819 (merged).
Currently, bst checkout --deps none command always produces empty
output. Fix this issue and add regression test for the same.
As part of this, also rename the dep loop variable to element in
order to avoid confusion in future.
Changes proposed in this merge request:
- Ensure
--deps=noneoption works forbst checkout
This merge request, when approved, will close issue/bug: