How to remove accidental branch in TortoiseHg?

Posted by msorens on Stack Overflow See other posts from Stack Overflow or by msorens
Published on 2010-06-03T04:03:05Z Indexed on 2010/06/03 4:04 UTC
Read the original article Hit count: 366

Filed under:
|

(I am a relative newcomer to TortoiseHg, so bear with me :-) I use TortoiseHg on two machines to talk to my remote source repository. I made changes on one machine, committed them, and attempted to push them to the remote repository BUT I forgot to first do a pull to get the latest code first. The push gave me a few lines of output, suggesting I may have forgotten to pull first (true!) and mentioned something like "abort: push creates new remote branches...".

So I did a pull, which added several nodes to the head of my graph in the repository explorer. The problem is that the push I tried to do is now showing as a branch in the repository explorer. Looking from the server side (codeplex), it shows no sign of my attempted push, indicating this accidental branch is still local on my machine.

How could I remove this accidental branch? I tried selecting that node in the graph then doing "revert" but it did not seem to do anything. I am wondering if it would be simplest to just discard my directory tree on my local machine and do a completely new, clean pull from the server...?

© Stack Overflow or respective owner

Related posts about mercurial

Related posts about tortoisehg