2011-01-03 16 views
9

Genel bir depoda taahhüt var. Bu taahhüdün orada olmamasını istiyorum (bu işi bir şubeye taşıdım), açıkçası şube tarihini yok etmek istemiyorum, temelde sadece bu işlemin tersini yapmak. GIT'de bu sadece git revert, ama budala :)hg equivalant git revert

cevap

14

hg backout

hg backout [seçenek] kullanmıyorum ... [-r] REV

önceki Changeset

ait

ters etki

Commit the backed out changes as a new changeset. The new 
changeset is a child of the backed out changeset. 

If you backout a changeset other than the tip, a new head is 
created. This head will be the new tip and you should merge this 
backout changeset with another head.