OGRE Wiki
Support and community documentation for Ogre3D
Ogre Forums
ogre3d.org
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 year)
Log in
Home
Tutorials
Tutorials Home
Basic Tutorials
Intermediate Tutorials
Mad Marx Tutorials
In Depth Tutorials
Older Tutorials
External Tutorials
Cookbook
Cookbook Home
CodeBank
Snippets
Experiences
Ogre Articles
Libraries
Libraries Home
Alternative Languages
Assembling A Toolset
Development Tools
OGRE Libraries
List of Libraries
Tools
Tools Home
DCC Tools
DCC Tutorials
DCC Articles
DCC Resources
Assembling a production pipeline
Development
Development Home
Roadmap
Building Ogre
Installing the Ogre SDK
Setting Up An Application
Ogre Wiki Tutorial Framework
Frequently Asked Questions
Google Summer Of Code
Help Requested
Ogre Core Articles
Community
Community Home
Projects Using Ogre
Recommended Reading
Contractors
Wiki
Immediate Wiki Tasklist
Wiki Ideas
Wiki Guidelines
Article Writing Guidelines
Wiki Styles
Wiki Page Tracker
Ogre Wiki Help
Ogre Wiki Help Overview
Help - Basic Syntax
Help - Images
Help - Pages and Structures
Help - Wiki Plugins
Toolbox
Freetags
Categories
List Pages
Structures
Trackers
Statistics
Rankings
List Galleries
Ogre Lexicon
Comments
History: Getting Sources With TortoiseHG
View page
Source of version: 6
(current)
This page is a quick and dirty guide to getting the OGRE sources with tortoisehg, a windows mercurial client. It is a quick guide, and is not meant to replace the [http://www.ogre3d.org/developers/mercurial|mercurial information page] and the [http://www.ogre3d.org/docs/OGREDeveloperGuide.html|OGRE developer guide]. {maketoc} !!Getting the sources for the first time !!!Get tortoisehg Download the client from http://tortoisehg.bitbucket.org and install it. !!!Configure tortoise hg After installation, right click in a {MONO()}windows folder -> tortoisehg -> Global Settings -> Click "Edit file"{MONO}, and paste these contents to it : {CODE(wrap="1", colors="ini")}[extensions] progress= rebase= transplant= hgext.win32text= [diff] git = True [ui] username = Your Name <youraddress@domain.org> [encode] ** = cleverencode: [decode] ** = cleverdecode: [hooks] # Reject commits which would introduce windows-style text files pretxncommit.crlf = python:hgext.win32text.forbidcrlf [tortoisehg] postpull = rebase{CODE} (If using a fresh install, the only line in the file should be {MONO()}# Generated by tortoisehg-config{MONO} ) !!!Getting the ogre sources Right click in a {MONO()}folder -> tortoisehg -> clone repository{MONO}. Source path should be {MONO()}http://bitbucket.org/sinbad/ogre{MONO} , and it will get checked out to the dest dir. !!Other operations You now have the OGRE sources checked out! Here are some additional operations you might want to do : !!!Switching to a different branch {MONO()}tortoisehg context menu -> update -> select desired branch in menu{MONO}. (For example, 1-7, 1-6 etc). You can also easily have multiple branches on your computer. After fetching the code once, you can use the local path of the ogre sources as the source directory for your next clone. Clone the repository somewhere else (using the destination path of the first checkout as the source path), then switch to the desired branch in the new directory. It will greatly reduce the amount of data you have to fetch from the ogre servers. If you do this, you might want to make the second clone independent of the first. To do that, go to {MONO()}Context Menu -> Repository Settings -> Synchronize (from left menu list) -> Set the default repository path to ~np~http://bitbucket.org/sinbad/ogre/~/np~{MONO} (or whichever connection mode you're using). !!!Creating a patch The Commit action is different in mercurial. It does not automatically upload things to the server. To create a patch of your local change, first commit it into your local repository. Next, open the repository explorer ({MONO()}context menu -> Hg Repository Explorer{MONO}), right click the changeset you wish to create a patch from, and select {MONO()}Export -> Export Patch{MONO} : {img fileId="1678" width=450 thumb="y" alt="" rel="box[g]"} !!!Applying a patch In the same repository explorer, select '{MONO()}Import{MONO}' from the '{MONO()}Synchronize{MONO}' menu and point to the patch. You will then have an opportunity to commit it into your local repo. TODO : continue and maybe add more images.
Search by Tags
Search Wiki by Freetags
Latest Changes
IDE Eclipse
FMOD SoundManager
HDRlib
Building Ogre V2 with CMake
Ogre 2.1 FAQ
Minimal Ogre Collision
Artifex Terra
OpenMB
Advanced Mogre Framework
MogreSocks
...more
Search
Find
Advanced
Search Help
Online Users
100 online users