Mercurial > hg-stable
comparison contrib/perf.py @ 37271:14cd5290c4e6
addremove: remove dry_run, similarity from scmutil.addremove (API)
Differential Revision: https://phab.mercurial-scm.org/D3000
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Sat, 31 Mar 2018 23:49:58 +0530 |
parents | d382344c69aa |
children | 5bcd5859b505 |
comparison
equal
deleted
inserted
replaced
37270:a53b87e20132 | 37271:14cd5290c4e6 |
---|---|
421 timer, fm = gettimer(ui, opts) | 421 timer, fm = gettimer(ui, opts) |
422 try: | 422 try: |
423 oldquiet = repo.ui.quiet | 423 oldquiet = repo.ui.quiet |
424 repo.ui.quiet = True | 424 repo.ui.quiet = True |
425 matcher = scmutil.match(repo[None]) | 425 matcher = scmutil.match(repo[None]) |
426 timer(lambda: scmutil.addremove(repo, matcher, "", dry_run=True)) | 426 opts['dry_run'] = True |
427 timer(lambda: scmutil.addremove(repo, matcher, "", opts)) | |
427 finally: | 428 finally: |
428 repo.ui.quiet = oldquiet | 429 repo.ui.quiet = oldquiet |
429 fm.end() | 430 fm.end() |
430 | 431 |
431 def clearcaches(cl): | 432 def clearcaches(cl): |