Show More
@@ -1039,9 +1039,12 def applydiff(ui, fp, changed, strip=1, | |||
|
1039 | 1039 | continue |
|
1040 | 1040 | elif state == 'git': |
|
1041 | 1041 | gitpatches = values |
|
1042 | cwd = os.getcwd() | |
|
1042 | 1043 | for gp in gitpatches: |
|
1043 | 1044 | if gp.op in ('COPY', 'RENAME'): |
|
1044 | copyfile(gp.oldpath, gp.path) | |
|
1045 | src, dst = [util.canonpath(cwd, cwd, x) | |
|
1046 | for x in [gp.oldpath, gp.path]] | |
|
1047 | copyfile(src, dst) | |
|
1045 | 1048 | changed[gp.path] = (gp.op, gp) |
|
1046 | 1049 | else: |
|
1047 | 1050 | raise util.Abort(_('unsupported parser state: %s') % state) |
General Comments 0
You need to be logged in to leave comments.
Login now