# HG changeset patch # User Bryan O'Sullivan # Date 1174976459 25200 # Node ID f8b5b782e150961e392b0fef9f16d3be7da9f922 # Parent 08a4467f489162c14cf17b94aa771a23dd6f02dc Backed out changeset 08a4467f489162c14cf17b94aa771a23dd6f02dc It just didn't work. Sigh. diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect --- a/en/examples/bisect Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect Mon Mar 26 23:20:59 2007 -0700 @@ -6,6 +6,8 @@ # XXX There's some kind of horrible nondeterminism in the execution of # bisect at the moment. Ugh. +#$ ignore: .* + #$ name: init hg init mybug @@ -38,8 +40,6 @@ hg bisect bad -#$ drop_output: yes - #$ name: search.good-init hg bisect good 10 diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.commits.out --- a/en/examples/bisect.commits.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.commits.out Mon Mar 26 23:20:59 2007 -0700 @@ -1,10 +1,10 @@ -$ \textbf{buggy_change=37} -$ \textbf{for (( i = 0; i < 50; i++ )); do} -> \textbf{ if [[ $i = $buggy_change ]]; then} -> \textbf{ echo 'i have a gub' > myfile$i} -> \textbf{ hg commit -q -A -m 'buggy changeset'} -> \textbf{ else} -> \textbf{ echo 'nothing to see here, move along' > myfile$i} -> \textbf{ hg commit -q -A -m 'normal changeset'} -> \textbf{ fi} -> \textbf{done} + + + + + + + + + + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.help.out --- a/en/examples/bisect.help.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.help.out Mon Mar 26 23:20:59 2007 -0700 @@ -1,14 +1,14 @@ -$ \textbf{hg help bisect} -hg bisect [help|init|reset|next|good|bad] -bisect extension: dichotomic search in the DAG of changesets -for subcommands see "hg bisect help" -$ \textbf{hg bisect help} -list of subcommands for the bisect extension - bad mark revision as bad and update to the next revision to test - good mark revision as good and update to the next revision to test - help show help for a given bisect subcommand or all subcommands - init start a new bisection - next find and update to the next revision to test - reset finish a bisection + + + + + + + + + + + + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.init.out --- a/en/examples/bisect.init.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.init.out Mon Mar 26 23:20:59 2007 -0700 @@ -1,2 +1,2 @@ -$ \textbf{hg init mybug} -$ \textbf{cd mybug} + + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.search.bad-init.out --- a/en/examples/bisect.search.bad-init.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.search.bad-init.out Mon Mar 26 23:20:59 2007 -0700 @@ -1,1 +1,1 @@ -$ \textbf{hg bisect bad} + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.search.good-init.out --- a/en/examples/bisect.search.good-init.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.search.good-init.out Mon Mar 26 23:20:59 2007 -0700 @@ -0,0 +1,3 @@ + + + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.search.init.out --- a/en/examples/bisect.search.init.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.search.init.out Mon Mar 26 23:20:59 2007 -0700 @@ -1,1 +1,1 @@ -$ \textbf{hg bisect init} + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.search.mytest.out --- a/en/examples/bisect.search.mytest.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.search.mytest.out Mon Mar 26 23:20:59 2007 -0700 @@ -0,0 +1,10 @@ + + + + + + + + + + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.search.reset.out --- a/en/examples/bisect.search.reset.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.search.reset.out Mon Mar 26 23:20:59 2007 -0700 @@ -0,0 +1,1 @@ + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.search.rest.out --- a/en/examples/bisect.search.rest.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.search.rest.out Mon Mar 26 23:20:59 2007 -0700 @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.search.step1.out --- a/en/examples/bisect.search.step1.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.search.step1.out Mon Mar 26 23:20:59 2007 -0700 @@ -0,0 +1,11 @@ + + + + + + + + + + + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/bisect.search.step2.out --- a/en/examples/bisect.search.step2.out Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/bisect.search.step2.out Mon Mar 26 23:20:59 2007 -0700 @@ -0,0 +1,4 @@ + + + + diff -r 08a4467f4891 -r f8b5b782e150 en/examples/run-example --- a/en/examples/run-example Mon Mar 26 22:59:43 2007 -0700 +++ b/en/examples/run-example Mon Mar 26 23:20:59 2007 -0700 @@ -50,7 +50,7 @@ shell = '/usr/bin/env bash' ps1 = '__run_example_ps1__ ' ps2 = '__run_example_ps2__ ' - pi_re = re.compile(r'#\$\s*(drop_output|name|ignore):\s*(.*)$') + pi_re = re.compile(r'#\$\s*(name|ignore):\s*(.*)$') timeout = 5 @@ -189,8 +189,6 @@ err = False - drop_output = False - try: try: # eat first prompt string from shell @@ -221,12 +219,10 @@ ofp = None elif pi == 'ignore': ignore.append(rest) - elif pi == 'drop_output': - drop_output = dict(yes=1,no=0)[rest.lower()] elif hunk.strip(): # it's something we should execute newps, output = self.sendreceive(hunk) - if not ofp or drop_output: + if not ofp: continue # first, print the command we ran if not hunk.startswith('#'):