Advertisement
Advertisement

More Related Content

Similar to Introduction of Distributed version control system (mainly Mercurial)(20)

Advertisement

Recently uploaded(20)

Advertisement

Introduction of Distributed version control system (mainly Mercurial)

  1. Distributed Version Control System gasolin@TWJUG 2010/12/24
  2. 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
  3. 你必須使用一個原始碼控制工具, 否則你就會像缺了左膀右臂一樣 -- 編程創藝
  4. Source Control
  5. Version Control System
  6. CVS 1990
  7. SVN 2001
  8. git 2005 Linux Kernel
  9. hg 2005
  10. What is Mercurial for? Distributed Version Control System
  11. Version Control Procedure ●Get source from repository ●Modify source ●Commit source
  12. Version Control Procedure (Extra) ●Put source on repository ●Deal with conflict ●Offline development (DVCS)
  13. hg Advantages
  14. Cross platform Windows/Mac/Linux
  15. Similar syntax to svn
  16. Not pollute namespace save all in .hg
  17. 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/
  18. Hosts Ready: http://code.google.com/hosting/ http://bitbucket.org/
  19. Migration Ready Converting Svn To Hg http://goo.gl/jReee
  20. Cloud Version Control + http://db.tt/sJ60U6U
  21. Hosting
  22. Write Documents, Examples
  23. Trace Issues, Bugs, Requessts
  24. Version Control
  25. Tagging new Version
  26. Distributing (Place for Download)
  27. Empower the Coder as Project Maintainer
  28. While act as the User
  29. Get a copy $ hg clone Local Remote
  30. Update changes $ hg pull Local Remote
  31. Update & Merge $ hg up Local
  32. While act as Developer
  33. Start repository $ hg init Local
  34. Add control $ hg add [file/folder] Local
  35. Rename File $ hg addremove Local
  36. build-in web interface $ hg serve -p [port] Local
  37. Remove control $ hg rm [file/folder] Local
  38. Save to repository $ hg ci -m "message" Local
  39. Fork a branch $ hg branch [branch_name] Local Remote
  40. Merge a branch $ hg up default $ hg merge [branch_name] Local Remote
  41. Share commits $ hg push Local Remote (or add destination)
  42. Tagging $ hg tag [tag name] Local
  43. Thanks for listening
Advertisement