[Repo HG] How To use

[Repo HG] How To use

Mensagempor tpastor » 08 Abr 2011, 18:56

Mercurial HG is a distributed source control management tool. Like subversion (this is not distributed).
How to use:
First Download a client for it. I use the tortoise hg http://tortoisehg.bitbucket.org/
and after download a Visual Studio plugin (helps a lot) http://visualhg.codeplex.com/

Hg Repo works different from subversion.
You have a local repo in your machine, every developer has one. You add files and commit them to this local repo. People cant access it. (It works as subversion, you add files, remove, commit and update, the diference is that everything is your local machine)
Sometimes, you want to "merge" the code in your repo with code in others developers repo. For this you syncronize repos.

How to use this with Tortoise HG and with PloobsEngine
We have a global repo in http://ploobsengine.hg.sourceforge.net:8000/hgroot/ploobsengine/ploobsengine (read-only)
To start using you need to "clone" this repo to your machine (create your local repo)
For this you right click in the desktop (or anywhere else), click in tortoise Hg and in clone. Choose the source as the Global Repo Address (given above) and the destination one folder of your system and press ok.
when finished you will have a local copy of the global repo. Then you can add remove commit ..... everything (yes, you have a local source control, you can check local revisions ... )
When you think you have something stable and want to share you just right click in your repo folder and choose syncronize and after in push (commiting all your changes to global repo).

To get changes from the global repo (some developer commited) you just right click, choose tortoise hg, syncronize and push, after this you need to update. (the push will bring the latest version to your local repo, after this you need to update your code from it).

you can also create branchs.
Branches occur if lines of development diverge. The term "branch" may thus refer to a "diverged line of development". For Mercurial, a "line of development" is a linear sequence of consecutive changesets.
Normally i dont create this, it happens when you want to make something that will make thinks unstable, but you want to share to everyone.
When updating/commiting you choose from which branch you want the code(default normaly).

The Visual studio plugin makes the life very easier enabling us to do everything isinde the visual studio.
Install the plugin, go to the Visual Studio Tools, options , Source Control and set VisualHG

THE REPO used in MIGRATION
[REPO]
Tortoise HG - just clone the following address
https://port-ploobsengine.googlecode.com/hg/

if anyone wants write access just ask and pass your SOURCEFORGE account.
Any problem, just ask ! :mrgreen:
PloobsEngine
Creator and Developer
ploobs.com.br/?page_id=1381
Avatar do usuário
tpastor
TechDemo
 
Mensagens: 700
Registrado em: 25 Mar 2011, 16:40

Re: [Repo HG] How To use

Mensagempor tpastor » 10 Mai 2011, 21:09

Some people are experimenting some troubles with Merge in Tortoise HG
i recomend the following steps:

FIRST AND VERY IMPORTANT:
commit your local changes to your local repo (right click and commit)
after you right click (on the your local repo folder), choose synchronize and PULL
them you right click and choose HG Repository Explorer
them you right click on the last revision and choose MERGE WITH
them, in the new info box, you choose the merge tool (i PREFER TORTOISEMERGE, cause it is intuitive, the default is kdiff, i cant understand it ...)
click in merge
Resolve ALL merges conflicts
Commit the merged Version

---if you want to send your merged version to the main repo
righ click, choose synchronize and Push

PLS, JUST DONT FORGET TO MAKE THE LOCAL COMMIT !!! YOU CAN LOOOOOOSE EVERYTHING if you update without commit before.
PloobsEngine
Creator and Developer
ploobs.com.br/?page_id=1381
Avatar do usuário
tpastor
TechDemo
 
Mensagens: 700
Registrado em: 25 Mar 2011, 16:40

Re: [Repo HG] How To use

Mensagempor studenthand » 13 Ago 2013, 03:25

Comfort shoes come up with a perfect match effortlessly fashionable garments. In the globe of professional sports marketing revenue is one from the foundational elements that really help professional leagues live in business.

Tiffany online , It is going to take particular computer controlled machines which may be out inside scope of all jewelers.

Cheap tiffany , Their fall from a status jeweler could be seen in some of the more recent lines, offering 'younger' styled pieces, that are also more modestly priced.The stone really wants to generally be held with plenty of power.

Tiffany sale , I literally slapped myself inside forehead for not taking a look at that rusty hunk of metal available more closely.

Tiffany sale , The lobster clasp with a Tiffany bracelet or necklace will show EXCELLENT workmanship, when it looks like it's a cheapie, it is not Tiffany.

Tiffany online , The existence of the internet makes this particular option possible.
studenthand
 
Mensagens: 5
Registrado em: 13 Ago 2013, 03:13
Area: Beta-tester


Voltar para Tutoriais/Tutorials

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante

cron