SlideShare a Scribd company logo
1 of 17
© 2010 Shivercube
© 2010 Shivercube
 Clone an existing repository to create a new
local repository for development
 Each developer must have their own local copy
before making any changes
 Makes a copy of a repository at a point in
time
 Checks out the tip of the default branch
© 2010 Shivercube
 Atomic collection of changes to files in a
repository
 Uniquely identified with a changeset ID
 In a single repository identified by a revision
number
© 2010 Shivercube
 The creation of a new changeset
 Each commit should have a description
 Each commit should have a single specific
purpose
 Bulk amount of work should be separated into
individual commits
 Don’t do too much in a single commit
© 2010 Shivercube
 Diverged line of development
 Linear sequence of consecutive changesets
 Default branch name is “default”
 Supports naming
© 2010 Shivercube
 Symbolic identifier for a changeset
 Use to mark different versions of the system
 Most recent changeset called “tip”
© 2010 Shivercube
 Push changes to another repository
 Adds changes in local repository to the
remote repository
 Only adds changes which are missing in the
remote repository
© 2010 Shivercube
 Pull changes from another repository
 Retrieves changesets from a remote
repository and merges them into the local
repository
 Only transfers changesets which are missing
in the local repository
© 2010 Shivercube
© 2010 Shivercube
 Allows two different strands of development
at the same time
 Quick and easy to switch between branches
 “default” branch should always contain
production code
 Always contains the latest workable version of the
system
 Code being developed should be under separate
branches
© 2010 Shivercube
 Create two copies of a repository
 Transfer changesets between them as often as
you want
 Safe way to create branches
 Repositories are completely isolated until you
push or pull
 Can’t break something in one branch while working in
another
 Easy to delete branch
 Good for single developer testing features, but
not good for developers working as a team
© 2010 Shivercube
© 2010 Shivercube
 Create new branches for new features
 Able to merge changes between branches
 Permanently adds changeset metadata
 Close branches after finished
© 2010 Shivercube
© 2010 Shivercube
 Fastest and easiest way to implement small
changes
 Update to any revision and commit
 Use changeset IDs to switch back and forth
 Won’t be any descriptive name for a branch
 Best for simple changes or experiments by a
single developer
© 2010 Shivercube
© 2010 Shivercube
 Combines two separate changesets into a
merge changeset
 Joins points of two branches into one
 Usually collisions can be automatically
handled
 Can use KDiff3 to intelligently merge changes into
a single file

More Related Content

What's hot

Being Brave: Deploying OpenStack from Master
Being Brave: Deploying OpenStack from MasterBeing Brave: Deploying OpenStack from Master
Being Brave: Deploying OpenStack from Master
OPNFV
 

What's hot (9)

Apache CXF New Directions in Integration
Apache CXF New Directions in IntegrationApache CXF New Directions in Integration
Apache CXF New Directions in Integration
 
CXF 3.0, What's new?
CXF 3.0, What's new?CXF 3.0, What's new?
CXF 3.0, What's new?
 
Spring basics for freshers
Spring basics for freshersSpring basics for freshers
Spring basics for freshers
 
Apache CXF - New Features
Apache CXF - New FeaturesApache CXF - New Features
Apache CXF - New Features
 
Building Elixir App Release with Distillery and Docker
Building Elixir App Release with Distillery and DockerBuilding Elixir App Release with Distillery and Docker
Building Elixir App Release with Distillery and Docker
 
Aegir Introduction
Aegir IntroductionAegir Introduction
Aegir Introduction
 
Being Brave: Deploying OpenStack from Master
Being Brave: Deploying OpenStack from MasterBeing Brave: Deploying OpenStack from Master
Being Brave: Deploying OpenStack from Master
 
Source Code Management Basics
Source Code Management BasicsSource Code Management Basics
Source Code Management Basics
 
Icter open shift
Icter open shiftIcter open shift
Icter open shift
 

Similar to Team development with mercurial

Slide set 7 (Source Code Management History Overview) - Copy.pptx
Slide set 7 (Source Code Management History  Overview) - Copy.pptxSlide set 7 (Source Code Management History  Overview) - Copy.pptx
Slide set 7 (Source Code Management History Overview) - Copy.pptx
UTKARSHBHARDWAJ71
 
Opening opensource : The Jenkins Way
Opening opensource : The Jenkins WayOpening opensource : The Jenkins Way
Opening opensource : The Jenkins Way
Nicolas De Loof
 
SVN session from PiTechnologies
SVN session from PiTechnologies SVN session from PiTechnologies
SVN session from PiTechnologies
PiTechnologies
 
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
Atlassian
 
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
Simplilearn
 

Similar to Team development with mercurial (20)

