[Windows] Learning to use Mercurial with TortoiseHg
Recently pyOT repositories were moved from SVN to Mercurial. In this tutorial I will briefly explain how to use TortoiseHg to checkout pyOT from Mercurial as well as explain how to use TortoiseHg to commit your work.
Step One: TortoiseHg
Download and Install TortoiseHg. Its a straight forward installation so there is no need for pictures.
32-bit
64-bit
Step Two: Checking Out
Making a clone of pyOT repository. In order to check out pyOT you much make a clone of it onto your local machine. This is the URL for checking out.
VAPus - Pyot
Open a new explorer window and browse to C:\ create a new folder called pyOT. Right click on the folder go to TortoiseHg and select Clone.
press clone after you put the URL into the line that says source
You must include http://
Step Three: Updating your local clone
Updating you local clone of pyOT requires two steps. First your click on your local clone of pyot. If you have been following this guide its the folder called pyOT. go to TortoiseHg and select Synchronize. Click the pull button to import updates from pyot repository.
Once you click the pull changeset a third window will appear across the bottom once it say [command completed successful (DATE)] You can close the window.
Now you must right click on the pyOT folder again. Go to TortoiseHg and select update...
When the new window pops up press update.
Step Four: Commit Your Work (for developers only)
sign up to the vapus mercurial repositories VAPus - _admin
right click on pyOT again go to tortoiseHg and select repository settings.
In the window on the left select commit on the right hand side fill out your username press okay. (you will only need to do this one time)
often Its a good idea to update your local repository before commiting changes. so repeat step three.
now right click pyOT press Hg Commit...
the window on the left displays all the files which you wish to commit. the window on the bottom shows a preview of the file with lines which have been modified. the window on the top right is where you can add comments for the commit.
right click on pyOT go to tortoiseHg select Synchronize again.
this time we will be pushing changes from your local repository to pyOT repository. click the push changeset button.
3 prompts will pop up. The first will ask you if your sure you want to push your outgoing changeset. press yes. the second prompt will ask for your username enter it and press okay. the third prompt will ask you for your password enter it and press okay again.
note: Im not a pro at using TortoiseHg or Mercurial if you find any errors please let me know about them so i can update this tutorial
No comments:
Post a Comment