-
Notifications
You must be signed in to change notification settings - Fork 255
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
no checks in ident string #43
Comments
my current 'fix'/hack is:
of course, with the different possible ways to break that, it'd have to be a bit better at |
nvm.. the fix didn't work. Should've been |user = user.replace('<<', '<') |
What you want to use is the author map (-A) option (Look in the Fast-export is not in the business of doing cute transformations in |
Won't fix |
Picking up this long-dead thread, I am mirroring this code base, and in this code base I made a couple changes; Open an issue here should you experience similar issues, |
Once I searched around, I realized https://github.com/glandium/git-cinnabar handles these cases nicely, I'm mirroring the code here. |
I'm currently trying to convert a large mercurial repo to git using fast-export. After running it for some time, fast-export crashes with:
fatal: Missing > in ident string: test user <test@test.com 123456778 +1200
with the following traceback:
Traceback (most recent call last):
File "/home/cc/projs/fast-export/hg-fast-export.py", line 442, in
notes=options.notes,encoding=encoding))
File "/home/cc/projs/fast-export/hg-fast-export.py", line 364, in hg2git
c=export_commit(ui,repo,rev,old_marks,max,c,authors,sob,brmap,hgtags,notes,encoding)
File "/home/cc/projs/fast-export/hg-fast-export.py", line 226, in export_commit
export_file_contents(ctx,man,changed,hgtags,encoding)
File "/home/cc/projs/fast-export/hg-fast-export.py", line 140, in export_file_contents
wr(d)
File "/home/cc/projs/fast-export/hg-fast-export.py", line 37, in wr
wr_no_nl(msg)
File "/home/cc/projs/fast-export/hg-fast-export.py", line 34, in wr_no_nl
sys.stdout.write(msg)
IOError: [Errno 32] Broken pipe
The text was updated successfully, but these errors were encountered: