equal
deleted
inserted
replaced
879 problems += 1 |
879 problems += 1 |
880 |
880 |
881 # patch |
881 # patch |
882 ui.status(_("Checking patch...\n")) |
882 ui.status(_("Checking patch...\n")) |
883 path = os.environ.get('PATH', '') |
883 path = os.environ.get('PATH', '') |
884 patcher = util.find_in_path('gpatch', path, |
884 patcher = ui.config('ui', 'patch') |
885 util.find_in_path('patch', path, None)) |
885 if not patcher: |
|
886 patcher = util.find_in_path('gpatch', path, |
|
887 util.find_in_path('patch', path, None)) |
886 if not patcher: |
888 if not patcher: |
887 ui.write(_(" Can't find patch or gpatch in PATH\n")) |
889 ui.write(_(" Can't find patch or gpatch in PATH\n")) |
888 ui.write(_(" (specify a patch utility in your .hgrc file)\n")) |
890 ui.write(_(" (specify a patch utility in your .hgrc file)\n")) |
889 problems += 1 |
891 problems += 1 |
890 else: |
892 else: |