hgext/fix.py
changeset 41777 c3a249c2b6b3
parent 41126 d8f5c615e811
child 41994 550a172a603b
equal deleted inserted replaced
41776:322ce0bca19d 41777:c3a249c2b6b3
   599 
   599 
   600     def filectxfn(repo, memctx, path):
   600     def filectxfn(repo, memctx, path):
   601         if path not in ctx:
   601         if path not in ctx:
   602             return None
   602             return None
   603         fctx = ctx[path]
   603         fctx = ctx[path]
   604         copied = fctx.renamed()
   604         copied = fctx.copysource()
   605         if copied:
       
   606             copied = copied[0]
       
   607         return context.memfilectx(
   605         return context.memfilectx(
   608             repo,
   606             repo,
   609             memctx,
   607             memctx,
   610             path=fctx.path(),
   608             path=fctx.path(),
   611             data=filedata.get(path, fctx.data()),
   609             data=filedata.get(path, fctx.data()),