mercurial - how do I push most recent commit in HG -


i have done local commits.

but want push recent ones 4977 , 4978 excluding previous ones.

4948 local commit 1 ancestor of commits 

can 1 tell how in hg

4978 local commit 4   |   |   | 4977 local commit 3   |   |   | 4976 local commit 2   |   |   | 4948  local commit 1 

mercurial repositories intended have immutable histories, out of box not possible. however, there workarounds this.

possibly easiest way achieve histedit extension. need enable modifying .hgrc (or mercurial.ini) following

[extensions] histedit =  

then can run histedit subcommand command line , tell far changeset you're concerned about...

hg histedit 4948 

this pop text editor word pick next each changeset. change pick drop changeset don't want more, save, , exit, , problem changeset gone.

note remove changeset local repo, in addition prevent being pushed remote!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -