equal
deleted
inserted
replaced
679 |
679 |
680 |
680 |
681 @check("serve", "platform and python can manage 'hg serve -d'") |
681 @check("serve", "platform and python can manage 'hg serve -d'") |
682 def has_serve(): |
682 def has_serve(): |
683 return True |
683 return True |
|
684 |
|
685 |
|
686 @check("setprocname", "whether osutil.setprocname is available or not") |
|
687 def has_setprocname(): |
|
688 try: |
|
689 from mercurial.utils import procutil |
|
690 |
|
691 procutil.setprocname |
|
692 return True |
|
693 except AttributeError: |
|
694 return False |
684 |
695 |
685 |
696 |
686 @check("test-repo", "running tests from repository") |
697 @check("test-repo", "running tests from repository") |
687 def has_test_repo(): |
698 def has_test_repo(): |
688 t = os.environ["TESTDIR"] |
699 t = os.environ["TESTDIR"] |