hgext/mq.py
changeset 6561 c242fc76958e
parent 6554 3182602fa1fb
child 6562 090f2145df7d
child 6606 088ba40585b9
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")