diff mercurial/crecord.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 d71492ca2fdd
children 724421cb4745
line wrap: on
line diff
--- a/mercurial/crecord.py	Sun Apr 26 18:13:48 2015 +0900
+++ b/mercurial/crecord.py	Wed May 27 15:49:24 2015 -0700
@@ -425,7 +425,7 @@
     def __repr__(self):
         return '<hunk %r@%d>' % (self.filename(), self.fromline)
 
-def filterpatch(ui, chunks, chunkselector):
+def filterpatch(ui, chunks, chunkselector, operation=None):
     """interactively filter patch chunks into applied-only chunks"""
 
     chunks = list(chunks)