changeset 5025:7041869a1bf6

mq: add qnew --git option
author Patrick Mezard <pmezard@gmail.com>
date Sat, 28 Jul 2007 20:15:54 +0200
parents 7963438881f5
children 48ebd6a83994
files hgext/mq.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/mq.py	Fri Jul 27 14:30:20 2007 -0700
+++ b/hgext/mq.py	Sat Jul 28 20:15:54 2007 +0200
@@ -635,7 +635,7 @@
             r = self.qrepo()
             if r: r.add([patch])
             if commitfiles:
-                self.refresh(repo, short=True)
+                self.refresh(repo, short=True, git=opts.get('git'))
             self.removeundo(repo)
         finally:
             del wlock
@@ -2183,6 +2183,7 @@
         (new,
          [('e', 'edit', None, _('edit commit message')),
           ('f', 'force', None, _('import uncommitted changes into patch')),
+          ('g', 'git', None, _('use git extended diff format')),
           ('I', 'include', [], _('include names matching the given patterns')),
           ('X', 'exclude', [], _('exclude names matching the given patterns')),
           ] + commands.commitopts,