Fetch only required remotes. Saves disk space and bandwidth by default. - #6
Conversation
|
@yajo Thank you for this nice contrib. Can you update the README.rst file to describe this new parameter and also to adapt the examples? Indeed with this change the example with the merge of a specific commit is not right... |
2 similar comments
|
@lmignon Thanks for your interest and patience, this should be ready to merge now. You have new tests, all checks are ✔️. However I think you should raise the version when pushing this to pypi. This change can introduce an incompatibility in some specific scenarios, where they would still be working if they froze their requirements. |
|
@yajo Thank you to you for the contribution!
The version on pypi is 1.0.0 and the first change done after the first release has been to bump the version to 1.0.1.dev0 😏 faafa0d |
| _git_version = None | ||
|
|
||
| def __init__(self, cwd, remotes, merges, target, | ||
| def __init__(self, cwd, remotes, merges, target, fetch_all=False, |
There was a problem hiding this comment.
To preserve backward compatibility it's better to add new optional parameters at the end.
…kwards compatibility.
|
Fixed! 😊 |
- Unify tabs and spaces. - Delete remainders of Markdown markup. - Correct indentation for all blocks. - Separate configuration from usage instructions. - Add sections where needed.
|
I was preparing another PR and found it out very hard to document because currently README is a little messy, so I took the chance and fixed it here too. I hope you don't mind. This should be ready now. |
2 similar comments
For sure no! |
Now acsone/git-aggregator#6 and acsone/git-aggregator#7 are merged. However, we still have to use a development version, so we hash-pin it.
With this simple patch, we will save lots of time, disk space and bandwidth by default, by only fetching required remotes. In projects like Odoo, this means saving thousands of commits between versions.
@Tecnativa