[PATCH] subrepo: run the repo decoders when archiving
Yuya Nishihara
yuya at tcha.org
Mon Feb 27 09:06:40 EST 2017
On Sat, 25 Feb 2017 21:25:07 -0500, Matt Harbison wrote:
> # HG changeset patch
> # User Matt Harbison <matt_harbison at yahoo.com>
> # Date 1488075239 18000
> # Sat Feb 25 21:13:59 2017 -0500
> # Node ID 5ce388a91851dc6c0dc1be0342a105da659e1d47
> # Parent 88203f26ea57627cabd7cf9c4f7843661d6c43ae
> subrepo: run the repo decoders when archiving
Looks good. Queued, thanks.
> --- a/mercurial/subrepo.py
> +++ b/mercurial/subrepo.py
> - def filedata(self, name):
> + def filedata(self, name, decode):
> rev = self._state[1]
> - return self._repo[rev][name].data()
> + data = self._repo[rev][name].data()
> + if decode:
> + data = self._repo.wwritedata(name, data)
> + return data
I'm not sure if it's good idea to make sub.filedata() slightly diverged
from ctx.data(), but sub.filedata() is a kind of an internal method, so
that shouldn't matter.
More information about the Mercurial-devel
mailing list