diff mercurial/patch.py @ 23297:d7abae94a7a0

patch.diffopts: add support for noprefix In an upcoming patch we'll enable support as an option to 'hg diff' as well. 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:08:44 -0800
parents 922fcfb02e77
children f8b5c3e77d4b
line wrap: on
line diff
--- a/mercurial/patch.py	Wed Nov 12 23:47:25 2014 -0800
+++ b/mercurial/patch.py	Thu Nov 13 00:08:44 2014 -0800
@@ -1573,6 +1573,7 @@
         git=get('git'),
         nodates=get('nodates'),
         nobinary=get('nobinary'),
+        noprefix=get('noprefix', forceplain=False),
         showfunc=get('show_function', 'showfunc'),
         ignorews=get('ignore_all_space', 'ignorews'),
         ignorewsamount=get('ignore_space_change', 'ignorewsamount'),