SlideShare a Scribd company logo
1 of 16
Download to read offline
Mercurial is not a chemical
        element.
       Are you curios what is it?
Who am I?
Ivan Ostafiychuk <iostaf@gmail.com>,
Software Engeener
Working at SoftServe Inc.
What is a Mercurial?
● Distributed Version Control System like Git,
  Bazaar and others

● Mercurial was created by Matt Mackall in
  April 19, 2005
● The latest stable 2.1 is released February 1,
  2012 (3 days ago)
Getting Started
How can you get it?
● Windows
   Get it from http://tortoisehg.bitbucket.org/
● Linux
   Ubuntu: $ apt-get install mercurial
   Fedora: $ yum install mercurial
   Gentoo: $ emerge mercurial
Mac OS X
http://mercurial.berkwood.com/
Start Tour: Initial setup
$ cat .hgrc
[ui]
username = Ivan Ostafiychuk <iostaf@gmail.
com>
Start Tour: Daily commands
Command         Description
help <cmd>      Built-in help system
init            Create empty repository
add             Mark files to be added to repository
                Mark files to be removed from
remove (rm)
                repository
commit (ci)     Commit your changes to repository
status (st)     Show your changes
history (log)   Show your changes
Start Tour: Example
$ cd ~
$ mkdir my-cool-project
$ cd my-cool-project
$ vi main.c
$ hg add main.c
$ hg ci -m "Initial commit."
$ vi main.c
$ hg ci -m "Refactored a bit"
TeamWork: commands
Command   Description
clone     Make a copy of your repository
pull      Pull changes from another repository into
          yours
pull -u   Performs the same as pull but also updates
          working directory
push      Push your changes into another repository
merge     Merge working directory with another
          revision
TeamWork: Example
$ mv my-cool-project john@my-cool-project
$ hg clone john@my-cool-project
   bob@my-cool-project
$ cd bob@my-cool-project
$ # doing our stuf here (e.g. changes, commits)
$ # BUT john also developed some awesome
feature and we want it NOW
$ hg pull -u ../john@my-cool-project
$ hg merge && hg ci -m"Synced with John."
TeamWork: Merging
Branching: Clones
Branching: Named branches
Branching: Bookmarks
BitBucket.org
● Free hosting for Mercurial and Git
● Unlimited repositories in terms of size and
  count
● Wiki & Issue Tracker
● Support for fork and pull model
Questions
References
1.   http://mercurial.selenic.com/
2.   https://bitbucket.org/
3.   http://ilovemercurial.com/
4.   http://www.fogcreek.com/kiln/
5.   http://hginit.com/
6.   http://hgbook.red-bean.com/read/
7.   http://mercurial.selenic.
     com/wiki/HgSubversion

More Related Content

What's hot

wwc start-launched
wwc start-launchedwwc start-launched
wwc start-launched
Mat Schaffer
 

What's hot (20)

Webapp using docker container
Webapp using docker containerWebapp using docker container
Webapp using docker container
 
Install odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debianInstall odoo v8 the easiest way on ubuntu debian
Install odoo v8 the easiest way on ubuntu debian
 
Infrastructure Deployment with Docker & Ansible
Infrastructure Deployment with Docker & AnsibleInfrastructure Deployment with Docker & Ansible
Infrastructure Deployment with Docker & Ansible
 
2009 cluster user training
2009 cluster user training2009 cluster user training
2009 cluster user training
 
Docker導入手順
Docker導入手順Docker導入手順
Docker導入手順
 
Steam Learn: Composer
Steam Learn: ComposerSteam Learn: Composer
Steam Learn: Composer
 
Using Groovy with Jenkins
Using Groovy with JenkinsUsing Groovy with Jenkins
Using Groovy with Jenkins
 
Groovy Powered Clean Code
Groovy Powered Clean CodeGroovy Powered Clean Code
Groovy Powered Clean Code
 
CraftCamp for Students - Introduction to git
CraftCamp for Students - Introduction to gitCraftCamp for Students - Introduction to git
CraftCamp for Students - Introduction to git
 
Knolx master-slides
Knolx master-slidesKnolx master-slides
Knolx master-slides
 
wwc start-launched
wwc start-launchedwwc start-launched
wwc start-launched
 
Git
GitGit
Git
 
Docker 入門 Introduction to Docker
Docker 入門  Introduction to DockerDocker 入門  Introduction to Docker
Docker 入門 Introduction to Docker
 
Docker 基本概念與指令操作
Docker  基本概念與指令操作Docker  基本概念與指令操作
Docker 基本概念與指令操作
 
Build your own private openstack cloud
Build your own private openstack cloudBuild your own private openstack cloud
Build your own private openstack cloud
 
