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