# HG changeset patch # User Alexis S. L. Carvalho # Date 2006-11-20 21:32:41 # Node ID a9090b264250819419417c2af023e3a444ee5a49 # Parent da262f35fbc8c6a8422e4c100338722153fa57e5 qrefresh: respect --git even in the slow path diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -966,6 +966,8 @@ class queue: comments = "\n".join(comments) + '\n\n' patchf.write(comments) + if opts.get('git'): + self.diffopts().git = True fns, matchfn, anypats = cmdutil.matchpats(repo, pats, opts) tip = repo.changelog.tip() if top == tip: @@ -1021,8 +1023,6 @@ class queue: r = util.unique(dd) a = 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())