diff -r ddb15a83ae0b -r 0a57945aaf7f mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Jul 31 19:37:48 2018 +0200 +++ b/mercurial/localrepo.py Tue Jul 31 19:37:54 2018 +0200 @@ -1612,6 +1612,10 @@ rbc.branchinfo(r) rbc.write() + # ensure the working copy parents are in the manifestfulltextcache + for ctx in self['.'].parents(): + ctx.manifest() # accessing the manifest is enough + def invalidatecaches(self): if '_tagscache' in vars(self):