Show More
@@ -16,6 +16,9 b' import stat' | |||
|
16 | 16 | from .i18n import _ |
|
17 | 17 | from .node import nullid |
|
18 | 18 | from .pycompat import delattr |
|
19 | ||
|
20 | from hgdemandimport import tracing | |
|
21 | ||
|
19 | 22 | from . import ( |
|
20 | 23 | encoding, |
|
21 | 24 | error, |
@@ -951,6 +954,7 b' class dirstate(object):' | |||
|
951 | 954 | def traverse(work, alreadynormed): |
|
952 | 955 | wadd = work.append |
|
953 | 956 | while work: |
|
957 | tracing.counter('dirstate.walk work', len(work)) | |
|
954 | 958 | nd = work.pop() |
|
955 | 959 | visitentries = match.visitchildrenset(nd) |
|
956 | 960 | if not visitentries: |
@@ -961,7 +965,8 b' class dirstate(object):' | |||
|
961 | 965 | if nd != b'': |
|
962 | 966 | skip = b'.hg' |
|
963 | 967 | try: |
|
964 | entries = listdir(join(nd), stat=True, skip=skip) | |
|
968 | with tracing.log('dirstate.walk.traverse listdir %s', nd): | |
|
969 | entries = listdir(join(nd), stat=True, skip=skip) | |
|
965 | 970 | except OSError as inst: |
|
966 | 971 | if inst.errno in (errno.EACCES, errno.ENOENT): |
|
967 | 972 | match.bad( |
General Comments 0
You need to be logged in to leave comments.
Login now