The command `hg up -C` by default moves to the latest revision on the current branch. The `discard` function was trying to update to a different branch, in case it was provided, by passing a `-r REVISION` argument. Not only is this not the intended effect of the `discard` function, but this also could update to a different branch that hasn't been pulled yet, which is how we were experiencing trouble. Instead, we unconditionally do `hg up -C -r .` to "update" to the current revision (i.e. to "."), while `-C/--clean`ing the current directory. This is similar to `hg revert --all`, except that it also undoes the merge state of the working directory, in case there was any. |
10 years ago | |
|---|---|---|
| cloud | 10 years ago | |
| commands | 11 years ago | |
| database | 11 years ago | |
| files | 11 years ago | |
| inventory | 11 years ago | |
| network | 10 years ago | |
| packaging | 11 years ago | |
| source_control | 10 years ago | |
| system | 11 years ago | |
| utilities | 11 years ago | |
| web_infrastructure | 11 years ago | |
| windows | 10 years ago | |
| .gitignore | 11 years ago | |
| .travis.yml | 11 years ago | |
| CONTRIBUTING.md | 11 years ago | |
| COPYING | 11 years ago | |
| README.md | 11 years ago | |
| __init__.py | 11 years ago | |
| test-docs.sh | 11 years ago | |
README.md
ansible-modules-core
This repo contains Ansible's most popular modules that are shipped with Ansible.
New module submissions for modules that do not yet exist should be submitted to ansible-modules-extras, rather than this repo.
Take care to submit tickets to the appropriate repo where modules are contained. The docs.ansible.com website indicates this at the bottom of each module documentation page.
Reporting bugs
Take care to submit tickets to the appropriate repo where modules are contained. The repo is mentioned at the bottom of module documentation page at docs.ansible.com.
Testing modules
Ansible module development guide contains the latest info about that.
License
As with Ansible, modules distributed with Ansible are GPLv3 licensed. User generated modules not part of this project can be of any license.
Installation
There should be no need to install this repo separately as it should be included in any Ansible install using the official documented methods.