changeset 52:c78eea339e8b

Strip trailing spaces from lsdiff file list
author mpm@selenic.com
date Wed, 11 May 2005 14:34:31 -0800
parents 0cbcdb855156
children 9f3097864c35
files hg
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)