comparison tests/test-narrow-widen-no-ellipsis.t @ 40343:a69d5823af6d

tests: add test for widening from an empty clone Narrow clones that track no paths currently don't even include the root manifest (which is the only manifest when using flat manifests). That means that when we widen from such a clone, we need to make sure that we send the root manifest (and other manifests if using tree manifests). That currently works because we always resend all manifest that match the new narrowspec. However, we're about to stop resending manifests that the client already has and there's a risk of this breaking then, so let's add a test. Differential Revision: https://phab.mercurial-scm.org/D5143
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 17 Oct 2018 09:30:07 -0700
parents cb516a854bc7
children d362a41ee5dd
comparison
equal deleted inserted replaced
40342:6f152067ba57 40343:a69d5823af6d
28 28
29 $ cd .. 29 $ cd ..
30 30
31 narrow clone the inside file 31 narrow clone the inside file
32 32
33 $ hg clone --narrow ssh://user@dummy/master narrow --include inside 33 $ hg clone --narrow ssh://user@dummy/master narrow
34 requesting all changes 34 requesting all changes
35 adding changesets 35 adding changesets
36 adding manifests 36 adding manifests
37 adding file changes 37 adding file changes
38 added 3 changesets with 1 changes to 1 files 38 added 3 changesets with 0 changes to 0 files
39 new changesets *:* (glob) 39 new changesets *:* (glob)
40 updating to branch default 40 updating to branch default
41 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 41 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
42 $ cd narrow 42 $ cd narrow
43 $ hg tracked
44 $ hg files
45 [1]
46
47 widen from an empty clone
48
49 $ hg tracked --addinclude inside
50 comparing with ssh://user@dummy/master
51 searching for changes
52 adding changesets
53 adding manifests
54 adding file changes
55 added 0 changesets with 1 changes to 1 files
43 $ hg tracked 56 $ hg tracked
44 I path:inside 57 I path:inside
45 $ ls 58 $ ls
46 inside 59 inside
47 $ cat inside/f 60 $ cat inside/f