Slide set 7 (Source Code Management History Overview) - Copy.pptx
Slide set 7 (Source Code Management History  Overview) - Copy.pptxSlide set 7 (Source Code Management History  Overview) - Copy.pptx
Slide set 7 (Source Code Management History Overview) - Copy.pptx
 
Opening opensource : The Jenkins Way
Opening opensource : The Jenkins WayOpening opensource : The Jenkins Way
Opening opensource : The Jenkins Way
 
SQL Server DevOps Jumpstart
SQL Server DevOps JumpstartSQL Server DevOps Jumpstart
SQL Server DevOps Jumpstart
 
Subversion
SubversionSubversion
Subversion
 
SVN session from PiTechnologies
SVN session from PiTechnologies SVN session from PiTechnologies
SVN session from PiTechnologies
 
SVN
SVNSVN
SVN
 
Git and GitFlow branching model
Git and GitFlow branching modelGit and GitFlow branching model
Git and GitFlow branching model
 
Java / Opening Open Source the Jenkins Way - Nicolas de Loof, CloudBees
Java / Opening Open Source the Jenkins Way - Nicolas de Loof, CloudBeesJava / Opening Open Source the Jenkins Way - Nicolas de Loof, CloudBees
Java / Opening Open Source the Jenkins Way - Nicolas de Loof, CloudBees
 
CS_Note_Introduction to Git Workflow.pdf
CS_Note_Introduction to Git Workflow.pdfCS_Note_Introduction to Git Workflow.pdf
CS_Note_Introduction to Git Workflow.pdf
 
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
AtlasCamp 2010: What is DVCS and why it will change the way we work - Jens Sc...
 
Ma forge++ : @Cloud
Ma forge++ : @CloudMa forge++ : @Cloud
Ma forge++ : @Cloud
 
VA Smalltalk Update ESUG2014
VA Smalltalk Update ESUG2014VA Smalltalk Update ESUG2014
VA Smalltalk Update ESUG2014
 
Getting Started with Salesforce DevOps Center Series
Getting Started with Salesforce DevOps Center SeriesGetting Started with Salesforce DevOps Center Series
Getting Started with Salesforce DevOps Center Series
 
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
 
Git Workflows
Git WorkflowsGit Workflows
Git Workflows
 
How to use CVS applied to SOLab
How to use CVS applied to SOLabHow to use CVS applied to SOLab
How to use CVS applied to SOLab
 
Introduction to Git
Introduction to GitIntroduction to Git
Introduction to Git
 
The Power Boost of Atelier
The Power Boost of AtelierThe Power Boost of Atelier
The Power Boost of Atelier
 
SVN Information
SVN Information  SVN Information
SVN Information
 
Subversion
SubversionSubversion
Subversion
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

Team development with mercurial

  • 2. © 2010 Shivercube  Clone an existing repository to create a new local repository for development  Each developer must have their own local copy before making any changes  Makes a copy of a repository at a point in time  Checks out the tip of the default branch
  • 3. © 2010 Shivercube  Atomic collection of changes to files in a repository  Uniquely identified with a changeset ID  In a single repository identified by a revision number
  • 4. © 2010 Shivercube  The creation of a new changeset  Each commit should have a description  Each commit should have a single specific purpose  Bulk amount of work should be separated into individual commits  Don’t do too much in a single commit
  • 5. © 2010 Shivercube  Diverged line of development  Linear sequence of consecutive changesets  Default branch name is “default”  Supports naming
  • 6. © 2010 Shivercube  Symbolic identifier for a changeset  Use to mark different versions of the system  Most recent changeset called “tip”
  • 7. © 2010 Shivercube  Push changes to another repository  Adds changes in local repository to the remote repository  Only adds changes which are missing in the remote repository
  • 8. © 2010 Shivercube  Pull changes from another repository  Retrieves changesets from a remote repository and merges them into the local repository  Only transfers changesets which are missing in the local repository
  • 10. © 2010 Shivercube  Allows two different strands of development at the same time  Quick and easy to switch between branches  “default” branch should always contain production code  Always contains the latest workable version of the system  Code being developed should be under separate branches
  • 11. © 2010 Shivercube  Create two copies of a repository  Transfer changesets between them as often as you want  Safe way to create branches  Repositories are completely isolated until you push or pull  Can’t break something in one branch while working in another  Easy to delete branch  Good for single developer testing features, but not good for developers working as a team
  • 13. © 2010 Shivercube  Create new branches for new features  Able to merge changes between branches  Permanently adds changeset metadata  Close branches after finished
  • 15. © 2010 Shivercube  Fastest and easiest way to implement small changes  Update to any revision and commit  Use changeset IDs to switch back and forth  Won’t be any descriptive name for a branch  Best for simple changes or experiments by a single developer
  • 17. © 2010 Shivercube  Combines two separate changesets into a merge changeset  Joins points of two branches into one  Usually collisions can be automatically handled  Can use KDiff3 to intelligently merge changes into a single file