Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/merge.py @ 34054:65ae54582713
merge: move some of the logic in batchget() to workingfilectx
We will use this logic in two places with in-memory merge.
Differential Revision: https://phab.mercurial-scm.org/D444
author | Phil Cohen <phillco@fb.com> |
---|---|
date | Thu, 31 Aug 2017 11:28:59 -0700 |
parents | 055fee3547df |
children | c0ce60459d84 |
comparison
equal
deleted
inserted
replaced
34053:fe04c018eaac | 34054:65ae54582713 |
---|---|
1148 if repo.wvfs.isfileorlink(f): | 1148 if repo.wvfs.isfileorlink(f): |
1149 util.rename(absf, orig) | 1149 util.rename(absf, orig) |
1150 except OSError as e: | 1150 except OSError as e: |
1151 if e.errno != errno.ENOENT: | 1151 if e.errno != errno.ENOENT: |
1152 raise | 1152 raise |
1153 | 1153 wctx[f].clearunknown() |
1154 if repo.wvfs.isdir(f) and not repo.wvfs.islink(f): | |
1155 repo.wvfs.removedirs(f) | |
1156 wctx[f].write(fctx(f).data(), flags, backgroundclose=True) | 1154 wctx[f].write(fctx(f).data(), flags, backgroundclose=True) |
1157 if i == 100: | 1155 if i == 100: |
1158 yield i, f | 1156 yield i, f |
1159 i = 0 | 1157 i = 0 |
1160 i += 1 | 1158 i += 1 |