Mercurial > hg
view contrib/vagrant/provision.sh @ 24433:f5f4dc115fb2
patch.diff: restrict matcher to relative root in certain cases
Previously we'd request all results, then filter by relative root. This is
clearly inefficient, so we now restrict the matcher to the relative root for
certain easy cases.
The particular case here is when the matcher matches all files. In that case we
can simply create a matcher by the relative root.
This is purely an optimization and has no impact on correctness.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Tue, 17 Mar 2015 15:46:36 -0700 |
parents | 8da01b6e7b49 |
children |
line wrap: on
line source
#!/bin/sh # This scripts is used to install dependencies for # testing Mercurial. Mainly used by Vagrant (see # Vagrantfile for details). export DEBIAN_FRONTEND=noninteractive apt-get update apt-get install -y -q python-dev unzip # run-tests.sh is added by Vagrantfile chmod +x run-tests.sh