![]() From here we will click on the icon, shown below to push our changes:Ĭlick yes to confirm the push, and enter the username and password for your Codebase account in the following popup windows. This will bring up a window showing our last commit, as well as the sync widget for pushing our changes to the remote repository. Once this is done, we can close the commit window, and again right click inside the repository folder, and this time select TortoiseHg -> Syncronise. In the commit window, we will confirm our changes by selecting them on the left and side, type our commit message in the right hand window, and click Commit. We will just create a simple text file, test.txt, and right click and select Hg Commit, which automatically appears when changes are detected inside the repository: Let's create a file, and make our first commit. Now we are done setting things up, we can close down the Workbench, and go back to our repository folder. Then just leave default as the Alias and click Save. We can just copy and paste that straight into the Sync widget in the centre of the Workbench, and click the floppy disk icon to save the path: We can find the repository path in the main Codebase repository page on the top right hand side: So next we need to add our remote repository from Codebase, so we can push our commits. The workbench will pop up on the screen, this time showing us our repository in an empty state. Next, navigate into the folder, right click, and select TortoiseHg -> Create Repository Here: Firstly, we will create a folder for our project, let's call it mercurial_test, and put it into the root of c: drive. Now that Mercurial knows who we are, we can create our first project. Creating our First Project and Repository Once this is done, we can close the workbench. Then under the Commit section enter our Codebase username as below, and press OK to save changes. ![]() Once we have the workbench open, click File -> Settings: We will find this under Start -> All Programs -> TortoiseHg -> TortoiseHg Workbench. To do this, we need to go to our Workbench. Now that we have installed TortoiseHg, we need to be able to identify ourselves, so that when we commit and push to the repository, anyone else in our team knows who is responsible for any code changes. Run the installer, and ignore the message for restarting the PC once it has finished this is not necessary. Firstly, we need to visit the main downloads page, and choose the appropriate 32 or 64 bit release, found at the top of the page. We will be using TortoiseHg in this instance, which is a nice all in one client. In this guide, we will be looking at installing a Mercurial UI client, so we can checkin and commit from Windows straight to our Codebase account. ![]() You may wish to use Mercurial via a command line interface, or via a UI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |