Skip to content

Instantly share code, notes, and snippets.

@beger
Last active November 30, 2016 10:28
Show Gist options
  • Select an option

  • Save beger/90f9642182ae77c19d5b4725f566b021 to your computer and use it in GitHub Desktop.

Select an option

Save beger/90f9642182ae77c19d5b4725f566b021 to your computer and use it in GitHub Desktop.
My list of mercurial commands that were useful in the past
# revert a merge (1784 is the merge, 1780 is its parent in the current branch)
hg backout --rev=1784 --parent=1780
# Branch mit anderem Branch überschreiben
hg update -C Zielbranch
hg -y merge --tool internal:fail Quellbranch
hg revert --all --no-backup -r Quellbranch
hg resolve --all --mark
hg commit -m "revert and merge updating <Zielbranch> to current <Quellbranch>"
# Einen bereits gemergten und dann reverteten Branch erneut nach development mergen
# Mercurial-Extension benötigt!
# Dieses Vorgehensmodell erfordert die aktivierte Transplant-Extension.
hg branch feature/<NEUE ID>
hg up feature/<NEUE ID>
hg transplant -b feature/<ALTE ID>
hg up development
hg merge feature/<NEUE ID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment