mercurial/filemerge.py
changeset 34076 cd38b83bfb23
parent 34049 6330df9d6393
child 34122 c0ce60459d84
equal deleted inserted replaced
34075:a9d8caf95941 34076:cd38b83bfb23
   466     runs successfully. Use :forcedump to forcibly write files out.
   466     runs successfully. Use :forcedump to forcibly write files out.
   467     """
   467     """
   468     a = _workingpath(repo, fcd)
   468     a = _workingpath(repo, fcd)
   469     fd = fcd.path()
   469     fd = fcd.path()
   470 
   470 
   471     util.copyfile(a, a + ".local")
   471     util.writefile(a + ".local", fcd.decodeddata())
   472     repo.wwrite(fd + ".other", fco.data(), fco.flags())
   472     repo.wwrite(fd + ".other", fco.data(), fco.flags())
   473     repo.wwrite(fd + ".base", fca.data(), fca.flags())
   473     repo.wwrite(fd + ".base", fca.data(), fca.flags())
   474     return False, 1, False
   474     return False, 1, False
   475 
   475 
   476 @internaltool('forcedump', mergeonly)
   476 @internaltool('forcedump', mergeonly)