Mercurial > public > mercurial-scm > hg
comparison mercurial/cmdutil.py @ 26781:1aee2ab0f902
spelling: trivial spell checking
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sat, 17 Oct 2015 00:58:46 +0200 |
parents | 9f9ec4abe700 |
children | dda0aa3baedd d9e3ebe56970 |
comparison
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 = {} |