comparison mercurial/patch.py @ 25310:c1f5ef76d1c2

record: add an operation arguments to customize recording ui This patch is part of a series of patches to change the recording ui to reflect the operation currently running (commit, shelve, revert ...). This patch adds a new argument to the recording function to reflect in the UI what operation we are running.
author Laurent Charignon <lcharignon@fb.com>
date Wed, 27 May 2015 15:49:24 -0700
parents 3f0744eeaeaf
children 724421cb4745
comparison
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