Show More
@@ -432,6 +432,9 b' ui::' | |||
|
432 | 432 | merge;; |
|
433 | 433 | The conflict resolution program to use during a manual merge. |
|
434 | 434 | Default is "hgmerge". |
|
435 | patch;; | |
|
436 | command to use to apply patches. Look for 'gpatch' or 'patch' in PATH if | |
|
437 | unset. | |
|
435 | 438 | quiet;; |
|
436 | 439 | Reduce the amount of output printed. True or False. Default is False. |
|
437 | 440 | remotecmd;; |
@@ -881,8 +881,10 b' def debuginstall(ui):' | |||
|
881 | 881 | # patch |
|
882 | 882 | ui.status(_("Checking patch...\n")) |
|
883 | 883 | path = os.environ.get('PATH', '') |
|
884 |
patcher = u |
|
|
885 | util.find_in_path('patch', path, None)) | |
|
884 | patcher = ui.config('ui', 'patch') | |
|
885 | if not patcher: | |
|
886 | patcher = util.find_in_path('gpatch', path, | |
|
887 | util.find_in_path('patch', path, None)) | |
|
886 | 888 | if not patcher: |
|
887 | 889 | ui.write(_(" Can't find patch or gpatch in PATH\n")) |
|
888 | 890 | ui.write(_(" (specify a patch utility in your .hgrc file)\n")) |
@@ -293,11 +293,13 b' def patch(patchname, ui, strip=1, cwd=No' | |||
|
293 | 293 | """patch and updates the files and fuzz variables""" |
|
294 | 294 | fuzz = False |
|
295 | 295 | |
|
296 | patcher = util.find_in_path('gpatch', os.environ.get('PATH', ''), | |
|
297 | 'patch') | |
|
298 | 296 | args = [] |
|
299 | if util.needbinarypatch(): | |
|
300 | args.append('--binary') | |
|
297 | patcher = ui.config('ui', 'patch') | |
|
298 | if not patcher: | |
|
299 | patcher = util.find_in_path('gpatch', os.environ.get('PATH', ''), | |
|
300 | 'patch') | |
|
301 | if util.needbinarypatch(): | |
|
302 | args.append('--binary') | |
|
301 | 303 | |
|
302 | 304 | if cwd: |
|
303 | 305 | args.append('-d %s' % util.shellquote(cwd)) |
General Comments 0
You need to be logged in to leave comments.
Login now