# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1353689984 18000 # Node ID 6c67deb3d3739232d727c414b6d55cb548ad586f # Parent a9f4a60767408bb1e29c5f7c3c7c6e06b96d585b bisect: add example for limiting bisection to specified directories The bisect command does not have an option to limit itself only to subdirectories, but it's possible to use revsets for the --skip option for the same effect. Given the relative obscurity of revsets, it helps to have this as another example for bisect. diff -r a9f4a6076740 -r 6c67deb3d373 mercurial/commands.py --- a/mercurial/commands.py Tue Nov 27 14:58:00 2012 -0800 +++ b/mercurial/commands.py Fri Nov 23 11:59:44 2012 -0500 @@ -549,6 +549,10 @@ hg bisect --skip hg bisect --skip 23 + - skip all revisions that do not touch directories ``foo`` or ``bar`` + + hg bisect --skip '!( file("path:foo") & file("path:bar") )' + - forget the current bisection:: hg bisect --reset