Mercurial > hg-stable
changeset 18872:16b34391819d
merge with mpm
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 03 Apr 2013 17:04:38 -0700 |
parents | a2d4ab4f575d (diff) 0f2eb3d16a1a (current diff) |
children | f63035b9b38a 2e9fe9e2671f |
files | |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/perf.py Wed Apr 03 14:14:30 2013 -0500 +++ b/contrib/perf.py Wed Apr 03 17:04:38 2013 -0700 @@ -54,6 +54,15 @@ # False)))) timer(lambda: sum(map(len, repo.status(**opts)))) +@command('perfaddremove') +def perfaddremove(ui, repo): + try: + oldquiet = repo.ui.quiet + repo.ui.quiet = True + timer(lambda: scmutil.addremove(repo, dry_run=True)) + finally: + repo.ui.quiet = oldquiet + def clearcaches(cl): # behave somewhat consistently across internal API changes if util.safehasattr(cl, 'clearcaches'):