changeset 6043:6283316bcfd4

Merge with crew
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 06 Feb 2008 20:00:35 -0800
parents 2da5b19a6460 (diff) 1209dc9d59de (current diff)
children 9360a58a09e6
files hgext/mq.py
diffstat 4 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Thu Feb 07 00:41:30 2008 +0100
+++ b/hgext/mq.py	Wed Feb 06 20:00:35 2008 -0800
@@ -2245,8 +2245,9 @@
     "^qdiff":
         (diff,
          [('g', 'git', None, _('use git extended diff format')),
+          ('U', 'unified', 3, _('number of lines of context to show')),
          ] + commands.walkopts,
-         _('hg qdiff [-I] [-X] [-g] [FILE]...')),
+         _('hg qdiff [-I] [-X] [-U NUM] [-g] [FILE]...')),
     "qdelete|qremove|qrm":
         (delete,
          [('k', 'keep', None, _('keep patch file')),
--- a/mercurial/commands.py	Thu Feb 07 00:41:30 2008 +0100
+++ b/mercurial/commands.py	Wed Feb 06 20:00:35 2008 -0800
@@ -2832,6 +2832,8 @@
            _('ignore changes in the amount of white space')),
           ('B', 'ignore-blank-lines', None,
            _('ignore changes whose lines are all blank')),
+          ('U', 'unified', 3,
+           _('number of lines of context to show'))
          ] + walkopts,
          _('hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...')),
     "^export":
--- a/mercurial/patch.py	Thu Feb 07 00:41:30 2008 +0100
+++ b/mercurial/patch.py	Wed Feb 06 20:00:35 2008 -0800
@@ -1056,7 +1056,8 @@
         showfunc=get('show_function', 'showfunc'),
         ignorews=get('ignore_all_space', 'ignorews'),
         ignorewsamount=get('ignore_space_change', 'ignorewsamount'),
-        ignoreblanklines=get('ignore_blank_lines', 'ignoreblanklines'))
+        ignoreblanklines=get('ignore_blank_lines', 'ignoreblanklines'),
+        context=get('unified'))
 
 def updatedir(ui, repo, patches):
     '''Update dirstate after patch application according to metadata'''
--- a/tests/test-help.out	Thu Feb 07 00:41:30 2008 +0100
+++ b/tests/test-help.out	Wed Feb 06 20:00:35 2008 -0800
@@ -205,6 +205,7 @@
  -w --ignore-all-space     ignore white space when comparing lines
  -b --ignore-space-change  ignore changes in the amount of white space
  -B --ignore-blank-lines   ignore changes whose lines are all blank
+ -U --unified              number of lines of context to show (default: 3)
  -I --include              include names matching the given patterns
  -X --exclude              exclude names matching the given patterns