comparison hgsubversion/replay.py @ 1549:8410a978c650

compathacks: be compatible with upstream 8a0cac20a1ad memfilectx change See hg change 8a0cac20a1ad. Since the interface has changed more than one time, switch to explicit keywords arguments to avoid surprises. Since hgsubversion targets hg >= 3.2.4, drop support for hg 3.0 and 3.1 here.
author Jun Wu <quark@fb.com>
date Tue, 19 Dec 2017 14:29:55 -0800
parents d03995e69785
children cff81f35b31e
comparison
equal deleted inserted replaced
1548:7f83be82d03f 1549:8410a978c650
172 ui.debug('file marked as link, but may contain data: ' 172 ui.debug('file marked as link, but may contain data: '
173 '%s\n' % current_file) 173 '%s\n' % current_file)
174 else: 174 else:
175 data = parentctx.filectx(path).data() 175 data = parentctx.filectx(path).data()
176 return compathacks.makememfilectx(repo, 176 return compathacks.makememfilectx(repo,
177 memctx=memctx,
177 path=path, 178 path=path,
178 data=data, 179 data=data,
179 islink=islink, 180 islink=islink,
180 isexec=isexec, 181 isexec=isexec,
181 copied=copied) 182 copied=copied)