Fix lsdiff filtering
authormpm@selenic.com
Wed, 11 May 2005 14:37:23 -0800
changeset 54 b24731008221
parent 53 9f3097864c35
child 55 2add70d51441
Fix lsdiff filtering
hg
--- a/hg	Wed May 11 14:36:17 2005 -0800
+++ b/hg	Wed May 11 14:37:23 2005 -0800
@@ -155,7 +155,7 @@
         if os.system("patch -p%d < %s %s" % (strip, pf, quiet)):
             raise "patch failed!"
         f = os.popen("lsdiff --strip %d %s" % (strip, pf))
-        files = filter(map(lambda x: x.rstrip(), f.read().splitlines()))
+        files = filter(None, map(lambda x: x.rstrip(), f.read().splitlines()))
         f.close()
         repo.commit(repo.current, files, text)