diff -r b8260abfeb7d -r e7fcf58acd71 mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Thu Dec 18 11:38:48 2014 -0800 +++ b/mercurial/bundlerepo.py Thu Dec 18 12:22:43 2014 -0800 @@ -242,6 +242,10 @@ # dict with the mapping 'filename' -> position in the bundle self.bundlefilespos = {} + self.firstnewrev = self.changelog.repotiprev + 1 + phases.retractboundary(self, None, phases.draft, + [ctx.node() for ctx in self[self.firstnewrev:]]) + @localrepo.unfilteredpropertycache def _phasecache(self): return bundlephasecache(self, self._phasedefaults)