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
Regression: get_version works for 1.10.1 and 1.11.1, but not 1.13.1 #134
Comments
please run with |
I don't know why there's a default/default/master tag, but I'd guess it's user (ie. my) error when setting the master bookmark for hg-git. |
Is the repo public? ID like to try and reproduce locally |
Yep. It's public. Thanks for investigating. |
Please link |
oh, wait there is a link |
@reece what versions of mercurial/hg_git are you using? |
@reece can you also test against master, it may be possible that i accidentally fixed with one of the mercurial related fixes |
I'm using Ubuntu 16.04, python 3.5.2, mercurial 3.7.3, and have tried hg-git head and 0.8.5. master has the same issue. test script at https://gist.github.com/reece/6d26c0b3a45ced81e50fa073f2b25e6b
|
The setuptools_scm repo exhibits the same behavior when cloned with hg-git but not git. Compare these: With hg-git
With git
|
I'm on hg 3.8 and things seem to be just fine |
i haven't managed to follow up |
Thanks for updating. I don't think it's quite as simple as "old mercurial on ubuntu". As the tracebacks in the original report show, setuptools_scm 1.13.1 fails, whereas 1.11.1 and 1.10.1 succeed, for otherwise identical configurations. |
I can't replicate on nicos with more recent versions, it will be a while before I can set up a VM and test on the same distro/version |
@reece to speed things up, please get me the output with |
Ronny- please see the comment much earlier in the thread with debug output. Or are you asking for something not covered there? |
@reece indeed, i missed it while revisiting the issue, i hope i can set up older hg + hg-git versions later this week |
@reece can you take a look if this still this the case with the recent versions of setuptools_scm some hg related fixes came in |
@RonnyPfannschmidt Thanks for continuing to investigate. This appears to be fixed. Here's what I see in hg 4.3.1 using w/hg-git master from https://bitbucket.org/durin42/hg-git:
Columns are hg and the get_version() result for setuptools_scm versions 1.10.1, 1.11.1, 1.13.1, and 2.0.0. The bit to notice there is that the anomalous "AssertionError" in column 5 from 1.13.1 is gone in setuptools_scm 2.0.0 (and it agrees with setuptools_scm 1.10.1 and 1.11.1. Again, these are all for the same version of hg (4.3.1). I'll close now. I appreciate your effort! |
@avirshup deserves the credit for making a much better and more reliable hg integration |
Summary
setuptools_scm 1.13.1 fails for several of my projects. 1.10.1 and 1.11.1 worked fine. The ultimate error is (full traceback below):
Python 3.5.2, Ubuntu 16.04, various versions of setuptools_scm (see below).
This error appears to occur only for head revisions on several repos. Affected repos use hg-git, although I have no evidence that that's related.
Reproduction
Columns are 1) changeset + tags, 2) 1.10.1 get_version, 3) 1.11.1 get_version, 4) 1.13.1 get_version
Example Tracebacks
These are all collected for the same bioutils commit (changeset 4aac87427260).
1.13.1
1.11.1
1.10.1
The text was updated successfully, but these errors were encountered: