Mercurial > hg
comparison hgext/mq.py @ 6561:c242fc76958e
mq: fix qdiff -U (it apparently never really worked)
author | Jason Orendorff <jorendorff@mozilla.com> |
---|---|
date | Fri, 18 Apr 2008 17:25:10 +0200 |
parents | 3182602fa1fb |
children | 090f2145df7d 088ba40585b9 |
comparison
equal
deleted
inserted
replaced
6560:90ec0e8fa4d0 | 6561:c242fc76958e |
---|---|
935 self.ui.write("No patches applied\n") | 935 self.ui.write("No patches applied\n") |
936 return | 936 return |
937 qp = self.qparents(repo, top) | 937 qp = self.qparents(repo, top) |
938 if opts.get('git'): | 938 if opts.get('git'): |
939 self.diffopts().git = True | 939 self.diffopts().git = True |
940 if opts.get('unified') is not None: | |
941 self.diffopts().context = opts['unified'] | |
940 self.printdiff(repo, qp, files=pats, opts=opts) | 942 self.printdiff(repo, qp, files=pats, opts=opts) |
941 | 943 |
942 def refresh(self, repo, pats=None, **opts): | 944 def refresh(self, repo, pats=None, **opts): |
943 if len(self.applied) == 0: | 945 if len(self.applied) == 0: |
944 self.ui.write("No patches applied\n") | 946 self.ui.write("No patches applied\n") |