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