You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/08/28 02:01:20 UTC
[GitHub] ccollins476ad opened a new pull request #204: Don't start an
upgrade or sync if repos are dirty
ccollins476ad opened a new pull request #204: Don't start an upgrade or sync if repos are dirty
URL: https://github.com/apache/mynewt-newt/pull/204
This PR contains two features:
#### 1. Don't start an upgrade or sync if repos are dirty
Before starting an upgrade or sync operation, check if any repos being operated on are in a dirty state. If any repo is dirty, abort with a descriptive message. Optionally, the user can specify `-f` (force) to try the operation anyway.
A repo is dirty if any of the following is true:
* Repo contains local changes
* Repo contains staged changes
* Repo contains unpushed commits
#### 2. Improve `newt info` command
This commit adds some information to the output of the `newt info` command. If no arguments are specified, the command lists all repos in the project, and appends the following flags as appropriate:
* Upgrade needed
* Dirty: `<description of dirty state>`
If the user provides an argument, the command's old behavior is retained. I.e., the command prints a list of all packages belonging to the specified repo.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services