git - Mercurial: Back out public changesets and reapply to new public branch? -


we're using kiln , fogbugz; kiln supposed seamlessly allow git , hg work together. however, we've run issue git branches treated bookmarks in mercurial; didn't catch in our repo until changes had been pushed, , branches bit polluted.

i have public changesets in our default branch should in custom branch. can them out, need reapply them other public branch. i'm worried rebasing because these public changes.

what's best way handle situation?

edit: thought might able convert changesets patch using mercurial queues, changesets aren't mutable since they're public. can't hg strip similar reasons.

in mercurial, use hg graft copy (also called cherry pick) changesets 1 place another. used backport bugfix maintenance branch when bugfix committed on wrong branch accident.

you use this:

$ hg update correct-branch $ hg graft your-commit 

this recreate your-commit child of correct-branch, importing your-commit mq, popping patch, updating correct-branch , pushing patch. advantage of graft use three-way merges internally give better conflict resolution. same way hg rebase works.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -