Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
| Automatic diff as part of commit; lint not applicable. |
| Automatic diff as part of commit; unit tests not applicable. |
| ? - display help | ? - display help | ||||
| This command is not available when committing a merge.''' | This command is not available when committing a merge.''' | ||||
| if not ui.interactive(): | if not ui.interactive(): | ||||
| raise error.Abort(_('running non-interactively, use %s instead') % | raise error.Abort(_('running non-interactively, use %s instead') % | ||||
| 'commit') | 'commit') | ||||
| opts["interactive"] = True | opts[r"interactive"] = True | ||||
| overrides = {('experimental', 'crecord'): False} | overrides = {('experimental', 'crecord'): False} | ||||
| with ui.configoverride(overrides, 'record'): | with ui.configoverride(overrides, 'record'): | ||||
| return commands.commit(ui, repo, *pats, **opts) | return commands.commit(ui, repo, *pats, **opts) | ||||
| def qrefresh(origfn, ui, repo, *pats, **opts): | def qrefresh(origfn, ui, repo, *pats, **opts): | ||||
| if not opts['interactive']: | if not opts[r'interactive']: | ||||
| return origfn(ui, repo, *pats, **opts) | return origfn(ui, repo, *pats, **opts) | ||||
| mq = extensions.find('mq') | mq = extensions.find('mq') | ||||
| def committomq(ui, repo, *pats, **opts): | def committomq(ui, repo, *pats, **opts): | ||||
| # At this point the working copy contains only changes that | # At this point the working copy contains only changes that | ||||
| # were accepted. All other changes were reverted. | # were accepted. All other changes were reverted. | ||||
| # We can't pass *pats here since qrefresh will undo all other | # We can't pass *pats here since qrefresh will undo all other | ||||
| try: | try: | ||||
| mq = extensions.find('mq') | mq = extensions.find('mq') | ||||
| except KeyError: | except KeyError: | ||||
| raise error.Abort(_("'mq' extension not loaded")) | raise error.Abort(_("'mq' extension not loaded")) | ||||
| repo.mq.checkpatchname(patch) | repo.mq.checkpatchname(patch) | ||||
| def committomq(ui, repo, *pats, **opts): | def committomq(ui, repo, *pats, **opts): | ||||
| opts['checkname'] = False | opts[r'checkname'] = False | ||||
| mq.new(ui, repo, patch, *pats, **opts) | mq.new(ui, repo, patch, *pats, **opts) | ||||
| overrides = {('experimental', 'crecord'): False} | overrides = {('experimental', 'crecord'): False} | ||||
| with ui.configoverride(overrides, 'record'): | with ui.configoverride(overrides, 'record'): | ||||
| cmdutil.dorecord(ui, repo, committomq, cmdsuggest, False, | cmdutil.dorecord(ui, repo, committomq, cmdsuggest, False, | ||||
| cmdutil.recordfilter, *pats, **opts) | cmdutil.recordfilter, *pats, **opts) | ||||
| def qnew(origfn, ui, repo, patch, *args, **opts): | def qnew(origfn, ui, repo, patch, *args, **opts): | ||||
| if opts['interactive']: | if opts[r'interactive']: | ||||
| return _qrecord(None, ui, repo, patch, *args, **opts) | return _qrecord(None, ui, repo, patch, *args, **opts) | ||||
| return origfn(ui, repo, patch, *args, **opts) | return origfn(ui, repo, patch, *args, **opts) | ||||
| def uisetup(ui): | def uisetup(ui): | ||||
| try: | try: | ||||
| mq = extensions.find('mq') | mq = extensions.find('mq') | ||||
| except KeyError: | except KeyError: | ||||