by guard-of-terra · 14y ago · 0 comments
"it's pretty easy to hg diff your change to a file, switch branches, and then use the GNU patch command to apply your changes on top again" It feels like mercurial developers wanted to inflict pain on me, and makes me want to hurt them in return. See, it's three steps. It's four actually, because you also want to delete the diff file.
You know how many steps did it take in SVN? Zero. When you switched branch, it just preserved all your changes and applied those back. You didn't have to do anything.
Maybe it didn't work when there was a conflict - once per 100 switches. But mercurial won't let you do that - that's 100 per 100 switches.
hg update <branchname>
will do exactly what you want. It's even the same command as in SVN.do
hg update default
get:
abort: crosses branches (merge branches or use --clean to discard changes)
So?