diff hgext/mq.py @ 3086:17747e80ea6c

mq: Add --git option to qrefresh
author Brendan Cully <brendan@kublai.com>
date Tue, 12 Sep 2006 11:11:19 -0700
parents 240ec0e61290
children fd1479e30aaf
line wrap: on
line diff
--- a/hgext/mq.py	Wed Sep 13 21:46:36 2006 +0200
+++ b/hgext/mq.py	Tue Sep 12 11:11:19 2006 -0700
@@ -995,6 +995,8 @@
             r = list(util.unique(dd))
             a = list(util.unique(aa))
             filelist = filter(matchfn, util.unique(m + r + a))
+            if opts.get('git'):
+                self.diffopts().git = True
             patch.diff(repo, patchparent, files=filelist, match=matchfn,
                        fp=patchf, changes=(m, a, r, [], u),
                        opts=self.diffopts())
@@ -1966,6 +1968,7 @@
          [('e', 'edit', None, _('edit commit message')),
           ('m', 'message', '', _('change commit message with <text>')),
           ('l', 'logfile', '', _('change commit message with <file> content')),
+          ('g', 'git', None, _('use git extended diff format')),
           ('s', 'short', None, 'short refresh'),
           ('I', 'include', [], _('include names matching the given patterns')),
           ('X', 'exclude', [], _('exclude names matching the given patterns'))],