# HG changeset patch # User Alexis S. L. Carvalho # Date 1164058360 7200 # Node ID da262f35fbc8c6a8422e4c100338722153fa57e5 # Parent 562a65635bcbdd76b3a2bf5c7c20f5c40b326519 add --git option to qdiff diff -r 562a65635bcb -r da262f35fbc8 hgext/mq.py --- a/hgext/mq.py Mon Nov 20 19:32:38 2006 -0200 +++ b/hgext/mq.py Mon Nov 20 19:32:40 2006 -0200 @@ -935,6 +935,8 @@ self.ui.write("No patches applied\n") return qp = self.qparents(repo, top) + if opts.get('git'): + self.diffopts().git = True self.printdiff(repo, qp, files=pats, opts=opts) def refresh(self, repo, pats=None, **opts): @@ -2071,7 +2073,8 @@ commands.table["^commit|ci"][1], 'hg qcommit [OPTION]... [FILE]...'), "^qdiff": (diff, - [('I', 'include', [], _('include names matching the given patterns')), + [('g', 'git', None, _('use git extended diff format')), + ('I', 'include', [], _('include names matching the given patterns')), ('X', 'exclude', [], _('exclude names matching the given patterns'))], 'hg qdiff [-I] [-X] [FILE]...'), "qdelete|qremove|qrm": diff -r 562a65635bcb -r da262f35fbc8 tests/test-mq --- a/tests/test-mq Mon Nov 20 19:32:38 2006 -0200 +++ b/tests/test-mq Mon Nov 20 19:32:40 2006 -0200 @@ -202,3 +202,8 @@ hg qpop hg qpush hg qdiff +cat >>$HGRCPATH <