extdiff: log time spent in external diff program
authorSimon Farnsworth <simonfar@fb.com>
Wed, 15 Feb 2017 13:34:06 -0800
changeset 30982 08e6f4dac2ca
parent 30981 a0c4e57074fe
child 30983 d4825798818b
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
hgext/extdiff.py
--- 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: