mercurial/cmdutil.py
changeset 26781 1aee2ab0f902
parent 26750 9f9ec4abe700
child 26937 dda0aa3baedd
child 27370 d9e3ebe56970
equal deleted inserted replaced
26780:bbf544b5f2e9 26781:1aee2ab0f902
    61 
    61 
    62 def recordfilter(ui, originalhunks, operation=None):
    62 def recordfilter(ui, originalhunks, operation=None):
    63     """ Prompts the user to filter the originalhunks and return a list of
    63     """ Prompts the user to filter the originalhunks and return a list of
    64     selected hunks.
    64     selected hunks.
    65     *operation* is used for ui purposes to indicate the user
    65     *operation* is used for ui purposes to indicate the user
    66     what kind of filtering they are doing: reverting, commiting, shelving, etc.
    66     what kind of filtering they are doing: reverting, committing, shelving, etc.
    67     *operation* has to be a translated string.
    67     *operation* has to be a translated string.
    68     """
    68     """
    69     usecurses =  ui.configbool('experimental', 'crecord', False)
    69     usecurses =  ui.configbool('experimental', 'crecord', False)
    70     testfile = ui.config('experimental', 'crecordtest', None)
    70     testfile = ui.config('experimental', 'crecordtest', None)
    71     oldwrite = setupwrapcolorwrite(ui)
    71     oldwrite = setupwrapcolorwrite(ui)
   839 #
   839 #
   840 # 'preimport' are run before the commit is made and are provided the following
   840 # 'preimport' are run before the commit is made and are provided the following
   841 # arguments:
   841 # arguments:
   842 # - repo: the localrepository instance,
   842 # - repo: the localrepository instance,
   843 # - patchdata: data extracted from patch header (cf m.patch.patchheadermap),
   843 # - patchdata: data extracted from patch header (cf m.patch.patchheadermap),
   844 # - extra: the future extra dictionnary of the changeset, please mutate it,
   844 # - extra: the future extra dictionary of the changeset, please mutate it,
   845 # - opts: the import options.
   845 # - opts: the import options.
   846 # XXX ideally, we would just pass an ctx ready to be computed, that would allow
   846 # XXX ideally, we would just pass an ctx ready to be computed, that would allow
   847 # mutation of in memory commit and more. Feel free to rework the code to get
   847 # mutation of in memory commit and more. Feel free to rework the code to get
   848 # there.
   848 # there.
   849 extrapreimportmap = {}
   849 extrapreimportmap = {}