Let's say I just sent my file to Mercurial with a description, for example, "deleted all unnecessary comments." After a few minutes, I realize that I forgot to delete some comments of this kind. I would like to be able to update this commit, which I made a few minutes ago, instead of making a new one.
Is it possible to do something like this?
Assuming you haven't clicked or committed any commits, you can just use hg rollback.
hg rollback
MQ . , , , , "" / , .
, :
$ hg qimport -r tip $ hg qrefresh -e # edit commit message $ hg qfinish -a
histedit .
MQ, , , , hg histedit REV, rev , , . histedit , , hg histedit --continue. , , .
hg histedit REV
hg histedit --continue
, .
Source: https://habr.com/ru/post/1779376/More articles:How to analyze heap dump using jhat - javaFormsAuthentication.SignOut () using javascript - javascriptSQL: setting condition on the result of an aggregate function - phpDynamically add a stylized tag to an ASP.Net web page - htmlHow to set Chinese character binding file name in C # SmtpClient programming? - c #Select all columns except those that have only null values ââ- sql.net naming convention: is there a semantic difference between length and graph? - .netPartitioning a query by JPA 2 criteria - javaHow to deserialize a soap reaction using multiref in .net? - xml-deserializationInnoSetup Cannot Find My Documents in Win XP Installed on Mac Parallels - windowsAll Articles