Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/patch.py Sun Apr 26 18:13:48 2015 +0900 +++ b/mercurial/patch.py Wed May 27 15:49:24 2015 -0700 @@ -948,7 +948,7 @@ def __repr__(self): return '<hunk %r@%d>' % (self.filename(), self.fromline) -def filterpatch(ui, headers): +def filterpatch(ui, headers, operation=None): """Interactively filter patch chunks into applied-only chunks""" def prompt(skipfile, skipall, query, chunk):