Skip to content
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

Avoid recursively walking the entire git history. #323

Merged
merged 1 commit into from Feb 23, 2015

Conversation

ralphbean
Copy link
Contributor

This will run us into the limit for recursive calls as jwb just pointed out
in #fedora-admin.

This will run us into the limit for recursive calls as jwb just pointed out
in ``#fedora-admin``.
@@ -97,7 +81,7 @@ for line in lines:

try:
base = repo.revparse_single(base)
ancestors = list(gather_ancestors(base))
ancestors = [commit.id for commit in repo.walk(base.id)]
Copy link
Member

Choose a reason for hiding this comment

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

Should we pass it sorting info?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, likely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I take it back. The list of ancestors can be in any order. We're only checking for membership in it to figure out when to stop second part of the hook later on.

@pypingou
Copy link
Member

One question, otherwise 👍

ralphbean added a commit that referenced this pull request Feb 23, 2015
Avoid recursively walking the entire git history.
@ralphbean ralphbean merged commit 3410233 into develop Feb 23, 2015
@ralphbean ralphbean deleted the feature/avoid-recursion branch February 23, 2015 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants