sapling/eden/scm
Durham Goode 2e6735be81 patch: fix infinite loop for incorrect patches
Summary:
If a patch declared the length of it's last hunk as N lines, but it
only contained N-1 lines, the Rust code would enter into an infinite loop. This
could happen if a text editor remove the trailing spaces from a patch file.

Let's fix it and add a test

Reviewed By: kulshrax

Differential Revision: D28683977

fbshipit-source-id: 0a999ae108676531a2cf18e77a3b426ba4647164
2021-05-26 11:18:19 -07:00
..
contrib make: avoid fb python for make builds 2021-05-04 14:43:32 -07:00
distutils_rust distutils_rust: prefer lld as the linker 2021-04-27 10:30:48 -07:00
doc py3: fix test-help.t 2020-04-09 18:25:54 -07:00
edenscm mononokepeer: log extra timings 2021-05-26 06:47:46 -07:00
edenscmnative patch: fix infinite loop for incorrect patches 2021-05-26 11:18:19 -07:00
exec lib: remove #![deny(warnings)] 2021-04-21 12:24:47 -07:00
hgcache_size_logger add hgcache size logger 2020-08-26 04:24:50 -07:00
i18n apply pyfmt with usort to opted-in sources 2020-11-10 21:25:54 -08:00
lib scmstore: construct aux data store in scmstore builder 2021-05-25 21:52:15 -07:00
newdoc notes: add 2019-10 Manifests, Past and Future 2021-03-04 08:52:27 -08:00
pystubs eden: make the EdenFS import helper use EdenAPI's /trees endpoint instead of /complete_trees 2021-02-22 14:23:40 -08:00
slides apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
tests patch: fix infinite loop for incorrect patches 2021-05-26 11:18:19 -07:00
.editorconfig
.flake8 bookmarks: clean up scratch remotenames 2021-03-10 11:55:53 -08:00
.gitignore gitignore: track Makefile under scm 2021-03-04 08:52:27 -08:00
COPYING
gen_version.py version: a Rust crate providing version information 2020-05-18 09:00:40 -07:00
hgeditor
Makefile build: use the appropriate python version for getdeps builds 2021-05-12 14:24:20 -07:00
README.rst
setup3.py windows: fix Windows build for py3 build 2021-05-19 10:05:41 -07:00
setup.py windows: build Rust fbclone with Mercurial 2021-05-17 15:45:34 -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 https://mercurial-scm.org/ for detailed installation
instructions, platform-specific notes, and Mercurial user information.