Show More
@@ -743,8 +743,7 b' def _makebackup(repo, ui, wctx, fcd, pre' | |||
|
743 | 743 | # TODO: Break this import cycle somehow. (filectx -> ctx -> fileset -> |
|
744 | 744 | # merge -> filemerge). (I suspect the fileset import is the weakest link) |
|
745 | 745 | from . import context |
|
746 | a = _workingpath(repo, fcd) | |
|
747 | back = scmutil.origpath(ui, repo, a) | |
|
746 | back = scmutil.backuppath(ui, repo, fcd.path()) | |
|
748 | 747 | inworkingdir = (back.startswith(repo.wvfs.base) and not |
|
749 | 748 | back.startswith(repo.vfs.base)) |
|
750 | 749 | if isinstance(fcd, context.overlayworkingfilectx) and inworkingdir: |
@@ -764,6 +763,7 b' def _makebackup(repo, ui, wctx, fcd, pre' | |||
|
764 | 763 | if isinstance(fcd, context.overlayworkingfilectx): |
|
765 | 764 | util.writefile(back, fcd.data()) |
|
766 | 765 | else: |
|
766 | a = _workingpath(repo, fcd) | |
|
767 | 767 | util.copyfile(a, back) |
|
768 | 768 | # A arbitraryfilectx is returned, so we can run the same functions on |
|
769 | 769 | # the backup context regardless of where it lives. |
General Comments 0
You need to be logged in to leave comments.
Login now