mercurial/patch.py
changeset 25310 c1f5ef76d1c2
parent 25149 3f0744eeaeaf
child 25359 724421cb4745
equal deleted inserted replaced
25309:b333ca94403d 25310:c1f5ef76d1c2
   946         return self.header.filename()
   946         return self.header.filename()
   947 
   947 
   948     def __repr__(self):
   948     def __repr__(self):
   949         return '<hunk %r@%d>' % (self.filename(), self.fromline)
   949         return '<hunk %r@%d>' % (self.filename(), self.fromline)
   950 
   950 
   951 def filterpatch(ui, headers):
   951 def filterpatch(ui, headers, operation=None):
   952     """Interactively filter patch chunks into applied-only chunks"""
   952     """Interactively filter patch chunks into applied-only chunks"""
   953 
   953 
   954     def prompt(skipfile, skipall, query, chunk):
   954     def prompt(skipfile, skipall, query, chunk):
   955         """prompt query, and process base inputs
   955         """prompt query, and process base inputs
   956 
   956