Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 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 | a08775ec89f2 |
children | e853d27956fb |
comparison
equal
deleted
inserted
replaced
17968:a9f4a6076740 | 17969:6c67deb3d373 |
---|---|
546 - mark the current revision, or a known revision, to be skipped (e.g. if | 546 - mark the current revision, or a known revision, to be skipped (e.g. if |
547 that revision is not usable because of another issue):: | 547 that revision is not usable because of another issue):: |
548 | 548 |
549 hg bisect --skip | 549 hg bisect --skip |
550 hg bisect --skip 23 | 550 hg bisect --skip 23 |
551 | |
552 - skip all revisions that do not touch directories ``foo`` or ``bar`` | |
553 | |
554 hg bisect --skip '!( file("path:foo") & file("path:bar") )' | |
551 | 555 |
552 - forget the current bisection:: | 556 - forget the current bisection:: |
553 | 557 |
554 hg bisect --reset | 558 hg bisect --reset |
555 | 559 |