Mercurial > hg > hg-fastimport
comparison hgfastimport/__init__.py @ 72:6b716ecb1cf3
Allow empty source argument
| author | Dennis Schridde <devurandom@gmx.net> |
|---|---|
| date | Fri, 13 Dec 2013 22:38:47 -0500 |
| parents | ae32828c68d7 |
| children | a99e5c6c8e1c |
comparison
equal
deleted
inserted
replaced
| 71:5dc3ab8142d5 | 72:6b716ecb1cf3 |
|---|---|
| 17 # produces 2 dump files) | 17 # produces 2 dump files) |
| 18 # - fastimport's dest is implicitly the current repo | 18 # - fastimport's dest is implicitly the current repo |
| 19 # | 19 # |
| 20 # So for the time being, I have copied bits of convert() over here. | 20 # So for the time being, I have copied bits of convert() over here. |
| 21 # Boo, hiss. | 21 # Boo, hiss. |
| 22 | |
| 23 if not sources: | |
| 24 sources = ("-") | |
| 22 | 25 |
| 23 # assume fastimport metadata (usernames, commit messages) are | 26 # assume fastimport metadata (usernames, commit messages) are |
| 24 # encoded UTF-8 | 27 # encoded UTF-8 |
| 25 convcmd.orig_encoding = encoding.encoding | 28 convcmd.orig_encoding = encoding.encoding |
| 26 encoding.encoding = 'UTF-8' | 29 encoding.encoding = 'UTF-8' |
