-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 |
@@ -33,7 +33,7 @@ class Repo(object): | |||
|
|||
_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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To preserve backward compatibility it's better to add new optional parameters at the end.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yajo thanks for this contrib. Just one minor remark regarding the new constructor parameter, otherwise looks good to me.
…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! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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