comparison mercurial/bundlerepo.py @ 18418:e72126135252

bundlerepo: remove old style check of file names The old check is no longer needed: The checked paths will be passed on to filelog.__init__ which will prefix the path with 'data/'. A leading '/' will thus not do any harm. And: The paths will be used by an opener which will use a pathauditor. And finally: The old check did not consider Windows paths and was thus insufficient.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 16 Jan 2013 20:52:56 +0100
parents 610706715778
children cd403d6d96ef
comparison
equal deleted inserted replaced
18417:610706715778 18418:e72126135252
253 while True: 253 while True:
254 c = self.bundle.deltachunk(None) 254 c = self.bundle.deltachunk(None)
255 if not c: 255 if not c:
256 break 256 break
257 257
258 if f[0] == '/':
259 f = f[1:]
260 if f in self.bundlefilespos: 258 if f in self.bundlefilespos:
261 self.bundle.seek(self.bundlefilespos[f]) 259 self.bundle.seek(self.bundlefilespos[f])
262 return bundlefilelog(self.sopener, f, self.bundle, 260 return bundlefilelog(self.sopener, f, self.bundle,
263 self.changelog.rev, self) 261 self.changelog.rev, self)
264 else: 262 else: