![]() |
Latest Supported Client Versions TrinityZero : 1.12.1 Active TrinityCore-old : 2.4.3 Inactive TrinityCore : 3.3.2 Active development |
|
|
||||||
| Releases and Announcements Where to get the code, and major announcements. |
News & Announcements
|
Hi Unregistered, Welcome to Trinity Core Forum
|
| Attention Visitor: |
| You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
![]() |
|
|
Thread Tools |
|
#1
|
||||
|
||||
|
Windows :
Install tortoisehg from http://tortoisehg.bitbucket.org/ ![]() Right click anywhere shows u the HG context menu. ![]() click on clone repo ![]() Fill in the repo and a location you want it to be setup in. (the folder must not exist on your local system) Repo : https://bitbucket.org/KingPin/trinitycore ![]() Click close once its done. ![]() look in the folder and you will see something very similar to svn. ![]() you can do various things with HG once the sources are downloaded in order highlighted in above picture :
one thing I didnt mention in the above list is the webserver option. It allows u to create a great looking repo page for your local repo o any port of your choosing. pictures below. ![]() ![]() for 64bit windows : http://stackoverflow.com/questions/3...e-context-menu ![]() click on commit ![]() Remember this is a local commit and isnt going to master. this is a change to your local repo. (so u can maintain your own repo and even share with others :) ) ![]() clicking outgoing will show u the changes that will be made. clicking push will push them to master (if u have permission) clicking email will email the patch to whomever u want to email it to. ![]() ![]() use the view changelog window to compare/check/view source changes. and also here uc an make patches via right clicking a rev. show me one person who doesnt think this is a better patching method than svn and I will show u one person who cant see. ![]() ![]() how to setup gmail as your smtp server so u can use it to email patches? Code:
Server name: smtp.gmail.com Port: 587 Enable TLS : true username : yourname@gmail.com pass : yourpass Below section Added 11/21/08 ![]() Win32 line endings Goto c:\Program Files\TortoiseHg and edit Mercurial.ini and remove ; from in front of the following. add any lines that dont exist : Quote:
this will make sure you get windows line endings when u checkout. this isn't perfect but its better than mix and match.
__________________
Last edited by KingPin; 01-21-2010 at 06:07 PM. |
| The Following 59 Users Say Thank You to KingPin For This Useful Post: | ||
1hottee (06-10-2009), 38462410 (12-11-2008), antonidas (02-18-2009), Anubisss (05-23-2009), Arhangeldie (02-26-2009), AwsmSteve (02-07-2009), Bale (06-06-2009), Banner44 (07-22-2009), Biglad (02-06-2009), BlindGuardian (11-20-2008), burner (11-12-2008), cloudycliff (11-12-2008), Deake (11-12-2008), Dealer (11-20-2008), dtzeus (2 Weeks Ago), Evin (12-06-2009), furzmund (11-12-2008), Gomez (11-18-2008), Impactlol (08-16-2009), indexer (02-01-2009), izbewhp (11-15-2008), johan71 (11-19-2008), Julius (03-11-2009), kkocyk (12-22-2008), kotishe (12-04-2008), Lateralus (4 Weeks Ago), Leandros (08-07-2009), Machiavelli (06-28-2009), Maddogz (11-13-2008), Marky (11-16-2008), Modimus (04-17-2009), Morphie (08-21-2009), neo0608 (11-12-2008), norbert22 (11-12-2008), Paradox (11-12-2008), pein (12-30-2009), Peppers (12-01-2008), phanonic (01-14-2010), psychob (09-14-2009), QAston (11-14-2008), ra3or (11-17-2008), Redeemer (01-21-2009), RedSonja (11-12-2008), rickjames12 (07-30-2009), saharah (11-20-2008), ShadowTiger (11-14-2008), Shocker (1 Week Ago), SLG (11-21-2008), Sundark (05-19-2009), Terrorblade (3 Weeks Ago), thetourist (11-12-2008), ToroBT (11-15-2008), tribl3 (03-21-2009), Visagalis (11-15-2008), vorrax (11-12-2008), vSHADv (01-23-2010), Wartai (11-17-2008), wolfverinex (11-19-2008), xclanet (11-12-2008) | ||
|
#2
|
||||
|
||||
![]() type above command once to clone a repo ![]() type hg pull anytime u need to update to latest rev. ![]() If you are windows user, please change the settings otherwise there will be some eol issues: Mercurial.ini hgext.win32text = ** = cleverencode: ** = cleverdecode: Three lines, that is all.
__________________
Last edited by megamage; 11-20-2008 at 05:26 PM. |
| The Following 15 Users Say Thank You to KingPin For This Useful Post: | ||
Anubisss (01-05-2009), BlindGuardian (11-20-2008), Charevian (11-26-2008), daVirus (11-17-2008), kirax20a (01-14-2010), Leandros (08-07-2009), Maddogz (07-06-2009), Mayss (12-29-2008), Medvish (09-16-2009), Modimus (04-17-2009), NowonsHere (11-19-2008), QAston (11-22-2008), r00tb0x (11-17-2008), Sisif (11-17-2008), Zavisse (11-24-2008) | ||
|
#3
|
|||
|
|||
|
One problem I see so far, that I hope you plan on rectifying at some point, the HG repository you have set up is basically from /trunk, meaning no branches, tags, etc.
Edit: I also see no option for applying (or even creating) patches.... There is an option "Visual Diff" but, it doesn't even run when I click on it. Edit2: It seems HG has the same diff command as git (obviously) and I imagine I'm expected to use patch to apply the patches, not a big deal, but, why can't the damn GUI tools for these damn SCMs do the diff and patch stuff without forcing people who can barely handle point and click (not speaking of myself, but, I know some of my users very well....) to use the command line? Edit3: HG diff is doing the same damn thing git diff did for me at first, it's counting the line endings as differences and creating a patch that basically replaces all of the EOLs in your repo (linux) with the EOLs in my local repo (windows).... Maybe you need to set something equivalent to SVN:eolstyle - native or whatever..... Last edited by Paradox; 11-12-2008 at 08:29 AM. Reason: Losing faith.... |
| The Following User Says Thank You to Paradox For This Useful Post: | ||
death420 (11-18-2008) | ||
|
#4
|
||||
|
||||
|
It would be interesting how you create Patch/Diff files... and how you can commit it ^^
__________________
-=GTDB-Developer=-
Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig. -- Albert Einstein |
|
#5
|
||||
|
||||
|
Visual Diff just displays the changes to the files that were made, but doesnt show the files that were added, doesnt create the patch files either.
I just right clicked a patch file selected Apply Patch and then chose the directory to apply it (thats using TortoiseSVN), that works fine, but from what i have been reading, you will have to use command line to create patches, using Export commands ? So im expecting the same problems you are having keeping your patches updated with Mangos GIT, will be the same with Mercurial.. http://www.selenic.com/mercurial/wik...TutorialExport |
|
#6
|
||||
|
||||
|
wartai u are looking at mercurial's own wiki it *DOESNT* account for tortoise client.
__________________
|
|
#7
|
|||
|
|||
|
Quote:
Well, the tortoise client doesn't contain anything related to applying or creating patches, unlike the SVN version of tortoise.... |
|
#8
|
||||
|
||||
|
mhh... first diff with TortoiseHG:
![]() Code:
# HG changeset patch # User neo0608 # Date 1226502081 -3600 # Node ID 2cccb0a9d8d19912e8da3214b0e9112938d98f21 # Parent 727b3a5aa8425dbd5c65a9c03b7d7f4f117f491e * only testing ;) diff -r 727b3a5aa842 -r 2cccb0a9d8d1 src/game/AccountMgr.cpp --- a/src/game/AccountMgr.cpp Mon Nov 10 22:05:21 2008 -0600 +++ b/src/game/AccountMgr.cpp Wed Nov 12 16:01:21 2008 +0100 @@ -18,6 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "MyTestDiff.test" #include "AccountMgr.h" #include "Database/DatabaseEnv.h" #include "ObjectAccessor.h" complicated ^^
__________________
-=GTDB-Developer=-
Ich habe keine besondere Begabung, sondern bin nur leidenschaftlich neugierig. -- Albert Einstein |
|
#9
|
||||
|
||||
|
Quote:
maybe you just havent looked in the right places ;) tortoisehg > view changelog > right click any chageset and export log locally or email it. I have tested both and they work great. it allows mercurial style, git style, and plain patches.
__________________
|
|
#10
|
|||
|
|||
|
Quote:
My AHBot patch is not yet part of the repository, so, how does this help me exactly? |
![]() |
| Tags |
| git, howto, mercurial, svn |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Howto migrate from MaNGOS to Trinity | waza123 | Community Support | 2 | 10-24-2008 06:14 PM |
| Howto save variables till player logs out | Edder | Community Support | 1 | 10-19-2008 08:15 AM |