mercurial/patch.py
changeset 25359 724421cb4745
parent 25310 c1f5ef76d1c2
child 25424 69609f43c752
equal deleted inserted replaced
25358:31f3636e9296 25359:724421cb4745
   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, operation=None):
   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     if operation is None:
       
   954         operation = _('record')
   953 
   955 
   954     def prompt(skipfile, skipall, query, chunk):
   956     def prompt(skipfile, skipall, query, chunk):
   955         """prompt query, and process base inputs
   957         """prompt query, and process base inputs
   956 
   958 
   957         - y/n for the rest of file
   959         - y/n for the rest of file