[PATCH 4 of 4 v2] treemanifests: fix streaming clone

Martin von Zweigbergk martinvonz at google.com
Wed Feb 3 19:41:28 EST 2016


On Tue, Feb 2, 2016 at 10:34 PM, Martin von Zweigbergk
<martinvonz at google.com> wrote:
> # HG changeset patch
> # User Martin von Zweigbergk <martinvonz at google.com>
> # Date 1454457679 28800
> #      Tue Feb 02 16:01:19 2016 -0800
> # Node ID 229c08d23c42a6263ad42bad197c66420babd50a
> # Parent  8f1c2d81ff45633457a1ba8b8f91d5bd347a0605
> treemanifests: fix streaming clone
>
> Similar to the previous patch, the .hg/store/meta/ directory does not
> get copied when when using "hg clone --uncompressed". Fix by making
> sure that the files in the directory are generated by store.walk().
>
> Also update test-treemanifest.t to use an uppercase directory name so
> we test that the path encoding works.
>
> diff --git a/mercurial/store.py b/mercurial/store.py
> --- a/mercurial/store.py
> +++ b/mercurial/store.py
> @@ -332,6 +332,9 @@
>      def datafiles(self):
>          return self._walk('data', True)
>
> +    def metafiles(self):
> +        pass

And this should apparently have been "return []". That's more bugs
that I'd ask anyone to fix in flight. I'll resend this after my patch
to "hg verify" is in instead (it also conflicts with that). Sorry
about the noise.


More information about the Mercurial-devel mailing list