Remove clean outgoing change from mercurial hg

How to clear outgoing change from repository that are listed when you do hg o or hg outgoing

In this case using the hg strip will be the solution.

To use hg strip you need to install the extension mq, to install that:

Assuming you are on ubuntu/linux desto

1. go to /home/USER/

2. open .hgrc

3. under the [extensions] add mq =

Say you have two outgoing changes with revison rev1 and rev2.

If you want to get rid of rev2 then being on the repository do:


hg strip rev2

That would remove the outgoing revision from the repository and you can push only the desired revision change

5 Comments

    outlook mail

    “Very good blog, I will recommend to my friends that always visit and has very interesting things.”

    Rahul

    It is really a nice share. I have been looking for this to know from long. Thank you for sharing

    Ronald Ellard

    Nice post! I having been meaning to make more time available to engage in discussion rather than just blogging away on my own.

    Anil

    Nice Post mate, I will bookmarkt it for further updates. Thank You. Cheers

      gulleman

      Thanks Anil, I am glad it help you..

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*