equal
deleted
inserted
replaced
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") |