Your SlideShare is downloading. ×
Mercurial: Beginners (v1)
Mercurial: Beginners (v1)
Mercurial: Beginners (v1)
Mercurial: Beginners (v1)
Mercurial: Beginners (v1)
Mercurial: Beginners (v1)
Mercurial: Beginners (v1)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Mercurial: Beginners (v1)

8,554

Published on

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

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

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

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

×