diff hgext/extdiff.py @ 30982:08e6f4dac2ca

extdiff: log time spent in external diff program We can't fix the time external diff programs take to run. Log that duration for us to remove from any stats we gather
author Simon Farnsworth <simonfar@fb.com>
date Wed, 15 Feb 2017 13:34:06 -0800
parents caf7e1c5efe4
children 53865692a354
line wrap: on
line diff
--- a/hgext/extdiff.py	Wed Feb 15 13:34:06 2017 -0800
+++ b/hgext/extdiff.py	Wed Feb 15 13:34:06 2017 -0800
@@ -273,7 +273,7 @@
         cmdline = re.sub(regex, quote, cmdline)
 
         ui.debug('running %r in %s\n' % (cmdline, tmproot))
-        ui.system(cmdline, cwd=tmproot)
+        ui.system(cmdline, cwd=tmproot, blockedtag='extdiff')
 
         for copy_fn, working_fn, mtime in fns_and_mtime:
             if os.lstat(copy_fn).st_mtime != mtime: