Show More
@@ -147,6 +147,9 b" coreconfigitem('annotate', 'nobinary'," | |||||
147 | coreconfigitem('annotate', 'noprefix', |
|
147 | coreconfigitem('annotate', 'noprefix', | |
148 | default=False, |
|
148 | default=False, | |
149 | ) |
|
149 | ) | |
|
150 | coreconfigitem('annotate', 'word-diff', | |||
|
151 | default=False, | |||
|
152 | ) | |||
150 | coreconfigitem('auth', 'cookiefile', |
|
153 | coreconfigitem('auth', 'cookiefile', | |
151 | default=None, |
|
154 | default=None, | |
152 | ) |
|
155 | ) | |
@@ -399,6 +402,9 b" coreconfigitem('diff', 'nobinary'," | |||||
399 | coreconfigitem('diff', 'noprefix', |
|
402 | coreconfigitem('diff', 'noprefix', | |
400 | default=False, |
|
403 | default=False, | |
401 | ) |
|
404 | ) | |
|
405 | coreconfigitem('diff', 'word-diff', | |||
|
406 | default=False, | |||
|
407 | ) | |||
402 | coreconfigitem('email', 'bcc', |
|
408 | coreconfigitem('email', 'bcc', | |
403 | default=None, |
|
409 | default=None, | |
404 | ) |
|
410 | ) | |
@@ -512,9 +518,6 b" coreconfigitem('experimental', 'evolutio" | |||||
512 | coreconfigitem('experimental', 'evolution.track-operation', |
|
518 | coreconfigitem('experimental', 'evolution.track-operation', | |
513 | default=True, |
|
519 | default=True, | |
514 | ) |
|
520 | ) | |
515 | coreconfigitem('experimental', 'worddiff', |
|
|||
516 | default=False, |
|
|||
517 | ) |
|
|||
518 | coreconfigitem('experimental', 'maxdeltachainspan', |
|
521 | coreconfigitem('experimental', 'maxdeltachainspan', | |
519 | default=-1, |
|
522 | default=-1, | |
520 | ) |
|
523 | ) |
@@ -53,7 +53,6 b' def difffeatureopts(ui, opts=None, untru' | |||||
53 | 'showfunc': get('show_function', 'showfunc'), |
|
53 | 'showfunc': get('show_function', 'showfunc'), | |
54 | 'context': get('unified', getter=ui.config), |
|
54 | 'context': get('unified', getter=ui.config), | |
55 | } |
|
55 | } | |
56 | buildopts['worddiff'] = ui.configbool('experimental', 'worddiff') |
|
|||
57 | buildopts['xdiff'] = ui.configbool('experimental', 'xdiff') |
|
56 | buildopts['xdiff'] = ui.configbool('experimental', 'xdiff') | |
58 |
|
57 | |||
59 | if git: |
|
58 | if git: | |
@@ -101,5 +100,6 b' def difffeatureopts(ui, opts=None, untru' | |||||
101 | buildopts['nobinary'] = (not binary if binary is not None |
|
100 | buildopts['nobinary'] = (not binary if binary is not None | |
102 | else get('nobinary', forceplain=False)) |
|
101 | else get('nobinary', forceplain=False)) | |
103 | buildopts['noprefix'] = get('noprefix', forceplain=False) |
|
102 | buildopts['noprefix'] = get('noprefix', forceplain=False) | |
|
103 | buildopts['worddiff'] = get('word_diff', 'word-diff', forceplain=False) | |||
104 |
|
104 | |||
105 | return mdiff.diffopts(**pycompat.strkwargs(buildopts)) |
|
105 | return mdiff.diffopts(**pycompat.strkwargs(buildopts)) |
@@ -702,6 +702,9 b' for related options for the annotate com' | |||||
702 | ``unified`` |
|
702 | ``unified`` | |
703 | Number of lines of context to show. |
|
703 | Number of lines of context to show. | |
704 |
|
704 | |||
|
705 | ``word-diff`` | |||
|
706 | Highlight changed words. | |||
|
707 | ||||
705 | ``email`` |
|
708 | ``email`` | |
706 | --------- |
|
709 | --------- | |
707 |
|
710 |
@@ -304,7 +304,7 b' test inline color diff' | |||||
304 | > three of those lines have |
|
304 | > three of those lines have | |
305 | > collapsed onto one |
|
305 | > collapsed onto one | |
306 | > EOF |
|
306 | > EOF | |
307 |
$ hg diff --config |
|
307 | $ hg diff --config diff.word-diff=False --color=debug | |
308 | [diff.diffline|diff --git a/file1 b/file1] |
|
308 | [diff.diffline|diff --git a/file1 b/file1] | |
309 | [diff.file_a|--- a/file1] |
|
309 | [diff.file_a|--- a/file1] | |
310 | [diff.file_b|+++ b/file1] |
|
310 | [diff.file_b|+++ b/file1] | |
@@ -337,7 +337,7 b' test inline color diff' | |||||
337 | [diff.deleted|-(to see if it works)] |
|
337 | [diff.deleted|-(to see if it works)] | |
338 | [diff.inserted|+three of those lines have] |
|
338 | [diff.inserted|+three of those lines have] | |
339 | [diff.inserted|+collapsed onto one] |
|
339 | [diff.inserted|+collapsed onto one] | |
340 |
$ hg diff --config |
|
340 | $ hg diff --config diff.word-diff=True --color=debug | |
341 | [diff.diffline|diff --git a/file1 b/file1] |
|
341 | [diff.diffline|diff --git a/file1 b/file1] | |
342 | [diff.file_a|--- a/file1] |
|
342 | [diff.file_a|--- a/file1] | |
343 | [diff.file_b|+++ b/file1] |
|
343 | [diff.file_b|+++ b/file1] | |
@@ -384,7 +384,7 b" multibyte character shouldn't be broken " | |||||
384 | > EOF |
|
384 | > EOF | |
385 | $ hg ci -m 'slightly change utf8 char' utf8 |
|
385 | $ hg ci -m 'slightly change utf8 char' utf8 | |
386 |
|
386 | |||
387 |
$ hg diff --config |
|
387 | $ hg diff --config diff.word-diff=True --color=debug -c. | |
388 | [diff.diffline|diff --git a/utf8 b/utf8] |
|
388 | [diff.diffline|diff --git a/utf8 b/utf8] | |
389 | [diff.file_a|--- a/utf8] |
|
389 | [diff.file_a|--- a/utf8] | |
390 | [diff.file_b|+++ b/utf8] |
|
390 | [diff.file_b|+++ b/utf8] |
General Comments 0
You need to be logged in to leave comments.
Login now