equal
deleted
inserted
replaced
1107 dst = os.path.join(repo.root, gp.path) |
1107 dst = os.path.join(repo.root, gp.path) |
1108 # patch won't create empty files |
1108 # patch won't create empty files |
1109 if ctype == 'ADD' and not os.path.exists(dst): |
1109 if ctype == 'ADD' and not os.path.exists(dst): |
1110 repo.wwrite(gp.path, '', flags) |
1110 repo.wwrite(gp.path, '', flags) |
1111 else: |
1111 else: |
1112 util.set_flags(dst, flags) |
1112 util.set_flags(dst, 'l' in flags, 'x' in flags) |
1113 cmdutil.addremove(repo, cfiles) |
1113 cmdutil.addremove(repo, cfiles) |
1114 files = patches.keys() |
1114 files = patches.keys() |
1115 files.extend([r for r in removes if r not in files]) |
1115 files.extend([r for r in removes if r not in files]) |
1116 files.sort() |
1116 files.sort() |
1117 |
1117 |