• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Introduction of Distributed version control system (mainly Mercurial)
 

Introduction of Distributed version control system (mainly Mercurial)

on

  • 573 views

talk at TWJUG at 2010

talk at TWJUG at 2010

Statistics

Views

Total Views
573
Views on SlideShare
573
Embed Views
0

Actions

Likes
2
Downloads
1
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

    Introduction of Distributed version control system (mainly Mercurial) Introduction of Distributed version control system (mainly Mercurial) Presentation Transcript

    • Distributed Version Control System gasolin@TWJUG 2010/12/24
    • About Me gasolin ●GTUG Taipei Member ●Embedded Network Device engineer ●Android developer and book author ●Pythonista Version Control Experience: ●SourceSafe ●SVN ●Mercurial (Hg) Contact ●gasolin@gmail.com ●www.plurk.com/gasolin
    • 你必須使用一個原始碼控制工具, 否則你就會像缺了左膀右臂一樣 -- 編程創藝
    • Source Control
    • Version Control System
    • CVS 1990
    • SVN 2001
    • git 2005 Linux Kernel
    • hg 2005
    • What is Mercurial for? Distributed Version Control System
    • Version Control Procedure ●Get source from repository ●Modify source ●Commit source
    • Version Control Procedure (Extra) ●Put source on repository ●Deal with conflict ●Offline development (DVCS)
    • hg Advantages
    • Cross platform Windows/Mac/Linux
    • Similar syntax to svn
    • Not pollute namespace save all in .hg
    • Tools Ready http://cbes.javaforge.com/update MercurialEclipse TortoiseHg http://tortoisehg.bitbucket.org/ Hudson Plugin http://wiki.hudson-ci.org/display/HUDSON/Mercurial+Plugin http://code.google.com/hosting/
    • Hosts Ready: http://code.google.com/hosting/ http://bitbucket.org/
    • Migration Ready Converting Svn To Hg http://goo.gl/jReee
    • Cloud Version Control + http://db.tt/sJ60U6U
    • Hosting
    • Write Documents, Examples
    • Trace Issues, Bugs, Requessts
    • Version Control
    • Tagging new Version
    • Distributing (Place for Download)
    • Empower the Coder as Project Maintainer
    • While act as the User
    • Get a copy $ hg clone Local Remote
    • Update changes $ hg pull Local Remote
    • Update & Merge $ hg up Local
    • While act as Developer
    • Start repository $ hg init Local
    • Add control $ hg add [file/folder] Local
    • Rename File $ hg addremove Local
    • build-in web interface $ hg serve -p [port] Local
    • Remove control $ hg rm [file/folder] Local
    • Save to repository $ hg ci -m "message" Local
    • Fork a branch $ hg branch [branch_name] Local Remote
    • Merge a branch $ hg up default $ hg merge [branch_name] Local Remote
    • Share commits $ hg push Local Remote (or add destination)
    • Tagging $ hg tag [tag name] Local
    • Thanks for listening