Comments (6)
my current 'fix'/hack is:
diff --git a/hg-fast-export.py b/hg-fast-export.py
index 0c683c5..2f1c90b 100755
--- a/hg-fast-export.py
+++ b/hg-fast-export.py
@@ -184,6 +184,8 @@ def export_commit(ui,repo,revision,old_marks,max,count,authors,sob,brmap,hgtags,
wr('mark :%d' % (revision+1))
if sob:
wr('author %s %d %s' % (get_author(desc,user,authors),time,timezone))
- if '<<' in user:
- user.replace('<<', '<')
wr('committer %s %d %s' % (user,time,timezone))
wr('data %d' % (len(desc)+1)) # wtf?
wr(desc)
of course, with the different possible ways to break that, it'd have to be a bit better at
checking the ident syntax, et. al. (but right now it fixes my issue)
from fast-export.
nvm.. the fix didn't work.
Should've been |user = user.replace('<<', '<')
from fast-export.
What you want to use is the author map (-A) option (Look in the
README).
Fast-export is not in the business of doing cute transformations in
order to try to guess the correct author string. The policy is to keep
things simple. If you have too many malformed identities to deal with
them manually, write an external tool which produces the author map.
from fast-export.
Won't fix
from fast-export.
Picking up this long-dead thread,
I had a similar issue parsing Mozilla's source;
a couple <<address@place>
cases and similar.
I am mirroring this code base, and in this code base I made a couple changes;
see the change log.
Open an issue here should you experience similar issues,
and link the code base you need help on.
from fast-export.
Once I searched around, I realized https://github.com/glandium/git-cinnabar handles these cases nicely,
and is a really speedy program.
I'm mirroring the code here.
from fast-export.
Related Issues (20)
- Documentation Unclear HOT 2
- export project with submodules does not contain a valid uri HOT 1
- .hgsub is still available after conversion HOT 1
- .hgignore is not replaced by .gitignore HOT 1
- Reduce repository size HOT 1
- Not all modules are defined in mapping file. HOT 2
- Commit messages are decoded as cp1252 with parameter -e utf8 HOT 1
- Yet another "cannot lock ref", mapping seems not to help HOT 2
- no difference between empty and no plugin option HOT 4
- Branch mapping not working with quotation mark HOT 6
- fast-export only converts default branch HOT 3
- Support for Python 3.12 (e.g. replace `imp` usage for Python 3 users)
- hg-fast-export.py fails due to missing hg2git module HOT 3
- Cannot execute fast export due to missing module importlib.machinery HOT 6
- Renaming files ignores file deletions HOT 1
- Importing mercurial repository fails with syntax error HOT 1
- Error -5 while decompressing data HOT 2
- Archives doesn't contain sharness folder HOT 2
- Running content filter fails, maybe because of an empty commit HOT 2
- git checkout HEAD ERROR HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fast-export.