Only use this technique for local commits. See previous section for undoing the changes to your working copy. Notice that this will only undo the committing action. $ hg rollback # roll back the last transaction To deal with typos in the commit log or similar, do: In case you want to undo a local commit, e.g. $ hg revert -a # undo all uncommitted changes to all files. $ hg revert somefile # undo uncommitted changes to this file You can undo all uncommitted changes by doing: This will also use the identity that you specified in your config file. ![]() This will open the text editor that you specified in your config file. # if you want to commit only the local directory # even if you are in a sub-directory (this is not as SVN does) $ hg commit # take care, this will commit changes for the whole repository $ hg diff # show differences that are to be committed $ hg status # see what files are affected $ hg add # Put a file under revision control $ hg branches # show the list of branchesįirst of all, make sure you have put any new files under revision control: $ hg branch # show the name the current branch Pretxncommit.crlf = python:īy default, what you now see is the development branch, called the 'default branch'. In the end you should be adding something like this to your config file: In order to deal with Windows end-of-line encoding, please follow these instructions. Will be used to credit you, and contact you in case of a problem.
0 Comments
Leave a Reply. |
AuthorAndrew ArchivesCategories |