Mercurial > hg > mercurial-source
changeset 40844:cf01616f8d96
copies: add time information to the debug information
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 07 Sep 2018 11:43:48 -0400 (2018-09-07) |
parents | 25b2868206e2 |
children | fda1df3d4e06 |
files | mercurial/copies.py tests/test-mv-cp-st-diff.t |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -204,11 +204,16 @@ fctx = b[f] fctx._ancestrycontext = ancestrycontext + if debug: + start = util.timer() ofctx = _tracefile(fctx, am, limit) if ofctx: if debug: dbg('debug.copies: rename of: %s\n' % ofctx._path) cm[f] = ofctx.path() + if debug: + dbg('debug.copies: time: %s seconds\n' + % (util.timer() - start)) return cm def _forwardcopies(a, b, match=None):