Show More
@@ -231,7 +231,7 b" if safehasattr(registrar, 'command'):" | |||||
231 | command = registrar.command(cmdtable) |
|
231 | command = registrar.command(cmdtable) | |
232 | elif safehasattr(cmdutil, 'command'): |
|
232 | elif safehasattr(cmdutil, 'command'): | |
233 | command = cmdutil.command(cmdtable) |
|
233 | command = cmdutil.command(cmdtable) | |
234 |
if |
|
234 | if 'norepo' not in getargspec(command).args: | |
235 | # for "historical portability": |
|
235 | # for "historical portability": | |
236 | # wrap original cmdutil.command, because "norepo" option has |
|
236 | # wrap original cmdutil.command, because "norepo" option has | |
237 | # been available since 3.1 (or 75a96326cecb) |
|
237 | # been available since 3.1 (or 75a96326cecb) | |
@@ -805,7 +805,7 b' def perfaddremove(ui, repo, **opts):' | |||||
805 | repo.ui.quiet = True |
|
805 | repo.ui.quiet = True | |
806 | matcher = scmutil.match(repo[None]) |
|
806 | matcher = scmutil.match(repo[None]) | |
807 | opts[b'dry_run'] = True |
|
807 | opts[b'dry_run'] = True | |
808 |
if |
|
808 | if 'uipathfn' in getargspec(scmutil.addremove).args: | |
809 | uipathfn = scmutil.getuipathfn(repo) |
|
809 | uipathfn = scmutil.getuipathfn(repo) | |
810 | timer(lambda: scmutil.addremove(repo, matcher, b"", uipathfn, opts)) |
|
810 | timer(lambda: scmutil.addremove(repo, matcher, b"", uipathfn, opts)) | |
811 | else: |
|
811 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now