Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 27401:186f2afe9919
patch: disable nobinary when HGPLAIN=1
The diff output without binaries is definitely great for interactive users - a
binary patch is not meaningful for them. Although setting diff.nobinary flag
can break the automation. Let's force full output for automation.
author | Mateusz Kwapich <mitrandir@fb.com> |
---|---|
date | Thu, 17 Dec 2015 11:00:06 -0800 |
parents | 8d3c5797a175 |
children | 14b184263846 |
comparison
equal
deleted
inserted
replaced
27400:64208bd4c580 | 27401:186f2afe9919 |
---|---|
2144 'ignorewsamount') | 2144 'ignorewsamount') |
2145 buildopts['ignoreblanklines'] = get('ignore_blank_lines', | 2145 buildopts['ignoreblanklines'] = get('ignore_blank_lines', |
2146 'ignoreblanklines') | 2146 'ignoreblanklines') |
2147 if formatchanging: | 2147 if formatchanging: |
2148 buildopts['text'] = opts and opts.get('text') | 2148 buildopts['text'] = opts and opts.get('text') |
2149 buildopts['nobinary'] = get('nobinary') | 2149 buildopts['nobinary'] = get('nobinary', forceplain=False) |
2150 buildopts['noprefix'] = get('noprefix', forceplain=False) | 2150 buildopts['noprefix'] = get('noprefix', forceplain=False) |
2151 | 2151 |
2152 return mdiff.diffopts(**buildopts) | 2152 return mdiff.diffopts(**buildopts) |
2153 | 2153 |
2154 def diff(repo, node1=None, node2=None, match=None, changes=None, opts=None, | 2154 def diff(repo, node1=None, node2=None, match=None, changes=None, opts=None, |