hhvm / hack-codegen

Library to programatically generate Hack code and write it to signed files
https://hhvm.github.io/hack-codegen/
MIT License
341 stars 93 forks source link

Add guidance for resolving merge conflicts for generated files #133

Open lazytype opened 4 years ago

lazytype commented 4 years ago

IIRC, Facebook has a custom merge driver for Mercurial that can automatically resolve conflicts for generated files. Before this was in place I believe one had to manually re-generate code that had conflicts. Would it be possible to:

jjergus commented 4 years ago

open source the merge driver(s)

I think the relevant code is here: https://github.com/facebookexperimental/eden/blob/master/eden/scm/edenscm/hgext/mergedriver.py

Unfortunately I can't find any good documentation, but there are some tests that can be used as examples: https://github.com/facebookexperimental/eden/search?q=mergedriver&unscoped_q=mergedriver

I agree this should be mentioned somewhere in this repository and better documented, keeping this issue open for that.

888Mouse commented 1 month ago

Hi, I am Korean. I want to work with you Please send me a message on my Telegram @z7777_88