Remove clean outgoing change from mercurial hg

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

See how you would solve these known algorithm problems

testing k complementary pairs algorithm with junit

Implement Queue Using two Stacks – JavaScript algorithm

Find the first occurence of number in the sorted array

Find K Complementary numbers from array Java implementation

Check if there are three numbers a, b, c giving a total T from array A

Get maximum occurring character

binary tree problems with solution

Check if two strings are anagrams or not

Finding missing numbers from billion sequential number list file

find longest word in the sentence

5 Comments
  1. outlook mail

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

  2. Rahul

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

  3. 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.

  4. Anil

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

    1. gulleman

      Thanks Anil, I am glad it help you..

Leave a Reply to outlook mail Cancel reply

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

*
*