使用 CLI 管理 OpenStack 平台
使用 CLI 管理 OpenStack 平台使用 CLI 管理 OpenStack 平台
使用 CLI 管理 OpenStack 平台
 
Ansible, Simplicity, and the Zen of Python
Ansible, Simplicity, and the Zen of PythonAnsible, Simplicity, and the Zen of Python
Ansible, Simplicity, and the Zen of Python
 
Git in 5 Minutes
Git in 5 MinutesGit in 5 Minutes
Git in 5 Minutes
 
Project 2 - how to compile os161?
Project 2 - how to compile os161?Project 2 - how to compile os161?
Project 2 - how to compile os161?
 
3. Copy1 in Laravel
3. Copy1 in Laravel3. Copy1 in Laravel
3. Copy1 in Laravel
 

Viewers also liked (6)

Malmö Workshop Exercise
Malmö Workshop ExerciseMalmö Workshop Exercise
Malmö Workshop Exercise
 
Vera Horvat Pintarić, "O političkom plakatu" - 37 godina poslije
Vera Horvat Pintarić, "O političkom plakatu" - 37 godina poslijeVera Horvat Pintarić, "O političkom plakatu" - 37 godina poslije
Vera Horvat Pintarić, "O političkom plakatu" - 37 godina poslije
 
Team development with mercurial
Team development with mercurialTeam development with mercurial
Team development with mercurial
 
Git vs. Mercurial
Git vs. MercurialGit vs. Mercurial
Git vs. Mercurial
 
Mercurial training
 Mercurial training Mercurial training
Mercurial training
 
Mercurial: Modern Source Control Management
Mercurial: Modern Source Control ManagementMercurial: Modern Source Control Management
Mercurial: Modern Source Control Management
 

Similar to Introduction to mercurial

Similar to Introduction to mercurial (20)

Docker for mere mortals
Docker for mere mortalsDocker for mere mortals
Docker for mere mortals
 
Intro django
Intro djangoIntro django
Intro django
 
Docker Starter Pack
Docker Starter PackDocker Starter Pack
Docker Starter Pack
 
VersionEEring
VersionEEringVersionEEring
VersionEEring
 
Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)Intro to git (UT biocomputing 2015)
Intro to git (UT biocomputing 2015)
 
Hands-On Session Docker
Hands-On Session DockerHands-On Session Docker
Hands-On Session Docker
 
The Galaxy toolshed
The Galaxy toolshedThe Galaxy toolshed
The Galaxy toolshed
 
Deploying TYPO3 Neos websites using Surf
Deploying TYPO3 Neos websites using SurfDeploying TYPO3 Neos websites using Surf
Deploying TYPO3 Neos websites using Surf
 
Docker by Example - Basics
Docker by Example - Basics Docker by Example - Basics
Docker by Example - Basics
 
Git 101
Git 101Git 101
Git 101
 
Learning Docker with Thomas
Learning Docker with ThomasLearning Docker with Thomas
Learning Docker with Thomas
 
An introduction to maven gradle and sbt
An introduction to maven gradle and sbtAn introduction to maven gradle and sbt
An introduction to maven gradle and sbt
 
Continuos Integration @Knetminer
Continuos Integration @KnetminerContinuos Integration @Knetminer
Continuos Integration @Knetminer
 
O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...
O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...
O'Reilly Software Architecture Conference London 2017: Building Resilient Mic...
 
Jenkins multibranch pipeline workshop sep 2018
Jenkins multibranch pipeline workshop sep 2018Jenkins multibranch pipeline workshop sep 2018
Jenkins multibranch pipeline workshop sep 2018
 
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
 
Dockerizing a Symfony2 application
Dockerizing a Symfony2 applicationDockerizing a Symfony2 application
Dockerizing a Symfony2 application
 
Learning Git with Workflows
Learning Git with WorkflowsLearning Git with Workflows
Learning Git with Workflows
 
Powercoders · Docker · Fall 2021.pptx
Powercoders · Docker · Fall 2021.pptxPowercoders · Docker · Fall 2021.pptx
Powercoders · Docker · Fall 2021.pptx
 
A Hands-on Introduction to Docker
A Hands-on Introduction to DockerA Hands-on Introduction to Docker
A Hands-on Introduction to Docker
 

More from IT Booze

Erlang - concurrency-oriented programming by Serhiy Yvtyshenko
Erlang - concurrency-oriented programming by Serhiy YvtyshenkoErlang - concurrency-oriented programming by Serhiy Yvtyshenko
Erlang - concurrency-oriented programming by Serhiy Yvtyshenko
IT Booze
 
Cloud Providers: Amazon, Rackspace, Azure by Andriy Tsok
Cloud Providers: Amazon, Rackspace, Azure by Andriy TsokCloud Providers: Amazon, Rackspace, Azure by Andriy Tsok
Cloud Providers: Amazon, Rackspace, Azure by Andriy Tsok
IT Booze
 
