##// END OF EJS Templates
run-tests: handle --local before --with-hg...
Martin von Zweigbergk -
r43085:69506e1b default
parent child Browse files
Show More
@@ -484,14 +484,6 b' def parseargs(args, parser):'
484 484 if 'java' in sys.platform or '__pypy__' in sys.modules:
485 485 options.pure = True
486 486
487 if options.with_hg:
488 options.with_hg = canonpath(_bytespath(options.with_hg))
489 if not (os.path.isfile(options.with_hg) and
490 os.access(options.with_hg, os.X_OK)):
491 parser.error('--with-hg must specify an executable hg script')
492 if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']:
493 sys.stderr.write('warning: --with-hg should specify an hg script\n')
494 sys.stderr.flush()
495 487 if options.local:
496 488 if options.with_hg or options.with_chg:
497 489 parser.error('--local cannot be used with --with-hg or --with-chg')
@@ -505,7 +497,16 b' def parseargs(args, parser):'
505 497 if os.name != 'nt' and not os.access(binpath, os.X_OK):
506 498 parser.error('--local specified, but %r not found or '
507 499 'not executable' % binpath)
508 setattr(options, attr, binpath)
500 setattr(options, attr, _strpath(binpath))
501
502 if options.with_hg:
503 options.with_hg = canonpath(_bytespath(options.with_hg))
504 if not (os.path.isfile(options.with_hg) and
505 os.access(options.with_hg, os.X_OK)):
506 parser.error('--with-hg must specify an executable hg script')
507 if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']:
508 sys.stderr.write('warning: --with-hg should specify an hg script\n')
509 sys.stderr.flush()
509 510
510 511 if (options.chg or options.with_chg) and os.name == 'nt':
511 512 parser.error('chg does not work on %s' % os.name)
General Comments 0
You need to be logged in to leave comments. Login now