hgbook
diff en/examples/run-example @ 168:f8b5b782e150
Backed out changeset 08a4467f489162c14cf17b94aa771a23dd6f02dc
It just didn't work. Sigh.
It just didn't work. Sigh.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon Mar 26 23:20:59 2007 -0700 (2007-03-26) |
parents | 08a4467f4891 |
children | 5f305adeb584 |
line diff
1.1 --- a/en/examples/run-example Mon Mar 26 22:59:43 2007 -0700 1.2 +++ b/en/examples/run-example Mon Mar 26 23:20:59 2007 -0700 1.3 @@ -50,7 +50,7 @@ 1.4 shell = '/usr/bin/env bash' 1.5 ps1 = '__run_example_ps1__ ' 1.6 ps2 = '__run_example_ps2__ ' 1.7 - pi_re = re.compile(r'#\$\s*(drop_output|name|ignore):\s*(.*)$') 1.8 + pi_re = re.compile(r'#\$\s*(name|ignore):\s*(.*)$') 1.9 1.10 timeout = 5 1.11 1.12 @@ -189,8 +189,6 @@ 1.13 1.14 err = False 1.15 1.16 - drop_output = False 1.17 - 1.18 try: 1.19 try: 1.20 # eat first prompt string from shell 1.21 @@ -221,12 +219,10 @@ 1.22 ofp = None 1.23 elif pi == 'ignore': 1.24 ignore.append(rest) 1.25 - elif pi == 'drop_output': 1.26 - drop_output = dict(yes=1,no=0)[rest.lower()] 1.27 elif hunk.strip(): 1.28 # it's something we should execute 1.29 newps, output = self.sendreceive(hunk) 1.30 - if not ofp or drop_output: 1.31 + if not ofp: 1.32 continue 1.33 # first, print the command we ran 1.34 if not hunk.startswith('#'):