equal
deleted
inserted
replaced
517 try: |
517 try: |
518 oldquiet = repo.ui.quiet |
518 oldquiet = repo.ui.quiet |
519 repo.ui.quiet = True |
519 repo.ui.quiet = True |
520 matcher = scmutil.match(repo[None]) |
520 matcher = scmutil.match(repo[None]) |
521 opts[b'dry_run'] = True |
521 opts[b'dry_run'] = True |
522 timer(lambda: scmutil.addremove(repo, matcher, b"", opts)) |
522 if b'uipathfn' in getargspec(scmutil.addremove).args: |
|
523 uipathfn = scmutil.getuipathfn(repo) |
|
524 timer(lambda: scmutil.addremove(repo, matcher, b"", uipathfn, opts)) |
|
525 else: |
|
526 timer(lambda: scmutil.addremove(repo, matcher, b"", opts)) |
523 finally: |
527 finally: |
524 repo.ui.quiet = oldquiet |
528 repo.ui.quiet = oldquiet |
525 fm.end() |
529 fm.end() |
526 |
530 |
527 def clearcaches(cl): |
531 def clearcaches(cl): |