diff -r c7e8948627f3 -r 5ab6f0fde75f mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Wed Feb 17 22:45:01 2016 +0100 +++ b/mercurial/bundlerepo.py Mon Feb 22 18:35:40 2016 +0100 @@ -362,7 +362,8 @@ if f in self.bundlefilespos: self.bundle.seek(self.bundlefilespos[f]) - return bundlefilelog(self.svfs, f, self.bundle, self.changelog.rev) + linkmapper = self.unfiltered().changelog.rev + return bundlefilelog(self.svfs, f, self.bundle, linkmapper) else: return filelog.filelog(self.svfs, f)