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