Mercurial

Mercurial
Mercurial
New Mercurial logo.svg
Developer(s) Matt Mackall
Initial release April 19, 2005 (2005-04-19)[1]
Stable release 2.0[2] / November 1, 2011; 19 days ago (2011-11-01)
Written in Python and C
Operating system Unix-like, Windows, Mac OS X
Type Revision control
License GNU GPL v2
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. It is supported on Windows and Unix-like systems, such as FreeBSD, Mac OS X and Linux. Mercurial is primarily a command line program but graphical user interface extensions are available. All of Mercurial's operations are invoked as arguments 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.[3] It includes an integrated web interface. Mercurial has also taken steps to ease the transition for SVN users.

The creator and lead developer of Mercurial is Matt Mackall. Mercurial is released as free software under the terms of the GNU GPL v2.

Contents

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. By default it uses a 3-way merge before calling external merge tools.

History

Mackall first announced Mercurial on April 19, 2005.[1] 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, initiated 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).

Related software

Screenshot of hgk in action
  • 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.
    TortoiseHg
    TortoiseHg is a shell extension and a series of applications for the Mercurial distributed revision control system. It is available for Windows Explorer and GNOME Nautilus.
    Murky
    A Mac OS X GUI in Objective-C 2.0, runs on Mac OS X 10.5 and later.
    MacMercurial
    A Mac OS 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.
    MacHg
    MacHg is a free and fast multithreaded front end for Mac OS X 10.6 and later.
    SourceTree
    A commercial Mac OS X GUI client that works with both Mercurial and Git.
  • 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.
  • Microsoft Visual Studio supports Mercurial with the VisualHG and HgSccPackage plugins.
  • NetBeans supports Mercurial from Version 6.
  • Eclipse supports Mercurial with the MercurialEclipse plugin.

Adoption

Source code hosting

The following websites provide free source code hosting for Mercurial repositories:

Projects using Mercurial

Some projects using the Mercurial distributed RCS:[7]

See also

References

  1. ^ a b 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. 
  2. ^ Mercurial 2.0 - [1]
  3. ^ Matt Mackall, Towards a Better SCM: Revlog and Mercurial, Ottawa Linux Symposium Proceedings, 2006.
  4. ^ 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. 
  5. ^ "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. 
  6. ^ "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. 
  7. ^ Some projects that use Mercurial
  8. ^ "Source code repositories migrated from Subversion to Mercurial". 2010-02-27. http://www.coin3d.org/coin3d_news/source-code-repositories-migrated-from-subversion-to-mercurial. 
  9. ^ Timo Sirainen (2007-05-19). "CVS to Mercurial switch". Dovecot-news mailing list. http://www.dovecot.org/list/dovecot-news/2007-May/000044.html. 
  10. ^ "Open Source". 2011-07-08. http://www.dreamwidth.org/site/opensource. 
  11. ^ "Mercurial Work Flow". 2011-03-13. https://www.illumos.org/projects/illumos-gate/wiki/Mercurial_Work_Flow. 
  12. ^ Ryan C. Gordon (2010-05-11). "Lugaru goes open source!". http://icculus.org/news/news.php?id=4590. 
  13. ^ 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. 
  14. ^ "Switch to hg.netbeans.org completed". January 2008. http://www.netbeans.org/servlets/ReadMsg?list=nbdev&msgNo=40342. 
  15. ^ "Mercurial « OGRE – Open Source 3D Graphics Engine". 2010-04-04. http://www.ogre3d.org/developers/mercurial. 
  16. ^ James Gosling (October 2006). James Gosling on Open Sourcing Sun's Java Platform Implementations, Part 1. Interview with Robert Eckstein. http://java.sun.com/developer/technicalArticles/Interviews/gosling_os1_qa.html. 
  17. ^ "OpenIndiana Source Repositories". 2011-03-13. http://wiki.openindiana.org:8080/display/oi/Source+repositories. 
  18. ^ "OpenOffice.org development switches to Mercurial". 2009-10-15. http://blogs.sun.com/GullFOSS/entry/openoffice_org_development_switches_to. 
  19. ^ "RawTherapee". 2010-01-04. http://www.rawtherapee.com/. 
  20. ^ "Mercurial Repositories". http://hg.sagemath.org/. Retrieved 13 April 2011. 
  21. ^ David Wood (2009-04-06). "We decided in the end to use Mercurial rather than Git.". http://web.archive.org/web/20090414192645/http://blog.symbian.org/2009/04/06/collaboration-at-the-heart/#comment-789. Retrieved 2009-05-07. 
  22. ^ "Distributed VCS: On git and mercurial, a transition from SVN". http://pedro.larroy.com/blog/?p=272. 

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?
Synonyms:

Look at other dictionaries:

  • Mercurial — Тип Система управления версиями Разработчик Matt Mackall Написана на Python и Си Операционная система Кроссплатформенное программное обеспеч …   Википедия

  • Mercurial — Desarrollador Matt Mackall http://mercurial.selenic.com/ …   Wikipedia Español

  • Mercurial — Entwickler Matt Mackall, u. v. a. Aktuelle Version 2.0 (1. November 2011) Betriebssyst …   Deutsch Wikipedia

  • Mercurial — Développeur Matt Mackall Dernière version …   Wikipédia en Français

  • Mercurial — Mer*cu ri*al, a. [L. mercurialis, fr. Mercurius Mercury: cf. F. mercuriel.] 1. Having the qualities fabled to belong to the god Mercury; swift; active; sprightly; fickle; volatile; changeable; as, a mercurial youth; a mercurial temperament. [1913 …   The Collaborative International Dictionary of English

  • mercurial — 1. relativo o perteneciente al mercurio, sobre todo a los fármacos que contienen mercurio. 2. efecto adverso asociado con la administración de medicación mercurial, como el temblor mercurial que aparece en la intoxicación por mercurio …   Diccionario médico

  • Mercurial — Mer*cu ri*al, n. 1. A person having mercurial qualities. Bacon. [1913 Webster] 2. (Med.) A preparation containing mercury. [1913 Webster] …   The Collaborative International Dictionary of English

  • mercurial — adj. 2 g. 1. Composto de mercúrio. • s. m. 2. Medicamento mercurial. • s. f. 3.  [Informal] Repreensão azeda. 4.  [Botânica] Planta euforbiácea …   Dicionário da Língua Portuguesa

  • mercurial — Mercurial, [mercuri]ale. adj. Qui tient du mercure. Les esprits mercuriaux & arsenicaux des mines sont dangereux pour les gens qui y travaillent. Miel mercurial …   Dictionnaire de l'Académie française

  • Mercuriāl... — Mercuriāl..., von Quecksilber, od. sich darauf beziehend. Mercurialausschlag, s.u. Mercurialkrankheit. Mercuriale, ein Mercurialmittel …   Pierer's Universal-Lexikon

  • mercurial — index capricious, inconsistent, irresolute, moving (in motion), undependable, unpredictable, untrust …   Law dictionary

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”