Show More
@@ -54,7 +54,12 b' def record(ui, repo, *pats, **opts):' | |||
|
54 | 54 | This command is not available when committing a merge.''' |
|
55 | 55 | |
|
56 | 56 | opts["interactive"] = True |
|
57 | commands.commit(ui, repo, *pats, **opts) | |
|
57 | backup = ui.backupconfig('experimental', 'crecord') | |
|
58 | try: | |
|
59 | ui.setconfig('experimental', 'crecord', False, 'record') | |
|
60 | commands.commit(ui, repo, *pats, **opts) | |
|
61 | finally: | |
|
62 | ui.restoreconfig(backup) | |
|
58 | 63 | |
|
59 | 64 | def qrefresh(origfn, ui, repo, *pats, **opts): |
|
60 | 65 | if not opts['interactive']: |
@@ -96,8 +101,13 b' def qrecord(ui, repo, patch, *pats, **op' | |||
|
96 | 101 | opts['checkname'] = False |
|
97 | 102 | mq.new(ui, repo, patch, *pats, **opts) |
|
98 | 103 | |
|
99 | cmdutil.dorecord(ui, repo, committomq, 'qnew', False, | |
|
100 | cmdutil.recordfilter, *pats, **opts) | |
|
104 | backup = ui.backupconfig('experimental', 'crecord') | |
|
105 | try: | |
|
106 | ui.setconfig('experimental', 'crecord', False, 'record') | |
|
107 | cmdutil.dorecord(ui, repo, committomq, 'qnew', False, | |
|
108 | cmdutil.recordfilter, *pats, **opts) | |
|
109 | finally: | |
|
110 | ui.restoreconfig(backup) | |
|
101 | 111 | |
|
102 | 112 | def qnew(origfn, ui, repo, patch, *args, **opts): |
|
103 | 113 | if opts['interactive']: |
General Comments 0
You need to be logged in to leave comments.
Login now