diff -r 61414da06fe5 -r 273f6a01d18b mercurial/commands.py --- a/mercurial/commands.py Fri Jun 10 13:48:08 2005 -0800 +++ b/mercurial/commands.py Fri Jun 10 14:10:07 2005 -0800 @@ -388,6 +388,9 @@ if l[:4] == "--- ": break text += l + # make sure text isn't empty + if not text: text = "imported patch %s\n" % patch + f = os.popen("lsdiff --strip %d %s" % (strip, pf)) files = filter(None, map(lambda x: x.rstrip(), f.read().splitlines())) f.close()