I'm new to collaborating with Mercurial. My situation:
hg pull
ed and hg merge
d without a clear idea of what was going on.So I really wish I'd changed my local repo to 2-space indents before merging; then the merge will be trivial (i'm supposing). But I can't seem to back up. I think I need to hg update -r 3
but it says abort: outstanding uncommitted merges
.
How can I undo the merge, changes spacing in my local repo, and remerge?
Backout works by applying a changeset that's the opposite of the changeset to be backed out. That new changeset is committed to the repository, and eventually merged.
To merge two branches, you pull their heads into the same repository, update to one of them and merge the other, and then commit the result once you're happy with the merge.
BTW: if you just revert the merge you did and 3 is not your revision number you can do this:
hg update -C -r .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With