Mercurial > hg
diff hgext/purge.py @ 33296:ee616196227c
sparse: use vfs.tryread()
vfs.exists() followed by a file read is an anti-pattern because it
incurs an extra stat() to test for file presence. vfs.tryread()
returns empty string on missing file and avoids the stat().
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 06 Jul 2017 10:58:45 -0700 |
parents | 04baab18d60a |
children | 5a3f8da663e5 |