mercurial/localrepo.py
changeset 38781 0a57945aaf7f
parent 38760 17da52bbadb0
child 38783 e7aa113b14f7
--- 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):