comparison mercurial/cmdutil.py @ 25358:31f3636e9296

record: precise documentation This patch improves the documentation of the recordfilter function to explain that we need a translated string for the 'operation' argument.
author Laurent Charignon <lcharignon@fb.com>
date Thu, 28 May 2015 16:41:47 -0700
parents c1f5ef76d1c2
children 69609f43c752
comparison
equal deleted inserted replaced
25357:efa2621c2859 25358:31f3636e9296
61 def recordfilter(ui, originalhunks, operation=None): 61 def recordfilter(ui, originalhunks, operation=None):
62 """ Prompts the user to filter the originalhunks and return a list of 62 """ Prompts the user to filter the originalhunks and return a list of
63 selected hunks. 63 selected hunks.
64 *operation* is used for ui purposes to indicate the user 64 *operation* is used for ui purposes to indicate the user
65 what kind of filtering they are doing: reverting, commiting, shelving, etc. 65 what kind of filtering they are doing: reverting, commiting, shelving, etc.
66 *operation* has to be a translated string.
66 """ 67 """
67 usecurses = ui.configbool('experimental', 'crecord', False) 68 usecurses = ui.configbool('experimental', 'crecord', False)
68 testfile = ui.config('experimental', 'crecordtest', None) 69 testfile = ui.config('experimental', 'crecordtest', None)
69 oldwrite = setupwrapcolorwrite(ui) 70 oldwrite = setupwrapcolorwrite(ui)
70 try: 71 try: