##// END OF EJS Templates
subrepo: add test for issue1977
Wagner Bruna -
r11069:12f04d18 stable
parent child Browse files
Show More
@@ -207,4 +207,24 b' cat mercurial2/main/nested_absolute/.hg/'
207 | "$TESTDIR/filtertmp.py"
207 | "$TESTDIR/filtertmp.py"
208 rm -rf mercurial mercurial2
208 rm -rf mercurial mercurial2
209
209
210 echo % issue 1977
211 hg init repo
212 hg init repo/s
213 echo a > repo/s/a
214 hg -R repo/s ci -Am0
215 echo s = s > repo/.hgsub
216 hg -R repo ci -Am1
217 hg clone repo repo2
218 hg -q -R repo2 pull -u
219 echo 1 > repo2/s/a
220 hg -R repo2/s ci -m2
221 hg -q -R repo2/s push
222 hg -R repo2/s up -C 0
223 echo 2 > repo2/s/a
224 hg -R repo2/s ci -m3
225 hg -R repo2 ci -m3
226 hg -q -R repo2 push
227 hg -R repo update
228 rm -rf repo2 repo
229
210 exit 0
230 exit 0
@@ -261,3 +261,20 b' 2 files updated, 0 files merged, 0 files'
261 default = $HGTMP/test-subrepo/sub/mercurial/nested_absolute
261 default = $HGTMP/test-subrepo/sub/mercurial/nested_absolute
262 [paths]
262 [paths]
263 default = $HGTMP/test-subrepo/sub/mercurial/main/../nested_relative
263 default = $HGTMP/test-subrepo/sub/mercurial/main/../nested_relative
264 % issue 1977
265 adding a
266 adding .hgsub
267 committing subrepository s
268 updating to branch default
269 pulling subrepo s
270 requesting all changes
271 adding changesets
272 adding manifests
273 adding file changes
274 added 1 changesets with 1 changes to 1 files
275 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
276 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
277 created new head
278 committing subrepository s
279 abort: push creates new remote heads on branch 'default'!
280 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
General Comments 0
You need to be logged in to leave comments. Login now