changeset 72:6b716ecb1cf3

Allow empty source argument
author Dennis Schridde <devurandom@gmx.net>
date Fri, 13 Dec 2013 22:38:47 -0500
parents 5dc3ab8142d5
children a99e5c6c8e1c
files hgfastimport/__init__.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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