Mercurial: Beginners (v1)

8,595
-1

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
8,595
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
18
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Mercurial: Beginners (v1)

  1. 1. Mercurial(hg)<br />How 2 letters will solve all your problems<br />
  2. 2. Your developers: today<br />Who has the database class open? I need to fix a bug!<br />Okay, I’ll save my changes – you copy/paste yours into Notepad, reload the file, then add your changes back in.<br />Okay, the new API is in the API-new directory, I left the old API for legacy stuff until we get it refactored.<br />Can someone help the new guy get his environment up and running?<br />I know you’re at home, but can you make the change and email it to me?<br />
  3. 3. Your developers: tomorrow<br />hg merge<br />Changes between multiple developers are combined – like magic<br />hg pull / hg update<br />Get the work others have done, merge it with what I’ve done<br />hg branch<br />New features and massive rewrites can take place, without affecting other developers<br />hg clone<br />The new guy is ready to go<br />hg push<br />Changes are available to anyone else with access<br />
  4. 4. Version control definitions<br />Remote Repository<br />Hosted online<br />Where code is passed between developers<br />hg pull<br />hg push<br />Index<br />Hosted locally<br />Code that is either incoming/outgoing the working copy<br />hg update<br />hg commit<br />Working Copy<br />Hosted locally<br />Where the magic happens<br />
  5. 5. Remote Repository<br />Workflow:nomad developer<br />A single developer that works from multiple locations.<br />Index<br />Index<br />Working Copy<br />Desktop<br />Working Copy<br />Laptop<br />
  6. 6. Remote Repository<br />Workflow:equal rights<br />Every developer has equal rights to push code into the remote repository.<br />Index<br />Index<br />Index<br />Working Copy<br />Developer A<br />Working Copy<br />Developer B<br />Working Copy<br />Developer C<br />
  7. 7. Project Remote Repository<br />Workflow:codebaseoverlord<br />Codebase Overlord<br />One developer controls the pushes into the project’s remote repository.<br />(Indexes removed for graphic clarity).<br />Remote Repository<br />Remote Repository<br />Remote Repository<br />Developer A<br />Developer B<br />Developer C<br />
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×