comparison tests/test-narrow-clone.t @ 38837:fa64a229f24b

tests: avoid unnecessarily looking inside .hg/ in test-narrow* Many of the narrow tests were looking at .hg/narrowspec. I think most of them were written before we added `hg tracked`, but now that we have that command, we should fix the tests. There were also a few instances of tests looking at .hg/dirstate. I fixed those to use `hg files` instead. Differential Revision: https://phab.mercurial-scm.org/D4093
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 03 Aug 2018 13:00:14 -0700
parents c2c8962a9465
children f4d4bd8c8911
comparison
equal deleted inserted replaced
38836:fed6fe856333 38837:fa64a229f24b
32 narrowhg-experimental 32 narrowhg-experimental
33 revlogv1 33 revlogv1
34 store 34 store
35 testonly-simplestore (reposimplestore !) 35 testonly-simplestore (reposimplestore !)
36 36
37 $ cat .hg/narrowspec 37 $ hg tracked
38 [includes] 38 I path:dir/src/f10
39 path:dir/src/f10
40 [excludes]
41 $ hg tracked 39 $ hg tracked
42 I path:dir/src/f10 40 I path:dir/src/f10
43 $ hg update 41 $ hg update
44 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 42 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
45 $ find * | sort 43 $ find * | sort
67 adding manifests 65 adding manifests
68 adding file changes 66 adding file changes
69 added 21 changesets with 19 changes to 19 files 67 added 21 changesets with 19 changes to 19 files
70 new changesets *:* (glob) 68 new changesets *:* (glob)
71 $ cd narrowdir 69 $ cd narrowdir
72 $ cat .hg/narrowspec 70 $ hg tracked
73 [includes] 71 I path:dir/tests
74 path:dir/tests 72 X path:dir/tests/t19
75 [excludes]
76 path:dir/tests/t19
77 $ hg tracked 73 $ hg tracked
78 I path:dir/tests 74 I path:dir/tests
79 X path:dir/tests/t19 75 X path:dir/tests/t19
80 $ hg update 76 $ hg update
81 19 files updated, 0 files merged, 0 files removed, 0 files unresolved 77 19 files updated, 0 files merged, 0 files removed, 0 files unresolved
112 adding manifests 108 adding manifests
113 adding file changes 109 adding file changes
114 added 21 changesets with 20 changes to 20 files 110 added 21 changesets with 20 changes to 20 files
115 new changesets *:* (glob) 111 new changesets *:* (glob)
116 $ cd narrowroot 112 $ cd narrowroot
117 $ cat .hg/narrowspec 113 $ hg tracked
118 [includes] 114 I path:.
119 path:. 115 X path:dir/tests
120 [excludes]
121 path:dir/tests
122 $ hg tracked 116 $ hg tracked
123 I path:. 117 I path:.
124 X path:dir/tests 118 X path:dir/tests
125 $ hg update 119 $ hg update
126 20 files updated, 0 files merged, 0 files removed, 0 files unresolved 120 20 files updated, 0 files merged, 0 files removed, 0 files unresolved