diff mercurial/unionrepo.py @ 41041:3913223417ea

manifest: accept narrowmatch into constructor instead of getting from repo The manifest should ideally not know at all about the repo, so this is just a little step towards cleaning that up. Differential Revision: https://phab.mercurial-scm.org/D5469
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 03 Dec 2018 22:22:23 -0800
parents 55db747a21ad
children 94e2f8437f6b
line wrap: on
line diff
--- a/mercurial/unionrepo.py	Sat Dec 22 00:05:39 2018 -0500
+++ b/mercurial/unionrepo.py	Mon Dec 03 22:22:23 2018 -0800
@@ -212,7 +212,8 @@
     def manifestlog(self):
         rootstore = unionmanifest(self.svfs, self.repo2.svfs,
                                   self.unfiltered()._clrev)
-        return manifest.manifestlog(self.svfs, self, rootstore)
+        return manifest.manifestlog(self.svfs, self, rootstore,
+                                    self.narrowmatch())
 
     def _clrev(self, rev2):
         """map from repo2 changelog rev to temporary rev in self.changelog"""