bisect: add example for limiting bisection to specified directories
authorJordi Gutiérrez Hermoso <jordigh@octave.org>
Fri, 23 Nov 2012 11:59:44 -0500
changeset 17969 6c67deb3d373
parent 17968 a9f4a6076740
child 17970 0b03454abae7
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.
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