# HG changeset patch # User Boris Feld # Date 2018-09-07 15:43:48 # Node ID cf01616f8d967cd323441c4bf3d9ecb7b22a324b # Parent 25b2868206e29a632b52b6f51081942f01ce7c0d copies: add time information to the debug information diff --git a/mercurial/copies.py b/mercurial/copies.py --- a/mercurial/copies.py +++ b/mercurial/copies.py @@ -204,11 +204,16 @@ def _committedforwardcopies(a, b, match) 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): diff --git a/tests/test-mv-cp-st-diff.t b/tests/test-mv-cp-st-diff.t --- a/tests/test-mv-cp-st-diff.t +++ b/tests/test-mv-cp-st-diff.t @@ -1676,6 +1676,7 @@ Check debug output for copy tracing debug.copies: missing file to search: 1 debug.copies: tracing file: renamed debug.copies: rename of: f + debug.copies: time: * seconds (glob) A renamed f R f