Trinity Core MMo Server Framework Latest Supported Client Versions
TrinityZero : 1.12.1 Active
TrinityCore-old : 2.4.3 Inactive
TrinityCore : 3.3.2 Active development

Go Back   Trinity Core MMo Server Framework > General > Releases and Announcements
Connect with Facebook

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.

Reply
 
Thread Tools
  #1  
Old 11-12-2008
KingPin's Avatar
KingPin KingPin is offline
The KingPin
 
Join Date: Oct 2008
Location: Brooklyn
Posts: 2,577
Thanks: 63
Thanked 711 Times in 176 Posts
KingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond repute
Send a message via Skype™ to KingPin
Default Mercurial Howto

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 :
  • you can update to a specific revision from the sources. use trac to get rev number/hash
  • you can merge a specific revision into your sources.
  • You can view the changelog.
  • you can search repo.
  • Your local Repo can be synchronized with the master repo.
  • You can create a Clone from your local repo.

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:
hgext.win32text=

[encode]

** = cleverencode:

[decode]

** = cleverdecode:

[patch]
eol = crlf

[hooks]
pretxncommit.crlf = python:hgext.win32text.forbidcrlf

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.
Reply With Quote
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  
Old 11-12-2008
KingPin's Avatar
KingPin KingPin is offline
The KingPin
 
Join Date: Oct 2008
Location: Brooklyn
Posts: 2,577
Thanks: 63
Thanked 711 Times in 176 Posts
KingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond repute
Send a message via Skype™ to KingPin
Default



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.
Reply With Quote
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  
Old 11-12-2008
Paradox Paradox is offline
Banned
 
Join Date: Oct 2008
Posts: 4,040
Thanks: 488
Thanked 1,081 Times in 738 Posts
Paradox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud of
Send a message via ICQ to Paradox Send a message via AIM to Paradox Send a message via Yahoo to Paradox
Attn

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....
Reply With Quote
The Following User Says Thank You to Paradox For This Useful Post:
death420 (11-18-2008)
  #4  
Old 11-12-2008
neo0608's Avatar
neo0608 neo0608 is offline
Member
 
Join Date: Oct 2008
Location: In front of my Computer!
Posts: 66
Thanks: 9
Thanked 32 Times in 14 Posts
neo0608 will become famous soon enough
Send a message via ICQ to neo0608 Send a message via MSN to neo0608
Default

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
Reply With Quote
  #5  
Old 11-12-2008
Wartai's Avatar
Wartai Wartai is offline
Senior Member
 
Join Date: Oct 2008
Location: Australia, QLD
Posts: 170
Thanks: 24
Thanked 46 Times in 26 Posts
Wartai will become famous soon enough
Default

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
Reply With Quote
  #6  
Old 11-12-2008
KingPin's Avatar
KingPin KingPin is offline
The KingPin
 
Join Date: Oct 2008
Location: Brooklyn
Posts: 2,577
Thanks: 63
Thanked 711 Times in 176 Posts
KingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond repute
Send a message via Skype™ to KingPin
Default

wartai u are looking at mercurial's own wiki it *DOESNT* account for tortoise client.
Reply With Quote
  #7  
Old 11-12-2008
Paradox Paradox is offline
Banned
 
Join Date: Oct 2008
Posts: 4,040
Thanks: 488
Thanked 1,081 Times in 738 Posts
Paradox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud of
Send a message via ICQ to Paradox Send a message via AIM to Paradox Send a message via Yahoo to Paradox
Default

Quote:
Originally Posted by KingPin View Post
wartai u are looking at mercurial's own wiki it *DOESNT* account for tortoise client.

Well, the tortoise client doesn't contain anything related to applying or creating patches, unlike the SVN version of tortoise....
Reply With Quote
  #8  
Old 11-12-2008
neo0608's Avatar
neo0608 neo0608 is offline
Member
 
Join Date: Oct 2008
Location: In front of my Computer!
Posts: 66
Thanks: 9
Thanked 32 Times in 14 Posts
neo0608 will become famous soon enough
Send a message via ICQ to neo0608 Send a message via MSN to neo0608
Default

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
Reply With Quote
  #9  
Old 11-12-2008
KingPin's Avatar
KingPin KingPin is offline
The KingPin
 
Join Date: Oct 2008
Location: Brooklyn
Posts: 2,577
Thanks: 63
Thanked 711 Times in 176 Posts
KingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond reputeKingPin has a reputation beyond repute
Send a message via Skype™ to KingPin
Default

Quote:
Originally Posted by Paradox View Post
Well, the tortoise client doesn't contain anything related to applying or creating patches, unlike the SVN version of tortoise....
(looked for you on irc but u didnt respond so)
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.
Reply With Quote
  #10  
Old 11-12-2008
Paradox Paradox is offline
Banned
 
Join Date: Oct 2008
Posts: 4,040
Thanks: 488
Thanked 1,081 Times in 738 Posts
Paradox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud ofParadox has much to be proud of
Send a message via ICQ to Paradox Send a message via AIM to Paradox Send a message via Yahoo to Paradox
Iwasthinking

Quote:
Originally Posted by KingPin View Post
(looked for you on irc but u didnt respond so)
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.

My AHBot patch is not yet part of the repository, so, how does this help me exactly?
Reply With Quote
Reply

Tags
git, howto, mercurial, svn

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 02:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2008 - 2009 Trinity Core | Hosting provided by KPsN, KPsN is not responsible for user posts and other user content appearing on this website and does not endorse nor guarantee the perspectives, the advice, the users, the materials, or the products or services posted or offered by any users or groups or entities that appear on this website.
no new posts