# HG changeset patch # User Dennis Schridde # Date 1386992327 18000 # Node ID 6b716ecb1cf3b6e6525c2fa4f47c22a090b52f5a # Parent 5dc3ab8142d567e34c04c865bfab0f93bddb7517 Allow empty source argument diff -r 5dc3ab8142d5 -r 6b716ecb1cf3 hgfastimport/__init__.py --- 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