Mercurial
From Wikipedia, the free encyclopedia
| Developer(s) | Matt Mackall |
|---|---|
| Stable release | 1.4.3 / February 1, 2010 |
| Written in | Python and C |
| Operating system | Unix-like, Windows, Mac OS X |
| Type | Revision control |
| License | GPL v2 or any later version |
| Website | mercurial.selenic.com |
Mercurial is a cross-platform, distributed revision control tool for software developers. It is mainly implemented using the Python programming language, but includes a binary diff implementation written in C. Mercurial was initially written to run on Linux. It has been ported to Windows, Mac OS X, and most other Unix-like systems. Mercurial is primarily a command line program but graphical user interface extensions are available. All of Mercurial's operations are invoked as keyword options to its driver program hg, a reference to the chemical symbol of the element mercury.
Mercurial's major design goals include high performance and scalability, decentralized, fully distributed collaborative development, robust handling of both plain text and binary files, and advanced branching and merging capabilities, while remaining conceptually simple.[1] It includes an integrated web interface.
The creator and lead developer of Mercurial is Matt Mackall. The source code is available under the terms of the GNU General Public License version 2 or any later version, qualifying Mercurial as free software.
Contents |
[edit] Technical information
Mercurial uses SHA-1 hashes to identify revisions. For repository access via a network, Mercurial uses an HTTP-based protocol that seeks to reduce round-trip requests, new connections and data transferred. Mercurial can also work over ssh where the protocol is very similar to the HTTP-based protocol.
[edit] Documentation
A comprehensive reference manual, Mercurial: The Definitive Guide,[2] has been written by Bryan O'Sullivan. The manual is freely available under the terms of the Open Publication License.
[edit] History
Mackall first announced Mercurial on April 19, 2005.[3] The impetus for this was the announcement earlier that month by Bitmover that they were withdrawing the free version of BitKeeper.
BitKeeper had been used for the version control requirements of the Linux kernel project. Mackall decided to write a distributed version control system as a replacement for use with the Linux kernel. This project started a few days after another project called Git, started by Linus Torvalds with similar aims.[4]
The Linux kernel project decided to use Git rather than Mercurial, but Mercurial is now used by many other projects (see below).
[edit] Related software
- TortoiseHg provides a user-friendly, right-click menu interface for Windows and GNOME's Nautilus file manager. Its dialogs can also be launched directly from the command line (using 'hgtk').
- GUI interfaces for Mercurial include:
- Hgk (tcl/tk)
- This is implemented as a Mercurial extension, and is part of the official version. This viewer displays the directed acyclic graph of the changesets of a Mercurial repository. This viewer can be invoked via the command 'hg view', if the extension is enabled. hgk was originally based on a similar tool for git called gitk. There is an hgk replacement named hgview that is written in pure python and provides both gtk and qt interfaces.
- Murky
- A MacOS X GUI in Objective-C 2.0, runs on Mac OS X 10.5 and later.
- MacMercurial
- A MacOS X GUI '"not intended to completely replace command line use of Mercurial, only to ease the most common Mercurial operations," for Mac OS X 10.4 or later.
- Related tools for merging include (h)gct (Qt) and Meld.
- The convert extension allows import from CVS, Darcs, git, GNU Arch, Monotone, Perforce, Bazaar and Subversion repositories.
- NetBeans supports Mercurial from Version 6.
- Eclipse supports Mercurial with the MercurialEclipse and HgEclipse plugins.
[edit] Adoption
[edit] Source code hosting
The following websites provide free source code hosting for Mercurial repositories:
- Bitbucket
- Google Code [5]
- Project Kenai by Sun Microsystems
- SourceForge
- GNU Savannah
- Alioth by Debian
- BerliOS
- CodePlex[6]
- Others listed in the Mercurial wiki
[edit] Projects using Mercurial
Some projects using the Mercurial distributed RCS:[7]
- Mozilla[8]
- OpenJDK[9]
- OpenSolaris[10]
- OpenOffice.org[11]
- Symbian OS[12]
- The Xen hypervisor[13]
- Adblock Plus
- Adium
- Aldrin
- Audacious
- CubicWeb
- Dovecot IMAP server[14]
- GeeXboX
- Go (programming language)
- GNU Octave
- Growl
- Wget
- LEMON
- LinuxTV/Video4Linux
- LuxRender 3D Render Engine
- MoinMoin wiki software
- Mutt (email client)
- Netbeans[15]
- NxOS
- Nuxeo
- SAGE
- Vim
The developers of the Python programming language have announced that they will transition from Subversion to Mercurial. However, as of September 2009[ref] the timeframe is not fixed because the transition team is waiting for hgsubversion to develop.[dated info][16][17]
[edit] See also
- Distributed revision control
- List of revision control software
- Comparison of revision control software
[edit] References
- ^ Matt Mackall, Towards a Better SCM: Revlog and Mercurial, Ottawa Linux Symposium Proceedings, 2006.
- ^ Bryan O'Sullivan (2007-01-01). Mercurial: The Definitive Guide. http://hgbook.red-bean.com/.
- ^ Mackall, Matt (2005-04-20). "Mercurial v0.1 - a minimal scalable distributed SCM". Linux kernel mailing list. http://www.ussg.iu.edu/hypermail/linux/kernel/0504.2/0670.html.
- ^ Mackall, Matt (2005-04-29). "Re: Mercurial 0.4b vs git patchbomb benchmark". Linux kernel mailing list. http://lkml.indiana.edu/hypermail/linux/kernel/0504.3/1404.html.
- ^ "Google Code Blog: Mercurial Now Available to All Open Source Projects". 2009-05-28. http://google-code-updates.blogspot.com/2009/05/mercurial-now-available-to-all-open.html.
- ^ "CodePlex Weblog: CodePlex now supporting native Mercurial". 2010-01-22. http://blogs.msdn.com/codeplex/archive/2010/01/22/codeplex-now-supporting-native-mercurial.aspx.
- ^ Some projects that use Mercurial
- ^ J. Paul Reed (2007-04-12). "Version Control System Shootout Redux Redux". http://weblogs.mozillazine.org/preed/2007/04/version_control_system_shootou_1.html.
- ^ James Gosling. Interview with Robert Eckstein. James Gosling on Open Sourcing Sun's Java Platform Implementations, Part 1. October 2006.
- ^ "OpenSolaris SCM Project History". 2006-10-05. http://opensolaris.org/os/community/tools/scm/history/.
- ^ "OpenOffice.org development switches to Mercurial". 2009-10-15. http://blogs.sun.com/GullFOSS/entry/openoffice_org_development_switches_to.
- ^ David Wood (2009-04-06). "We decided in the end to use Mercurial rather than Git.". http://blog.symbian.org/2009/04/06/collaboration-at-the-heart/#comment-789. Retrieved 2009-05-07.
- ^ Ian Pratt (2005-07-01). "mercurial now live". Xen-devel mailing list. http://lists.xensource.com/archives/html/xen-devel/2005-07/msg00003.html.
- ^ Timo Sirainen (2007-05-19). "CVS to Mercurial switch". Dovecot-news mailing list. http://www.dovecot.org/list/dovecot-news/2007-May/000044.html.
- ^ "Switch to hg.netbeans.org completed". January 2008. http://www.netbeans.org/servlets/ReadMsg?list=nbdev&msgNo=40342.
- ^ Guido van Rossum (2009-03-30). "And the winner is...". Python-Dev mailing list. http://mail.python.org/pipermail/python-dev/2009-March/087931.html.
- ^ Python PEP 385 with Timeline TBD (As of September 2009[update])
[edit] External links
- Official Mercurial Project Wiki
- Unofficial Mercurial Home Page
- Mercurial: The Definitive Guide a book by Bryan O'Sullivan published in 2009 by O'Reilly and freely available online
- Mercurial: an alternative to git from LWN.net
- An example-based Mercurial tutorial covering both basic and advanced use
- Mercurial for TeamWare users
- Google TechTalk on Mercurial
- Subversion or CVS, Bazaar or Mercurial? Four open source version control systems compared
- HgEclipse is an open source plugin that supports Mercurial within the Eclipse IDE.
|
||||||||||||||||||||||||||||||