![]() ![]() This will remove any local changes you may have made is completely replace them with what's in the branch Discard local changes – don’t leave this checked unless you mean it.NOTE: there are a couple of advanced options: This is pretty straight forward, just select the branch/tag you want to work from and click Update. The update dialog is a quick way to update your working copy to the latest revision of a specific branch or tag. Once the clone is complete, you can either use the Update context menu option, or use the Repository Explorer. In this example, we’ll update our working copy manually since there’s a few active branches in the Umbraco codebase and we’re not sure which one the ‘Tip’ will be. This can be useful if you want to clone a repository but have your working copy updated to a specific revision or branch. ![]() ![]() Once you clone the source, this will automatically update your latest working folder the the ‘Tip’ which is the latest committed change set in the repository, however there’s an option listed on the Clone dialog to disable this behavior if you don’t want that to occur (as seen above). ![]() The only thing that is required to clone the repository is to enter the source address, as seen below: Once your folder is created, right click –> TortoiseHg –> Clone… This might sound like a lot but when dealing with blocks of code, it's generally relatively small (NOTE: there are extensions and tricks in Mercurial that allow you to not have to clone the entire repository, but we’ll let you research those! ). This will download all changesets, branches, tags, etc…. Since Mercurial is a DVCS you need to actually download the entire repository (aka CLONE). Ok, time to get the code! First thing is to create a folder where you want to store the repository. This is also the name that will be associated to any change sets that you commit. Once you install a default diff tool it should show up in the drop down lists for: Three-way Merge Tool and Visual Diff Tool Set your default usernameĪgain, you don’t have to do this but since my username for most of the Mercurial accounts is the same, I set it here. I’m currently a fan of DiffMerge which is an awesome free diff tool that does both file and folder diffs, plus it looks nice and is extremely simple to use. This is my own personal preference, but the default diff tool is called KDiff3 which I find horribly ugly and difficult to use… up to you though. Here’s some defaults that I recommend setting up on a Global level: Change the default Diff tool Global settings can be found by right clicking a folder –> TortoiseHg –> Global Settings If this is the first time you’ve used TortoiseHg, then it might be a good time to set up some global defaults: An important thing to note about TortoiseHg is that there’s settings, both on a global level and on a repository level. TortoiseHG, like TortoiseSVN, is an application that is accessed by a context menu in Windows Explorer. If you are familiar with TortoiseSVN then this should seem reasonably similar to that. So first thing is first, make sure you download these 2 applications and get them installed. This post is going to show you how to get up and running quickly with Mercurial and the Umbraco source using 2 UI tools: TortoiseHg and VisualHg.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |