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

[WIP] Fetched local mercurial repo's commit hash #1560

Closed
wants to merge 8 commits into from

Conversation

DeepikaKaranji
Copy link

closes #1506
I have currently only fetched the local mercurial repo's commit hash where the patches are applied, yet to apply that commit to the git repo and replace lines 358-380.
I hope I'm in the right direction :)

@codecov-io
Copy link

codecov-io commented May 14, 2020

Codecov Report

Merging #1560 into master will decrease coverage by 0.09%.
The diff coverage is 5.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1560      +/-   ##
==========================================
- Coverage   57.33%   57.24%   -0.10%     
==========================================
  Files         107      107              
  Lines        9170     9185      +15     
==========================================
  Hits         5258     5258              
- Misses       3912     3927      +15     
Impacted Files Coverage Δ
scripts/commit_classifier.py 0.00% <0.00%> (ø)
setup.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8ad32b...3ad8b2f. Read the comment docs.

@@ -315,10 +315,12 @@ def load_user(phid):
revision["fields"]["title"], revision["fields"]["summary"]
)

latest_rev = repository.get_revs(hg, f"-{len(stack)}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

We haven't applied the patches yet here, so this will return wrong revisions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The code should moved after the end of the for loop.

Copy link
Author

Choose a reason for hiding this comment

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

Done!

@codecov-commenter
Copy link

codecov-commenter commented May 22, 2020

Codecov Report

Merging #1560 into master will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1560   +/-   ##
=======================================
  Coverage   57.15%   57.15%           
=======================================
  Files         108      108           
  Lines        9403     9403           
=======================================
  Hits         5374     5374           
  Misses       4029     4029           
Impacted Files Coverage Δ
scripts/commit_classifier.py 0.00% <0.00%> (ø)
setup.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8ebfe39...7b383ea. Read the comment docs.

@@ -377,6 +373,8 @@ def load_user(phid):
check=True,
cwd=self.git_repo_dir,
)
latest_rev = repository.get_revs(hg, f"-{len(stack)}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

You're setting this variable here, but trying to use it earlier 😄
Maybe this is not an easy enough task to start with, I'd suggest working on some personal projects first to get some initial experience with programming.

@marco-c marco-c closed this May 25, 2020
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.

Instead of applying patch in git, fetch it from the local Mercurial repository
4 participants