diff 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
line wrap: on
line diff
--- a/hgfastimport/__init__.py	Thu May 17 23:55:40 2012 +0200
+++ b/hgfastimport/__init__.py	Fri Dec 13 22:38:47 2013 -0500
@@ -20,6 +20,9 @@
     # So for the time being, I have copied bits of convert() over here.
     # Boo, hiss.
 
+    if not sources:
+        sources = ("-")
+
     # assume fastimport metadata (usernames, commit messages) are
     # encoded UTF-8
     convcmd.orig_encoding = encoding.encoding