changeset 17969:6c67deb3d373

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.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Fri, 23 Nov 2012 11:59:44 -0500
parents a9f4a6076740
children 0b03454abae7
files mercurial/commands.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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