Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/util.py @ 7875:553aa0cbeab6
cleanup: drop unused assignments
author | Peter Arrenbrecht <peter.arrenbrecht@gmail.com> |
---|---|
date | Mon, 23 Mar 2009 13:13:06 +0100 |
parents | bc027d72c289 |
children | 5c4026a289a4 |
comparison
equal
deleted
inserted
replaced
7874:d812029cda85 | 7875:553aa0cbeab6 |
---|---|
902 yield st | 902 yield st |
903 | 903 |
904 def _statfiles_clustered(files): | 904 def _statfiles_clustered(files): |
905 '''Stat each file in files and yield stat or None if file does not exist. | 905 '''Stat each file in files and yield stat or None if file does not exist. |
906 Cluster and cache stat per directory to minimize number of OS stat calls.''' | 906 Cluster and cache stat per directory to minimize number of OS stat calls.''' |
907 lstat = os.lstat | |
908 ncase = os.path.normcase | 907 ncase = os.path.normcase |
909 sep = os.sep | 908 sep = os.sep |
910 dircache = {} # dirname -> filename -> status | None if file does not exist | 909 dircache = {} # dirname -> filename -> status | None if file does not exist |
911 for nf in files: | 910 for nf in files: |
912 nf = ncase(nf) | 911 nf = ncase(nf) |