Show More
@@ -369,6 +369,9 def updatedir(ui, repo, patches, wlock=N | |||||
369 | if gp and gp.mode: |
|
369 | if gp and gp.mode: | |
370 | x = gp.mode & 0100 != 0 |
|
370 | x = gp.mode & 0100 != 0 | |
371 | dst = os.path.join(repo.root, gp.path) |
|
371 | dst = os.path.join(repo.root, gp.path) | |
|
372 | # patch won't create empty files | |||
|
373 | if ctype == 'ADD' and not os.path.exists(dst): | |||
|
374 | repo.wwrite(gp.path, '') | |||
372 | util.set_exec(dst, x) |
|
375 | util.set_exec(dst, x) | |
373 | cmdutil.addremove(repo, cfiles, wlock=wlock) |
|
376 | cmdutil.addremove(repo, cfiles, wlock=wlock) | |
374 | files = patches.keys() |
|
377 | files = patches.keys() |
General Comments 0
You need to be logged in to leave comments.
Login now