hg log - List the log of changes to the repository.hg diff - List/export a diff patch of the current uncommitted repository changes to STDOUT.hg status - List the status of all files in the repository (that have outstanding uncommitted changes).hg tag TAG - Label the current revision of the repository with the tag TAG.hg tags - List all tags in the repository.hg revert FILE - Revert the contents of FILE (or restore them if the file has been deleted) to the current revision.hg remove FILE - Remove a file currently under source control and delete the local copy.hg rename SOURCE DEST - Move/rename a file currently under source control.Mercurial will warn you if this is the case. NOTE: You may need to run hg pull and hg merge if remote changes have been pushed by someone else, so as to not create a new branch. hg push - Push all local changes to the remote (DIG) repository.hg commit -m MESSAGE - Commit the changes to your local repository.hg add FILE - Add any newly created files to the repository.Write and run any necessary tests, and documentation, and make sure that any code or documentation will be correctly created.Make any necessary changes to the code (preferably addressing one problem/feature at a time. ![]() ![]() Updating these repositories may be done using the HgExternals plugin and using this command. hg externals - For some repositories (specifically the aintno repository), there is a dependency on external repositories.In these cases, you will need to manually merge the conflicting files and then run hg resolve -m FILE to mark the file as resolved. NOTE: You may get messages about unresolved conflicts. hg update - Update the local repository to include the latest updates.hg pull - Pull the latest Mercurial updates from the server to the local repository.Once you have cloned the repository, the general workflow below should be sufficient for getting and pushing new updates to/from the remote repository. aintno) and check out the most recent revision of the remote repository into that directory. This will automatically create a new directory named after the last element in the path (e.g. If you wish to start work on an existing repository (such as one of the ones at ), simply call hg clone URL, where URL is the URL of the particular repository (e.g. (Installation on Unix-based systems may be done using setup.py in the distribution). Some repositories make use of the HgExternals plugin, which should be installed prior to use. Windows users will probably find TortoiseHg to be helpful, due to its Explorer integration. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |