# HG changeset patch # User Mads Kiilerich # Date 2013-01-16 19:52:56 # Node ID e72126135252ce1bb746bde84484995f62208a9b # Parent 610706715778415bf31976d4e59682e01a62214d 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. diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py +++ b/mercurial/bundlerepo.py @@ -255,8 +255,6 @@ class bundlerepository(localrepo.localre if not c: break - if f[0] == '/': - f = f[1:] if f in self.bundlefilespos: self.bundle.seek(self.bundlefilespos[f]) return bundlefilelog(self.sopener, f, self.bundle,