commit to the wrong branch what to do

Andreas Tscharner andy at vis.ethz.ch
Thu Sep 1 09:23:39 UTC 2016


On 01.09.2016 11:16, Uwe Brauer wrote:
>
> Hi
>
> Most likely this sometimes happens:
> I added, removed, edited and then commit, but alas to the wrong branch.
> What is the most efficient way to solve this issue?

I would have taken
hg graft
and afterwards deleted/reverted the commit on the wrong branch

hg help graft:
copy changes from other branches onto the current branch

Best regards
	Andreas
-- 
       ("`-''-/").___..--''"`-._
        `o_ o  )   `-.  (     ).`-.__.`)
        (_Y_.)'  ._   )  `._ `. ``-..-'
      _..`--'_..-_/  /--'_.' .'
     (il).-''  (li).'  ((!.-'

Andreas Tscharner   andy at vis.ethz.ch   ICQ-No. 14356454



More information about the Mercurial mailing list