| 1 |
#require serve |
| 2 |
|
| 3 |
creating 'remote |
| 4 |
|
| 5 |
$ hg init remote |
| 6 |
$ cd remote |
| 7 |
$ hg unbundle "$TESTDIR/bundles/remote.hg" |
| 8 |
adding changesets |
| 9 |
adding manifests |
| 10 |
adding file changes |
| 11 |
added 9 changesets with 7 changes to 4 files (+1 heads) |
| 12 |
new changesets bfaf4b5cbf01:916f1afdef90 (9 drafts) |
| 13 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 14 |
$ hg up tip |
| 15 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 16 |
|
| 17 |
Starting server |
| 18 |
|
| 19 |
$ hg serve -p $HGPORT -E ../error.log -d --pid-file=../hg1.pid |
| 20 |
$ cd .. |
| 21 |
$ cat hg1.pid >> $DAEMON_PIDS |
| 22 |
|
| 23 |
clone remote via stream |
| 24 |
|
| 25 |
$ for i in 0 1 2 3 4 5 6 7 8; do |
| 26 |
> hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" |
| 27 |
> if cd test-"$i"; then |
| 28 |
> hg verify -q |
| 29 |
> cd .. |
| 30 |
> fi |
| 31 |
> done |
| 32 |
adding changesets |
| 33 |
adding manifests |
| 34 |
adding file changes |
| 35 |
added 1 changesets with 1 changes to 1 files |
| 36 |
new changesets bfaf4b5cbf01 |
| 37 |
updating to branch default |
| 38 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 39 |
adding changesets |
| 40 |
adding manifests |
| 41 |
adding file changes |
| 42 |
added 2 changesets with 2 changes to 1 files |
| 43 |
new changesets bfaf4b5cbf01:21f32785131f |
| 44 |
updating to branch default |
| 45 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 46 |
adding changesets |
| 47 |
adding manifests |
| 48 |
adding file changes |
| 49 |
added 3 changesets with 3 changes to 1 files |
| 50 |
new changesets bfaf4b5cbf01:4ce51a113780 |
| 51 |
updating to branch default |
| 52 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 53 |
adding changesets |
| 54 |
adding manifests |
| 55 |
adding file changes |
| 56 |
added 4 changesets with 4 changes to 1 files |
| 57 |
new changesets bfaf4b5cbf01:93ee6ab32777 |
| 58 |
updating to branch default |
| 59 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 60 |
adding changesets |
| 61 |
adding manifests |
| 62 |
adding file changes |
| 63 |
added 2 changesets with 2 changes to 1 files |
| 64 |
new changesets bfaf4b5cbf01:c70afb1ee985 |
| 65 |
updating to branch default |
| 66 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 67 |
adding changesets |
| 68 |
adding manifests |
| 69 |
adding file changes |
| 70 |
added 3 changesets with 3 changes to 1 files |
| 71 |
new changesets bfaf4b5cbf01:f03ae5a9b979 |
| 72 |
updating to branch default |
| 73 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 74 |
adding changesets |
| 75 |
adding manifests |
| 76 |
adding file changes |
| 77 |
added 4 changesets with 5 changes to 2 files |
| 78 |
new changesets bfaf4b5cbf01:095cb14b1b4d |
| 79 |
updating to branch default |
| 80 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 81 |
adding changesets |
| 82 |
adding manifests |
| 83 |
adding file changes |
| 84 |
added 5 changesets with 6 changes to 3 files |
| 85 |
new changesets bfaf4b5cbf01:faa2e4234c7a |
| 86 |
updating to branch default |
| 87 |
2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 88 |
adding changesets |
| 89 |
adding manifests |
| 90 |
adding file changes |
| 91 |
added 5 changesets with 5 changes to 2 files |
| 92 |
new changesets bfaf4b5cbf01:916f1afdef90 |
| 93 |
updating to branch default |
| 94 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 95 |
$ cd test-8 |
| 96 |
$ hg pull ../test-7 |
| 97 |
pulling from ../test-7 |
| 98 |
searching for changes |
| 99 |
adding changesets |
| 100 |
adding manifests |
| 101 |
adding file changes |
| 102 |
added 4 changesets with 2 changes to 3 files (+1 heads) |
| 103 |
new changesets c70afb1ee985:faa2e4234c7a |
| 104 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 105 |
$ hg verify -q |
| 106 |
$ cd .. |
| 107 |
$ cd test-1 |
| 108 |
$ hg pull -r 4 http://localhost:$HGPORT/ |
| 109 |
pulling from http://localhost:$HGPORT/ |
| 110 |
searching for changes |
| 111 |
adding changesets |
| 112 |
adding manifests |
| 113 |
adding file changes |
| 114 |
added 1 changesets with 0 changes to 0 files (+1 heads) |
| 115 |
new changesets c70afb1ee985 |
| 116 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 117 |
$ hg verify -q |
| 118 |
$ hg pull http://localhost:$HGPORT/ |
| 119 |
pulling from http://localhost:$HGPORT/ |
| 120 |
searching for changes |
| 121 |
adding changesets |
| 122 |
adding manifests |
| 123 |
adding file changes |
| 124 |
added 6 changesets with 5 changes to 4 files |
| 125 |
new changesets 4ce51a113780:916f1afdef90 |
| 126 |
(run 'hg update' to get a working copy) |
| 127 |
$ cd .. |
| 128 |
$ cd test-2 |
| 129 |
$ hg pull -r 5 http://localhost:$HGPORT/ |
| 130 |
pulling from http://localhost:$HGPORT/ |
| 131 |
searching for changes |
| 132 |
adding changesets |
| 133 |
adding manifests |
| 134 |
adding file changes |
| 135 |
added 2 changesets with 0 changes to 0 files (+1 heads) |
| 136 |
new changesets c70afb1ee985:f03ae5a9b979 |
| 137 |
(run 'hg heads' to see heads, 'hg merge' to merge) |
| 138 |
$ hg verify -q |
| 139 |
$ hg pull http://localhost:$HGPORT/ |
| 140 |
pulling from http://localhost:$HGPORT/ |
| 141 |
searching for changes |
| 142 |
adding changesets |
| 143 |
adding manifests |
| 144 |
adding file changes |
| 145 |
added 4 changesets with 4 changes to 4 files |
| 146 |
new changesets 93ee6ab32777:916f1afdef90 |
| 147 |
(run 'hg update' to get a working copy) |
| 148 |
$ hg verify -q |
| 149 |
$ cd .. |
| 150 |
|
| 151 |
no default destination if url has no path: |
| 152 |
|
| 153 |
$ hg clone http://localhost:$HGPORT/ |
| 154 |
abort: empty destination path is not valid |
| 155 |
[10] |
| 156 |
|
| 157 |
$ cat error.log |