##// END OF EJS Templates
tests: improve the widening testing in test-narrow-widen*...
Pulkit Goyal -
r39502:83dd6565 default
parent child Browse files
Show More
@@ -84,22 +84,25 b' add more upstream files which we will in'
84
84
85 $ cd ..
85 $ cd ..
86
86
87 Widen the narrow spec to see the wider file. This should not get the newly
87 Widen the narrow spec to see the widest file. This should not get the newly
88 added upstream revisions.
88 added upstream revisions.
89
89
90 $ cd narrow
90 $ cd narrow
91 $ hg tracked --addinclude wider/f
91 $ hg tracked --addinclude widest/f
92 comparing with ssh://user@dummy/master
92 comparing with ssh://user@dummy/master
93 searching for changes
93 searching for changes
94 no changes found
94 no changes found
95 adding changesets
95 adding changesets
96 adding manifests
96 adding manifests
97 adding file changes
97 adding file changes
98 added 0 changesets with 0 changes to 1 files
98 added 0 changesets with 1 changes to 2 files
99 3 local changesets published
99 3 local changesets published
100 $ hg tracked
100 $ hg tracked
101 I path:inside
101 I path:inside
102 I path:wider/f
102 I path:widest/f
103
104 $ cat widest/f
105 widest
103
106
104 Pull down the newly added upstream revision.
107 Pull down the newly added upstream revision.
105
108
@@ -109,18 +112,19 b' Pull down the newly added upstream revis'
109 adding changesets
112 adding changesets
110 adding manifests
113 adding manifests
111 adding file changes
114 adding file changes
112 added 5 changesets with 2 changes to 2 files
115 added 5 changesets with 4 changes to 2 files
113 new changesets *:* (glob)
116 new changesets *:* (glob)
114 (run 'hg update' to get a working copy)
117 (run 'hg update' to get a working copy)
115 $ hg update -r 'desc("add wider")'
118 $ hg update -r 'desc("add wider")'
116 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
119 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
117 $ cat wider/f
120
118 wider
121 $ cat widest/f
122 widest v2
119
123
120 $ hg update -r 'desc("update inside")'
124 $ hg update -r 'desc("update inside")'
121 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
125 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
122 $ cat wider/f
126 $ cat widest/f
123 wider
127 widest v3
124 $ cat inside/f
128 $ cat inside/f
125 inside v2
129 inside v2
126
130
@@ -141,21 +145,21 b' Check that widening with a newline fails'
141 abort: newlines are not allowed in narrowspec paths
145 abort: newlines are not allowed in narrowspec paths
142 [255]
146 [255]
143
147
144 widen the narrow spec to include the widest file
148 widen the narrow spec to include the wider file
145
149
146 $ hg tracked --addinclude widest
150 $ hg tracked --addinclude wider
147 comparing with ssh://user@dummy/master
151 comparing with ssh://user@dummy/master
148 searching for changes
152 searching for changes
149 no changes found
153 no changes found
150 adding changesets
154 adding changesets
151 adding manifests
155 adding manifests
152 adding file changes
156 adding file changes
153 added 0 changesets with 4 changes to 3 files
157 added 0 changesets with 1 changes to 3 files
154 5 local changesets published
158 5 local changesets published
155 $ hg tracked
159 $ hg tracked
156 I path:inside
160 I path:inside
157 I path:wider/f
161 I path:wider
158 I path:widest
162 I path:widest/f
159 $ hg update 'desc("add widest")'
163 $ hg update 'desc("add widest")'
160 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
164 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
161 $ cat widest/f
165 $ cat widest/f
@@ -88,11 +88,11 b' add more upstream files which we will in'
88
88
89 $ cd ..
89 $ cd ..
90
90
91 Widen the narrow spec to see the wider file. This should not get the newly
91 Widen the narrow spec to see the widest file. This should not get the newly
92 added upstream revisions.
92 added upstream revisions.
93
93
94 $ cd narrow
94 $ cd narrow
95 $ hg tracked --addinclude wider/f
95 $ hg tracked --addinclude widest/f
96 comparing with ssh://user@dummy/master
96 comparing with ssh://user@dummy/master
97 searching for changes
97 searching for changes
98 no changes found
98 no changes found
@@ -100,11 +100,14 b' added upstream revisions.'
100 adding changesets
100 adding changesets
101 adding manifests
101 adding manifests
102 adding file changes
102 adding file changes
103 added 2 changesets with 1 changes to 1 files
103 added 3 changesets with 2 changes to 2 files
104 new changesets *:* (glob)
104 new changesets *:* (glob)
105 $ hg tracked
105 $ hg tracked
106 I path:inside
106 I path:inside
107 I path:wider/f
107 I path:widest/f
108
109 $ cat widest/f
110 widest
108
111
109 Pull down the newly added upstream revision.
112 Pull down the newly added upstream revision.
110
113
@@ -114,27 +117,29 b' Pull down the newly added upstream revis'
114 adding changesets
117 adding changesets
115 adding manifests
118 adding manifests
116 adding file changes
119 adding file changes
117 added 4 changesets with 2 changes to 2 files
120 added 5 changesets with 4 changes to 2 files
118 new changesets *:* (glob)
121 new changesets *:* (glob)
119 (run 'hg update' to get a working copy)
122 (run 'hg update' to get a working copy)
120 $ hg update -r 'desc("add wider")'
123 $ hg update -r 'desc("add wider")'
121 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
124 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
122 $ cat wider/f
125 $ cat widest/f
123 wider
126 widest v2
124
127
125 $ hg update -r 'desc("update inside")'
128 $ hg update -r 'desc("update inside")'
126 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
129 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
127 $ cat wider/f
130 $ cat widest/f
128 wider
131 widest v3
129 $ cat inside/f
132 $ cat inside/f
130 inside v2
133 inside v2
131
134
132 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
135 $ hg log -T "{if(ellipsis, '...')}{rev}: {desc}\n"
133 ...5: update widest v4
136 7: update widest v4
134 4: update inside
137 ...6: add outside2
135 ...3: update widest v3
138 5: update inside
136 2: add wider, update widest
139 4: update widest v3
137 ...1: add outside
140 3: add wider, update widest
141 ...2: add outside
142 1: add widest
138 0: add inside
143 0: add inside
139
144
140 Check that widening with a newline fails
145 Check that widening with a newline fails
@@ -144,9 +149,9 b' Check that widening with a newline fails'
144 abort: newlines are not allowed in narrowspec paths
149 abort: newlines are not allowed in narrowspec paths
145 [255]
150 [255]
146
151
147 widen the narrow spec to include the widest file
152 widen the narrow spec to include the wider file
148
153
149 $ hg tracked --addinclude widest
154 $ hg tracked --addinclude wider
150 comparing with ssh://user@dummy/master
155 comparing with ssh://user@dummy/master
151 searching for changes
156 searching for changes
152 no changes found
157 no changes found
@@ -158,8 +163,8 b' widen the narrow spec to include the wid'
158 new changesets *:* (glob)
163 new changesets *:* (glob)
159 $ hg tracked
164 $ hg tracked
160 I path:inside
165 I path:inside
161 I path:wider/f
166 I path:wider
162 I path:widest
167 I path:widest/f
163 $ hg update 'desc("add widest")'
168 $ hg update 'desc("add widest")'
164 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
169 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
165 $ cat widest/f
170 $ cat widest/f
General Comments 0
You need to be logged in to leave comments. Login now