-
Notifications
You must be signed in to change notification settings - Fork 258
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
revsymbol not found #132
Comments
Same error on Ubuntu Xenial. |
[This is a canned reply to issues that contain too little information for effective troubleshooting] Please have a look at this blog post about writing effective bug reports. For fast-export you should at least:
|
e200cec broke mercurial<4.6 support, which was a Bad Thing. Linuxy types particularly are used to being able to use the mercurial package from their OS package manager, rather than needing to mess around with installing extra packages from pip (which is normally a disaster if you’re not a Python programmer and used to messing around with virtualenvs or similar), and almost none of those have Mercurial 4.6 yet. (Ubuntu, for example, is on 4.5.3 in 18.04 LTS, and 3.7.3 in 16.04 LTS. So probably having 4.6 or later is about two and a half to four years off!) The differences in Mercurial 4.6 are small enough that restoring support is not difficult, and it makes it work for everyone, so it’s worth doing. Fixes frej#132.
v180610 broke support for Mercurial < 4.6 due to e200cec, which is going to affect almost everyone in practice because almost no one has Mercurial 4.6 already. You have three primary options to work around this:
|
I do confirm that downgrading fast-export works well. Installing additional packages when trying to migrate an old mercurial repository is generally not a good option, given that fast-export will be used in a one-shot process. So my procedure becomes :
|
Why close this? It’s still a serious issue, affecting almost everyone on Linux that uses Mercurial. |
OK, I downgraded to version v180317, and the problem is gone. chris-morgan is correct. This bug needs to be fixed. |
I've just made a clone from master branch as of today 17 July 2018, I still have following error, is it fixed in master branch or should I go to some branch? fast-export/hg-fast-export.py", line 7, in |
It is not fixed yet in the master branch. |
Checking out to tags/v180317 works but when command |
@slxiao it's better to fill new issue to really track it. |
@slxiao you have to run "git checkout HEAD" and voila, the file comes out |
Can this be fixed in master? Otherwise using the git manual's suggested approach is broken on the current Ubuntu LTS (18.04). @chris-morgan's workaround worked btw. |
I encountered this problem today. For it not to have been resolved in master in 18 months does seem a little odd. |
@alexanpe: See this comment in PR #132 for why there is no support for old Mercurial revisions. |
@frej So first upgrading the mercurial repository and then executing fast-export should work? How about probing the repository version first and then hinting a need to upgrade to the user? |
For those who are as me stuck with not being able to upgrade mercurial - I created a docker image https://hub.docker.com/r/zerkms/hg-fast-export |
Great image, thank you! But when I first run your container I got an error:
So I created a Dockerfile with "--force" option:
My be it's a good idea to add "--froce" to your docker image too? |
@pqr from the source code it looks like |
To fix:
|
I keep getting this issue:
Traceback (most recent call last):
File "/Users/adshah/Desktop/fast-export/hg-fast-export.py", line 7, in
from mercurial.scmutil import revsymbol
ImportError: cannot import name revsymbol
/Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-fast-import statistics:
The text was updated successfully, but these errors were encountered: