diff mercurial/templatefilters.py @ 22265:fe22d86a8992

purge: avoid full walks when directories aren't purged If match.traversedir is not None, we're forced to do full walks. However when we aren't purging directories we don't need to set match.traversedir to anything. This speeds up non-full walks such as the one hgwatchman makes possible. For mozilla-central with hgwatchman enabled, 'hg purge --files' goes from 0.88 seconds to 0.22.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 20 Aug 2014 15:07:25 -0700
parents cf599f8a2da8
children 13e3f07d74a3
line wrap: on
line diff