Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10867 from nammn/list-commit
#10867 ## To change/add - [x] sort list-commits desc - [x] time format in human readable format (4h ago...) - [x] no commits feedback ## Description of change #### adds: - `commits` - `show-commit <number>` commands #### changes: - renames feature flag from generations to branches ## QA steps #### preparation - bootstrapped controller ``` export JUJU_DEV_FEATURE_FLAGS=generations juju deploy ubuntu juju add-branch bla juju add-branch blub juju track bla ubuntu juju config ubuntu hostname=random juju commit bla ``` #### list-commits test ``` ❯ juju commits Commit Committed at Committed by Branch name 3 07 Nov 2019 14:41:41+01:00 admin bla ``` should not show anything other than bla, because blub did not get committed It should not show aborted branches as well! no branches committed yet ``` ~/golang/src/github.com/juju/juju list-commit ❯ juju commits Commit Committed at Committed by Branch name ``` --> might want to change that to a proper message #### show-commits test ``` > juju show-commit 3 branch: bla: applications: - application: ubuntu units: tracking: - redis/0 config: hostname: bla committed-at: 08 Nov 2019 10:14:10+01:00 committed-by: admin created: 08 Nov 2019 10:13:04+01:00 created-by: admin ``` err case: ``` ## Documentation change - rename feature flag from generations to branches ❯ juju show-commit 10 ERROR generation_id 10 in model "default" not found ``` ## Bug reference
- Loading branch information
Showing
33 changed files
with
1,269 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.