Mercurial > hg
comparison mercurial/tagmerge.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 | b27c3beaaf30 |
children | e53f6b72a0e4 |
comparison
equal
deleted
inserted
replaced
22264:4bc1fd86e915 | 22265:fe22d86a8992 |
---|