Mercurial > hg > pyhgsh
comparison hg @ 53:9f3097864c35
Drop empty lines from lsdiff
author | mpm@selenic.com |
---|---|
date | Wed, 11 May 2005 14:36:17 -0800 |
parents | c78eea339e8b |
children | b24731008221 |
comparison
equal
deleted
inserted
replaced
52:c78eea339e8b | 53:9f3097864c35 |
---|---|
153 text += l | 153 text += l |
154 | 154 |
155 if os.system("patch -p%d < %s %s" % (strip, pf, quiet)): | 155 if os.system("patch -p%d < %s %s" % (strip, pf, quiet)): |
156 raise "patch failed!" | 156 raise "patch failed!" |
157 f = os.popen("lsdiff --strip %d %s" % (strip, pf)) | 157 f = os.popen("lsdiff --strip %d %s" % (strip, pf)) |
158 files = map(lambda x: x.rstrip(), f.read().splitlines()) | 158 files = filter(map(lambda x: x.rstrip(), f.read().splitlines())) |
159 f.close() | 159 f.close() |
160 repo.commit(repo.current, files, text) | 160 repo.commit(repo.current, files, text) |
161 | 161 |
162 elif cmd == "status": | 162 elif cmd == "status": |
163 (c, a, d) = repo.diffdir(repo.root, repo.current) | 163 (c, a, d) = repo.diffdir(repo.root, repo.current) |