test-subrepo-relative-path.t
105 lines
| 2.8 KiB
| text/troff
|
Tads3Lexer
/ tests / test-subrepo-relative-path.t
|
r22046 | #require killdaemons | ||
|
r15446 | |||
|
r11915 | Preparing the subrepository 'sub' | ||
$ hg init sub | ||||
$ echo sub > sub/sub | ||||
$ hg add -R sub | ||||
|
r15447 | adding sub/sub (glob) | ||
|
r11915 | $ hg commit -R sub -m "sub import" | ||
Preparing the 'main' repo which depends on the subrepo 'sub' | ||||
$ hg init main | ||||
$ echo main > main/main | ||||
$ echo "sub = ../sub" > main/.hgsub | ||||
$ hg clone sub main/sub | ||||
updating to branch default | ||||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ hg add -R main | ||||
|
r15447 | adding main/.hgsub (glob) | ||
adding main/main (glob) | ||||
|
r11915 | $ hg commit -R main -m "main import" | ||
Cleaning both repositories, just as a clone -U | ||||
$ hg up -C -R sub null | ||||
0 files updated, 0 files merged, 1 files removed, 0 files unresolved | ||||
$ hg up -C -R main null | ||||
0 files updated, 0 files merged, 3 files removed, 0 files unresolved | ||||
$ rm -rf main/sub | ||||
|
r17015 | hide outer repo | ||
$ hg init | ||||
|
r11915 | Serving them both using hgweb | ||
$ printf '[paths]\n/main = main\nsub = sub\n' > webdir.conf | ||||
$ hg serve --webdir-conf webdir.conf -a localhost -p $HGPORT \ | ||||
> -A /dev/null -E /dev/null --pid-file hg.pid -d | ||||
$ cat hg.pid >> $DAEMON_PIDS | ||||
Clone main from hgweb | ||||
$ hg clone "http://localhost:$HGPORT/main" cloned | ||||
requesting all changes | ||||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 1 changesets with 3 changes to 3 files | ||||
updating to branch default | ||||
|
r14281 | cloning subrepo sub from http://localhost:$HGPORT/sub | ||
|
r11915 | requesting all changes | ||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 1 changesets with 1 changes to 1 files | ||||
3 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
Checking cloned repo ids | ||||
$ hg id -R cloned | ||||
fdfeeb3e979e tip | ||||
$ hg id -R cloned/sub | ||||
863c1745b441 tip | ||||
subrepo debug for 'main' clone | ||||
$ hg debugsub -R cloned | ||||
path sub | ||||
source ../sub | ||||
revision 863c1745b441bd97a8c4a096e87793073f4fb215 | ||||
|
r25474 | $ killdaemons.py | ||
|
r14187 | |||
subrepo paths with ssh urls | ||||
|
r25476 | $ hg clone -e dummyssh ssh://user@dummy/cloned sshclone | ||
|
r14187 | requesting all changes | ||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 1 changesets with 3 changes to 3 files | ||||
updating to branch default | ||||
|
r14281 | cloning subrepo sub from ssh://user@dummy/sub | ||
|
r14187 | requesting all changes | ||
adding changesets | ||||
adding manifests | ||||
adding file changes | ||||
added 1 changesets with 1 changes to 1 files | ||||
3 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
|
r25476 | $ hg -R sshclone push -e dummyssh ssh://user@dummy/`pwd`/cloned | ||
|
r14187 | pushing to ssh://user@dummy/$TESTTMP/cloned | ||
pushing subrepo sub to ssh://user@dummy/$TESTTMP/sub | ||||
searching for changes | ||||
no changes found | ||||
searching for changes | ||||
no changes found | ||||
|
r16023 | [1] | ||
|
r14187 | |||
$ cat dummylog | ||||
|
r15622 | Got arguments 1:user@dummy 2:hg -R cloned serve --stdio | ||
Got arguments 1:user@dummy 2:hg -R sub serve --stdio | ||||
Got arguments 1:user@dummy 2:hg -R $TESTTMP/cloned serve --stdio | ||||
Got arguments 1:user@dummy 2:hg -R $TESTTMP/sub serve --stdio | ||||