equal
deleted
inserted
replaced
480 if not (os.path.isfile(options.with_hg) and |
480 if not (os.path.isfile(options.with_hg) and |
481 os.access(options.with_hg, os.X_OK)): |
481 os.access(options.with_hg, os.X_OK)): |
482 parser.error('--with-hg must specify an executable hg script') |
482 parser.error('--with-hg must specify an executable hg script') |
483 if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']: |
483 if os.path.basename(options.with_hg) not in [b'hg', b'hg.exe']: |
484 sys.stderr.write('warning: --with-hg should specify an hg script\n') |
484 sys.stderr.write('warning: --with-hg should specify an hg script\n') |
|
485 sys.stderr.flush() |
485 if options.local: |
486 if options.local: |
486 testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0]))) |
487 testdir = os.path.dirname(_bytespath(canonpath(sys.argv[0]))) |
487 reporootdir = os.path.dirname(testdir) |
488 reporootdir = os.path.dirname(testdir) |
488 pathandattrs = [(b'hg', 'with_hg')] |
489 pathandattrs = [(b'hg', 'with_hg')] |
489 if options.chg: |
490 if options.chg: |