Skip to content

The progress arg to push, pull, fetch and clone is now a python calla… #450

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

Merged
merged 2 commits into from
May 29, 2016
Merged

Conversation

barry-scott
Copy link
Contributor

…ble.

This simplifies the API and removes the parser, RemoteProgres,
from the API as RemoteProgress is an internal detail of the implementation.

progress is accepted as:

  • None - drop progress messages
  • callable (function etc) - call the function with the same args as update
  • object - assume its RemoteProgress derived as use as before

RemoteProgress takes an optional progress_function argument.
It will call the progress function if not None otherwise call self.update
as it used to.

…ble.

This simplifies the API and removes the parser, RemoteProgres,
from the API as RemoteProgress is an internal detail of the implementation.

progress is accepted as:
* None - drop progress messages
* callable (function etc) - call the function with the same args as update
* object - assume its RemoteProgress derived as use as before

RemoteProgress takes an optional progress_function argument.
It will call the progress function if not None otherwise call self.update
as it used to.
@barry-scott
Copy link
Contributor Author

I'm new to github workflow. The PR is not no master correctly. Not sure of how to redo this.
Let me know if I need to and a hint as to how to rebase now I have pushed this PR please.

@Byron Byron added this to the v2.0.4 - Bugfixes milestone May 28, 2016
@Byron Byron self-assigned this May 28, 2016
@Byron
Copy link
Member

Byron commented May 28, 2016

Thanks for your contribution ! I generally like the way it is implemented, but will make a few line-comments in a moment.
Could you please check and correct the issues flake8 has ? Travis has reported issues which are only about the styling of the code. It's possible to run flake8 locally to not have to push to trigger travis, and what many do is tox -e flake8 or just flake8 in the root of the project.


messages is '' if there is no additon message.

Deprecated: Pass in a class derived from git.RemoteProgres that
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no reason to deprecate this - it should be fine to just remove Deprecated: here.

@Byron
Copy link
Member

Byron commented May 28, 2016

Oh, and before I forget: Could you add the upcoming API improvement in the changes.rst file please ? Thank you.

@Byron Byron merged commit ece57af into gitpython-developers:master May 29, 2016
Byron added a commit that referenced this pull request May 29, 2016
Minor adjustments to PR to match current code style.

Related to #450
Byron added a commit that referenced this pull request May 29, 2016
Byron added a commit that referenced this pull request May 29, 2016
That way, the base type doesn't need any adjustment.

Related to #450
@Byron
Copy link
Member

Byron commented May 29, 2016

Just to save us some time, I merged and made some modifications myself.
Thanks for your contribution, it's much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants