A Scalable, User-Friendly Source Control System.
Go to file
Peter Arrenbrecht ef7b77046e peer: introduce real peer classes
This change separates peer implementations from the repository implementation.
localpeer currently is a simple pass-through to localrepository, except for
legacy calls, which have already been removed from localpeer. This ensures that
the local client code only uses the most modern peer API when talking to local
repos.

Peers have a .local() method which returns either None or the underlying
localrepository (or descendant thereof). Repos have a .peer() method to return
a freshly constructed localpeer. The latter is used by hg.peer(), and also to
allow folks to pass either a peer or a repo to some generic helper methods.
We might want to get rid of .peer() eventually.

The only user of locallegacypeer is debugdiscovery, which uses it to pose as a
pre-setdiscovery client. But we decided to leave the old API defined in
locallegacypeer for clarity and maybe for other uses in the future.

It might be nice to actually define the peer API directly in peer.py as stub
methods. One problem there is, however, that localpeer implements
lock/addchangegroup, whereas the true remote peers implement unbundle.
It might be desireable to get rid of this distinction eventually.
2012-07-13 21:47:06 +02:00
contrib check-code: recognise %= as an operator 2012-07-06 19:48:19 +02:00
doc cleanup: "not x in y" -> "x not in y" 2012-05-12 16:00:57 +02:00
hgext peer: introduce real peer classes 2012-07-13 21:47:06 +02:00
i18n i18n-pt_BR: synchronized with ef02254f0cee 2012-07-01 08:09:00 -03:00
mercurial peer: introduce real peer classes 2012-07-13 21:47:06 +02:00
tests peer: introduce real peer classes 2012-07-13 21:47:06 +02:00
.hgignore hgignore: simply ignore all *.exe's everywhere 2012-07-01 10:06:16 +02:00
.hgsigs Added signature for changeset 46cdcb89086f 2012-07-01 21:12:36 -05:00
CONTRIBUTORS Add note to CONTRIBUTORS file 2007-11-07 21:10:30 -06:00
COPYING COPYING: refresh with current address from fsf.org 2011-06-02 11:17:02 -05:00
hg rename util.set_binary to setbinary 2011-05-06 15:25:35 +02:00
hgeditor Fixed a bashism with the use of $RANDOM in hgeditor. 2010-05-19 18:06:35 +02:00
hgweb.cgi mq: add a warning about uncommitted changes for qfinish 2011-11-10 15:40:34 -06:00
Makefile Makefile: add build_hgexe -i for local 2012-06-29 13:12:35 +02:00
README readme: mention how to run in-place 2012-03-02 21:43:55 +02:00
setup.py setup: disable -mno-cygwin if building under mingw32 2012-07-06 20:19:55 -07:00

Mercurial
=========

Mercurial is a fast, easy to use, distributed revision control tool
for software developers.

Basic install:

 $ make            # see install targets
 $ make install    # do a system-wide install
 $ hg debuginstall # sanity-check setup
 $ hg              # see help

Running without installing:

 $ make local      # build for inplace usage
 $ ./hg --version  # should show the latest version

See http://mercurial.selenic.com/ for detailed installation
instructions, platform-specific notes, and Mercurial user information.