D4641: localrepo: pass root manifest into manifestlog.__init__

Yuya Nishihara yuya at tcha.org
Sun Sep 23 04:38:54 EDT 2018


Queued, thanks.

> diff --git a/mercurial/unionrepo.py b/mercurial/unionrepo.py
> --- a/mercurial/unionrepo.py
> +++ b/mercurial/unionrepo.py
> @@ -208,6 +208,12 @@
>      def changelog(self):
>          return unionchangelog(self.svfs, self.repo2.svfs)
>  
> +    @localrepo.unfilteredpropertycache
> +    def manifestlog(self):
> +        rootstore = unionmanifest(self.svfs, self.repo2.svfs,
> +                                  self.unfiltered()._clrev)
> +        return manifest.manifestlog(self.svfs, self, rootstore)

Perhaps unionrepository._constructmanifest() can be removed.


More information about the Mercurial-devel mailing list