equal
deleted
inserted
replaced
28 util, |
28 util, |
29 wireprotoserver, |
29 wireprotoserver, |
30 wireprototypes, |
30 wireprototypes, |
31 wireprotov1server, |
31 wireprotov1server, |
32 ) |
32 ) |
|
33 from mercurial.interfaces import repository |
33 from . import ( |
34 from . import ( |
34 constants, |
35 constants, |
35 shallowutil, |
36 shallowutil, |
36 ) |
37 ) |
37 |
38 |
167 n = util.pconvert(fp[striplen:]) |
168 n = util.pconvert(fp[striplen:]) |
168 yield (store.decodedir(n), n, st.st_size) |
169 yield (store.decodedir(n), n, st.st_size) |
169 if kind == stat.S_IFDIR: |
170 if kind == stat.S_IFDIR: |
170 visit.append(fp) |
171 visit.append(fp) |
171 |
172 |
172 if b'treemanifest' in repo.requirements: |
173 if repository.TREEMANIFEST_REQUIREMENT in repo.requirements: |
173 for (u, e, s) in repo.store.datafiles(): |
174 for (u, e, s) in repo.store.datafiles(): |
174 if u.startswith(b'meta/') and ( |
175 if u.startswith(b'meta/') and ( |
175 u.endswith(b'.i') or u.endswith(b'.d') |
176 u.endswith(b'.i') or u.endswith(b'.d') |
176 ): |
177 ): |
177 yield (u, e, s) |
178 yield (u, e, s) |