A Scalable, User-Friendly Source Control System.
Go to file
Jun Wu 5ca5bb4a7c annotate: calculate line count correctly
Before this patch, the "lines" function inside "annotate" returns 1 for
empty text (''). This patch makes it 0. Because the function should match
mdiff.splitnewlines (used by mdiff.allblocks), or s.splitlines (used at the
end of the "annotate" method). Both len(mdiff.splitnewlines('')) and
len(''.splitlines(True)) are 0.

This issue was discovered while testing fastannotate [1].

I could not find a test case to reveal this issue. However in theory this
could reduce memory usage a little bit, and avoids surprises when people
are touching this area in the future.

[1]: https://bitbucket.org/facebook/hg-experimental/commits/525b3b98e93a
2016-10-01 14:18:58 +01:00
contrib perf: add perfchangegroupchangelog command 2016-09-24 12:22:30 -07:00
doc doc: remove double imports of inspect from hgmanpage.py 2016-05-14 14:37:25 +09:00
hgext histedit: avoid converting nodeid to context and back again 2016-09-27 22:09:28 -07:00
hgext3rd extensions: also search for extension in the 'hgext3rd' package 2016-03-11 10:30:08 +00:00
i18n i18n-pt_BR: synchronized with 9c29cf2af0ce 2016-08-31 13:58:33 -03:00
mercurial annotate: calculate line count correctly 2016-10-01 14:18:58 +01:00
tests py3: use unicode in is_frozen() 2016-10-02 05:29:17 +05:30
.editorconfig mercurial: add editorconfig 2016-04-05 18:10:33 +01:00
.hgignore make: turn ubuntu docker into template 2016-04-26 23:33:17 -07:00
.hgsigs Added signature for changeset 6c105ed84c14 2016-10-01 15:00:23 -04: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 hg: disable demandimport for py3 2016-05-11 23:24:41 +00:00
hgeditor spelling: trivial spell checking 2015-10-17 00:58:46 +02:00
hgweb.cgi urls: bulk-change primary website URLs 2015-09-30 15:43:49 -05:00
Makefile osx: stamp the hg version into the version field in the pkg 2016-08-12 17:51:48 -04:00
README urls: bulk-change primary website URLs 2015-09-30 15:43:49 -05:00
setup_bdiff_cffi.py bdiff: implement cffi version of blocks 2016-07-28 14:17:08 +02:00
setup_mpatch_cffi.py mpatch: add setup_mpatch_cffi.py 2016-08-28 17:51:32 -07:00
setup_osutil_cffi.py osutil: fix the declaration to work on different sizes of off_t 2016-09-08 10:37:58 +02:00
setup.py bdiff: implement cffi version of blocks 2016-07-28 14:17:08 +02: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 https://mercurial-scm.org/ for detailed installation
instructions, platform-specific notes, and Mercurial user information.