Mercurial > hg
comparison mercurial/commands.py @ 23298:dc4d0c7b7d94
diff: add a --noprefix option
See previous patch descriptions for the motivation.
The tests reflect the current state of the world -- as we add support we'll see
changes in the test output.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Thu, 13 Nov 2014 00:13:48 -0800 |
parents | ae5d0a22ee7e |
children | 3177d710630d |
comparison
equal
deleted
inserted
replaced
23297:d7abae94a7a0 | 23298:dc4d0c7b7d94 |
---|---|
139 ('B', 'ignore-blank-lines', None, | 139 ('B', 'ignore-blank-lines', None, |
140 _('ignore changes whose lines are all blank')), | 140 _('ignore changes whose lines are all blank')), |
141 ] | 141 ] |
142 | 142 |
143 diffopts2 = [ | 143 diffopts2 = [ |
144 ('', 'noprefix', None, _('omit a/ and b/ prefixes from filenames')), | |
144 ('p', 'show-function', None, _('show which function each change is in')), | 145 ('p', 'show-function', None, _('show which function each change is in')), |
145 ('', 'reverse', None, _('produce a diff that undoes the changes')), | 146 ('', 'reverse', None, _('produce a diff that undoes the changes')), |
146 ] + diffwsopts + [ | 147 ] + diffwsopts + [ |
147 ('U', 'unified', '', | 148 ('U', 'unified', '', |
148 _('number of lines of context to show'), _('NUM')), | 149 _('number of lines of context to show'), _('NUM')), |