flow icon indicating copy to clipboard operation
flow copied to clipboard

Improve the 'sync changes to upstream' process to respect internal commits

Open tcoopman opened this issue 11 years ago • 9 comments

At the moment the 'sync changes to upstream' process syncs all internal facebook commits in one commit on github (for example https://github.com/facebook/flow/commit/63f049dfafe4a53fa1d4875150c88bc7d7efab3f). This makes it quite hard to track what has been fixed and thus, what bugs to close, and what to change in the documentation.

It would be nice if you could keep the commit history when syncing to github. It would be easier for external people to follow what's going on and to help with the development, documentation and bug tracking.

tcoopman avatar Dec 04 '14 10:12 tcoopman

cc @zpao maybe it's possible to reuse your sync script from React

vjeux avatar Dec 04 '14 10:12 vjeux

We also do this for https://github.com/facebook/hhvm so someone must know how to do this. @dsereni have you looked into this?

gabelevi avatar Dec 04 '14 17:12 gabelevi

This is definitely intended to be temporary, and I want to get something in place that (a) is safer and (b) preserves history. It's just work :-). The existing automation used by hhvm doesn't work out of the box so we'll need to build something on our side. Not a huge effort but just haven't had time to get to it yet.

dsereni avatar Dec 04 '14 17:12 dsereni

I use my script for jstransform too so it's definitely possible (if tedious at times).

zpao avatar Dec 04 '14 18:12 zpao

:+1: Would be awesome!

ptmt avatar Dec 16 '14 04:12 ptmt

Alright, we're starting to sync individual commits! Right now it only happens when I run the script, but the next step is to automate that so it syncs in real time.

Note that since we vendor in hack, we're also syncing all of their commits (mirroring https://github.com/facebook/hhvm/tree/master/hphp/hack/src)

mroch avatar May 07 '15 20:05 mroch

Awesome! This calls for a celebratory firestorm of commits.

bhosmer avatar May 07 '15 20:05 bhosmer

cc @dsp

vjeux avatar May 07 '15 20:05 vjeux

This has been working very well for a while now. This issue can be closed :)

samwgoldman avatar Jun 23 '15 05:06 samwgoldman