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

Like this? Share it with your network

Share

Mercurial: Beginners (v1)

on

  • 8,981 views

 

Statistics

Views

Total Views
8,981
Views on SlideShare
1,883
Embed Views
7,098

Actions

Likes
1
Downloads
17
Comments
0

7 Embeds 7,098

http://www.michaelwales.com 7065
http://translate.googleusercontent.com 13
http://michaelwales.com 7
http://web.archive.org 6
http://www.linkedin.com 4
http://webcache.googleusercontent.com 2
http://www.google.nl 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Mercurial: Beginners (v1) Presentation 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