mercurial - How to merge a reverted change? -


i have following situation, big change pushed main branch mistake (it should have been pushed new branch). searching internet (mainly so) suggested way undo reverting previous revision, did that. started new branch revision posted main 1 mistake.

now problem can't merge main branch , new branch because causes many of necessary files new branch deleted. there way keep files new branch while merging main one?

? |\ e f | | c d |/ b | 

a,b,c,e - main branch

d,f - other branch based on revision b

c - reverting b a

? - want keep changes d,f branch, can't because reverted of them in revision c

i assume instead of 'revert', mean 'backout'? assuming 'c' backout of 'b'?

what following:

  1. backout 'c' again. 'backout backout', restore contents of 'b' (you may need bit of merging here).
  2. after doing backout of 'c', should able merge new branch.

Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -