# HG changeset patch # User mpm@selenic.com # Date 1115850871 28800 # Node ID c78eea339e8b62d5ef321c892afcaea5ccf18b2a # Parent 0cbcdb855156c2766a8b931fd6887a0de9455551 Strip trailing spaces from lsdiff file list diff -r 0cbcdb855156 -r c78eea339e8b hg --- a/hg Wed May 11 14:32:03 2005 -0800 +++ b/hg Wed May 11 14:34:31 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 = f.read().splitlines() + files = map(lambda x: x.rstrip(), f.read().splitlines()) f.close() repo.commit(repo.current, files, text)