Overview of Google spreadsheet API for Java by Nazar Kostiv
Overview of Google spreadsheet API for Java by Nazar Kostiv Overview of Google spreadsheet API for Java by Nazar Kostiv
Overview of Google spreadsheet API for Java by Nazar Kostiv
IT Booze
 

More from IT Booze (9)

Erlang - concurrency-oriented programming by Serhiy Yvtyshenko
Erlang - concurrency-oriented programming by Serhiy YvtyshenkoErlang - concurrency-oriented programming by Serhiy Yvtyshenko
Erlang - concurrency-oriented programming by Serhiy Yvtyshenko
 
Cloud Providers: Amazon, Rackspace, Azure by Andriy Tsok
Cloud Providers: Amazon, Rackspace, Azure by Andriy TsokCloud Providers: Amazon, Rackspace, Azure by Andriy Tsok
Cloud Providers: Amazon, Rackspace, Azure by Andriy Tsok
 
Let's teach your child programming with Greenfoot by Oleg Pashkevych
Let's teach your child programming with Greenfoot by Oleg Pashkevych Let's teach your child programming with Greenfoot by Oleg Pashkevych
Let's teach your child programming with Greenfoot by Oleg Pashkevych
 
Overview of Google spreadsheet API for Java by Nazar Kostiv
Overview of Google spreadsheet API for Java by Nazar Kostiv Overview of Google spreadsheet API for Java by Nazar Kostiv
Overview of Google spreadsheet API for Java by Nazar Kostiv
 
Microsoft Dynamics CRM Overview by Anatoly Kvasnikov
Microsoft Dynamics CRM Overview by Anatoly KvasnikovMicrosoft Dynamics CRM Overview by Anatoly Kvasnikov
Microsoft Dynamics CRM Overview by Anatoly Kvasnikov
 
Windows Phone and mobile application development
Windows Phone and mobile application developmentWindows Phone and mobile application development
Windows Phone and mobile application development
 
Windows 8 and Metro design applications
Windows 8 and Metro design applicationsWindows 8 and Metro design applications
Windows 8 and Metro design applications
 
Savana
SavanaSavana
Savana
 
Git
GitGit
Git
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
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...
 
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, ...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
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
 

Introduction to mercurial

  • 1. Mercurial is not a chemical element. Are you curios what is it?
  • 2. Who am I? Ivan Ostafiychuk <iostaf@gmail.com>, Software Engeener Working at SoftServe Inc.
  • 3. What is a Mercurial? ● Distributed Version Control System like Git, Bazaar and others ● Mercurial was created by Matt Mackall in April 19, 2005 ● The latest stable 2.1 is released February 1, 2012 (3 days ago)
  • 4. Getting Started How can you get it? ● Windows Get it from http://tortoisehg.bitbucket.org/ ● Linux Ubuntu: $ apt-get install mercurial Fedora: $ yum install mercurial Gentoo: $ emerge mercurial Mac OS X http://mercurial.berkwood.com/
  • 5. Start Tour: Initial setup $ cat .hgrc [ui] username = Ivan Ostafiychuk <iostaf@gmail. com>
  • 6. Start Tour: Daily commands Command Description help <cmd> Built-in help system init Create empty repository add Mark files to be added to repository Mark files to be removed from remove (rm) repository commit (ci) Commit your changes to repository status (st) Show your changes history (log) Show your changes
  • 7. Start Tour: Example $ cd ~ $ mkdir my-cool-project $ cd my-cool-project $ vi main.c $ hg add main.c $ hg ci -m "Initial commit." $ vi main.c $ hg ci -m "Refactored a bit"
  • 8. TeamWork: commands Command Description clone Make a copy of your repository pull Pull changes from another repository into yours pull -u Performs the same as pull but also updates working directory push Push your changes into another repository merge Merge working directory with another revision
  • 9. TeamWork: Example $ mv my-cool-project john@my-cool-project $ hg clone john@my-cool-project bob@my-cool-project $ cd bob@my-cool-project $ # doing our stuf here (e.g. changes, commits) $ # BUT john also developed some awesome feature and we want it NOW $ hg pull -u ../john@my-cool-project $ hg merge && hg ci -m"Synced with John."
  • 14. BitBucket.org ● Free hosting for Mercurial and Git ● Unlimited repositories in terms of size and count ● Wiki & Issue Tracker ● Support for fork and pull model
  • 16. References 1. http://mercurial.selenic.com/ 2. https://bitbucket.org/ 3. http://ilovemercurial.com/ 4. http://www.fogcreek.com/kiln/ 5. http://hginit.com/ 6. http://hgbook.red-bean.com/read/ 7. http://mercurial.selenic. com/wiki/HgSubversion