sapling/tests/test-remotenames-http.t

56 lines
1.4 KiB
Perl
Raw Normal View History

2015-03-03 11:13:09 +03:00
$ echo "[extensions]" >> $HGRCPATH
2018-01-03 17:15:47 +03:00
$ echo "remotenames=" >> $HGRCPATH
2015-03-03 11:13:09 +03:00
$ hg init test
$ cd test
$ echo foo>foo
$ mkdir foo.d foo.d/bAr.hg.d foo.d/baR.d.hg
$ echo foo>foo.d/foo
$ echo bar>foo.d/bAr.hg.d/BaR
$ echo bar>foo.d/baR.d.hg/bAR
$ hg commit -A -m 1
adding foo
adding foo.d/bAr.hg.d/BaR
adding foo.d/baR.d.hg/bAR
adding foo.d/foo
$ hg serve -p 0 --port-file $TESTTMP/.port -d --pid-file=../hg.pid
$ HGPORT=`cat $TESTTMP/.port`
2015-03-03 11:13:09 +03:00
$ cd ..
$ cat hg.pid >> $DAEMON_PIDS
clone
$ hg clone http://localhost:$HGPORT/ copy 2>&1
2015-03-03 11:13:09 +03:00
requesting all changes
adding changesets
adding manifests
adding file changes
added 1 changesets with 4 changes to 4 files
2017-10-18 01:24:27 +03:00
new changesets 8b6053c928fe
2015-03-03 11:13:09 +03:00
updating to branch default
4 files updated, 0 files merged, 0 files removed, 0 files unresolved
2015-03-03 11:13:09 +03:00
$ cd copy
add a commit to the clone
$ echo alpha > alpha
$ hg add alpha
$ hg ci -m 'add alpha'
verify that the branchheads are stored properly
$ hg pull
pulling from http://localhost:$HGPORT/ (glob)
2015-03-03 11:13:09 +03:00
searching for changes
no changes found
$ hg log --graph
@ changeset: 1:610fbbf9c9f6
| tag: tip
| user: test
| date: Thu Jan 01 00:00:00 1970 +0000
| summary: add alpha
|
o changeset: 0:8b6053c928fe
branch: default/default
user: test
date: Thu Jan 01 00:00:00 1970 +0000
summary: 1