Show More
@@ -388,6 +388,9 b' def patch(ui, repo, patch1, *patches, **' | |||||
388 | if l[:4] == "--- ": break |
|
388 | if l[:4] == "--- ": break | |
389 | text += l |
|
389 | text += l | |
390 |
|
390 | |||
|
391 | # make sure text isn't empty | |||
|
392 | if not text: text = "imported patch %s\n" % patch | |||
|
393 | ||||
391 | f = os.popen("lsdiff --strip %d %s" % (strip, pf)) |
|
394 | f = os.popen("lsdiff --strip %d %s" % (strip, pf)) | |
392 | files = filter(None, map(lambda x: x.rstrip(), f.read().splitlines())) |
|
395 | files = filter(None, map(lambda x: x.rstrip(), f.read().splitlines())) | |
393 | f.close() |
|
396 | f.close() |
General Comments 0
You need to be logged in to leave comments.
Login now