Changeset View
Changeset View
Standalone View
Standalone View
hgext/remotefilelog/remotefilelogserver.py
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Line(s) | def _walkstreamfiles(orig, repo, matcher=None): | ||||
match = state.match | match = state.match | ||||
if match and not match.always(): | if match and not match.always(): | ||||
for (t, u, e, s) in repo.store.datafiles(): | for (t, u, e, s) in repo.store.datafiles(): | ||||
f = u[5:-2] # trim data/... and .i/.d | f = u[5:-2] # trim data/... and .i/.d | ||||
if not state.match(f): | if not state.match(f): | ||||
yield (t, u, e, s) | yield (t, u, e, s) | ||||
for x in repo.store.topfiles(): | for x in repo.store.topfiles(): | ||||
if state.noflatmf and x[0][:11] == b'00manifest.': | if state.noflatmf and x[1][:11] == b'00manifest.': | ||||
continue | continue | ||||
yield x | yield x | ||||
elif shallowutil.isenabled(repo): | elif shallowutil.isenabled(repo): | ||||
# don't allow cloning from a shallow repo to a full repo | # don't allow cloning from a shallow repo to a full repo | ||||
# since it would require fetching every version of every | # since it would require fetching every version of every | ||||
# file in order to create the revlogs. | # file in order to create the revlogs. | ||||
raise error.Abort( | raise error.Abort( | ||||
▲ Show 20 Lines • Show All 244 Lines • Show Last 20 Lines |