| 1 |
======================================================== |
| 2 |
Test the ability to access a hidden revision on a server |
| 3 |
======================================================== |
| 4 |
|
| 5 |
#require serve |
| 6 |
|
| 7 |
$ . $TESTDIR/testlib/obsmarker-common.sh |
| 8 |
$ cat >> $HGRCPATH << EOF |
| 9 |
> [ui] |
| 10 |
> ssh = "$PYTHON" "$RUNTESTDIR/dummyssh" |
| 11 |
> [phases] |
| 12 |
> # public changeset are not obsolete |
| 13 |
> publish=false |
| 14 |
> [experimental] |
| 15 |
> evolution=all |
| 16 |
> [ui] |
| 17 |
> logtemplate='{rev}:{node|short} {desc} [{phase}]\n' |
| 18 |
> EOF |
| 19 |
|
| 20 |
Setup a simple repository with some hidden revisions |
| 21 |
---------------------------------------------------- |
| 22 |
|
| 23 |
Testing the `served.hidden` view |
| 24 |
|
| 25 |
$ hg init repo-with-hidden |
| 26 |
$ cd repo-with-hidden |
| 27 |
|
| 28 |
$ echo 0 > a |
| 29 |
$ hg ci -qAm "c_Public" |
| 30 |
$ hg phase --public |
| 31 |
$ echo 1 > a |
| 32 |
$ hg ci -m "c_Amend_Old" |
| 33 |
$ echo 2 > a |
| 34 |
$ hg ci -m "c_Amend_New" --amend |
| 35 |
$ hg up ".^" |
| 36 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 37 |
$ echo 3 > a |
| 38 |
$ hg ci -m "c_Pruned" |
| 39 |
created new head |
| 40 |
$ hg debugobsolete --record-parents `getid 'desc("c_Pruned")'` -d '0 0' |
| 41 |
1 new obsolescence markers |
| 42 |
obsoleted 1 changesets |
| 43 |
$ hg up ".^" |
| 44 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 45 |
$ echo 4 > a |
| 46 |
$ hg ci -m "c_Secret" --secret |
| 47 |
created new head |
| 48 |
$ echo 5 > a |
| 49 |
$ hg ci -m "c_Secret_Pruned" --secret |
| 50 |
$ hg debugobsolete --record-parents `getid 'desc("c_Secret_Pruned")'` -d '0 0' |
| 51 |
1 new obsolescence markers |
| 52 |
obsoleted 1 changesets |
| 53 |
$ hg up null |
| 54 |
0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
| 55 |
|
| 56 |
$ hg log -G -T '{rev}:{node|short} {desc} [{phase}]\n' --hidden |
| 57 |
x 5:8d28cbe335f3 c_Secret_Pruned [secret] |
| 58 |
| |
| 59 |
o 4:1c6afd79eb66 c_Secret [secret] |
| 60 |
| |
| 61 |
| x 3:5d1575e42c25 c_Pruned [draft] |
| 62 |
|/ |
| 63 |
| o 2:c33affeb3f6b c_Amend_New [draft] |
| 64 |
|/ |
| 65 |
| x 1:be215fbb8c50 c_Amend_Old [draft] |
| 66 |
|/ |
| 67 |
o 0:5f354f46e585 c_Public [public] |
| 68 |
|
| 69 |
$ hg debugobsolete |
| 70 |
be215fbb8c5090028b00154c1fe877ad1b376c61 c33affeb3f6b4e9621d1839d6175ddc07708807c 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'} |
| 71 |
5d1575e42c25b7f2db75cd4e0b881b1c35158fae 0 {5f354f46e5853535841ec7a128423e991ca4d59b} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 72 |
8d28cbe335f311bc89332d7bbe8a07889b6914a0 0 {1c6afd79eb6663275bbe30097e162b1c24ced0f0} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
| 73 |
|
| 74 |
$ cd .. |
| 75 |
|
| 76 |
Test the feature |
| 77 |
================ |
| 78 |
|
| 79 |
Check cache pre-warm |
| 80 |
-------------------- |
| 81 |
|
| 82 |
$ ls -1 repo-with-hidden/.hg/cache |
| 83 |
branch2 |
| 84 |
branch2-base |
| 85 |
branch2-served |
| 86 |
branch2-served.hidden |
| 87 |
branch2-visible |
| 88 |
rbc-names-v2 |
| 89 |
rbc-revs-v2 |
| 90 |
tags2 |
| 91 |
tags2-visible |
| 92 |
|
| 93 |
Check that setting `web.view` works |
| 94 |
----------------------------------- |
| 95 |
|
| 96 |
$ hg -R repo-with-hidden serve -p $HGPORT -d --pid-file hg.pid --config web.view=served.hidden |
| 97 |
$ cat hg.pid >> $DAEMON_PIDS |
| 98 |
|
| 99 |
changesets in secret and higher phases are not visible through hgweb |
| 100 |
|
| 101 |
$ hg -R repo-with-hidden log --template "revision: {rev}\\n" --rev "reverse(not secret())" |
| 102 |
revision: 2 |
| 103 |
revision: 0 |
| 104 |
$ hg -R repo-with-hidden log --template "revision: {rev}\\n" --rev "reverse(not secret())" --hidden |
| 105 |
revision: 3 |
| 106 |
revision: 2 |
| 107 |
revision: 1 |
| 108 |
revision: 0 |
| 109 |
$ get-with-headers.py localhost:$HGPORT 'log?style=raw' | grep revision: |
| 110 |
revision: 3 |
| 111 |
revision: 2 |
| 112 |
revision: 1 |
| 113 |
revision: 0 |
| 114 |
|
| 115 |
$ killdaemons.py |
| 116 |
|
| 117 |
Check that `server.view` works |
| 118 |
------------------------------ |
| 119 |
|
| 120 |
changesets in secret and higher phases are not visible through `hg serve` |
| 121 |
|
| 122 |
$ hg -R repo-with-hidden log --template "node: {node}\\n" --rev "reverse(not secret())" |
| 123 |
node: c33affeb3f6b4e9621d1839d6175ddc07708807c |
| 124 |
node: 5f354f46e5853535841ec7a128423e991ca4d59b |
| 125 |
$ hg -R repo-with-hidden log --template "node: {node}\\n" --rev "reverse(not secret())" --hidden |
| 126 |
node: 5d1575e42c25b7f2db75cd4e0b881b1c35158fae |
| 127 |
node: c33affeb3f6b4e9621d1839d6175ddc07708807c |
| 128 |
node: be215fbb8c5090028b00154c1fe877ad1b376c61 |
| 129 |
node: 5f354f46e5853535841ec7a128423e991ca4d59b |
| 130 |
|
| 131 |
$ hg -R repo-with-hidden serve -p $HGPORT -d --pid-file hg.pid --config server.view=served |
| 132 |
$ cat hg.pid >> $DAEMON_PIDS |
| 133 |
$ hg init fetching-served |
| 134 |
$ hg incoming -R fetching-served http://localhost:$HGPORT --template "node: {node}\\n" |
| 135 |
comparing with http://localhost:$HGPORT/ |
| 136 |
node: 5f354f46e5853535841ec7a128423e991ca4d59b |
| 137 |
node: c33affeb3f6b4e9621d1839d6175ddc07708807c |
| 138 |
$ hg pull -R fetching-served http://localhost:$HGPORT |
| 139 |
pulling from http://localhost:$HGPORT/ |
| 140 |
requesting all changes |
| 141 |
adding changesets |
| 142 |
adding manifests |
| 143 |
adding file changes |
| 144 |
added 2 changesets with 2 changes to 1 files |
| 145 |
2 new obsolescence markers |
| 146 |
new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
| 147 |
(run 'hg update' to get a working copy) |
| 148 |
$ hg log -R fetching-served --template "node: {node}\\n" --hidden |
| 149 |
node: c33affeb3f6b4e9621d1839d6175ddc07708807c |
| 150 |
node: 5f354f46e5853535841ec7a128423e991ca4d59b |
| 151 |
$ killdaemons.py |
| 152 |
|
| 153 |
$ hg -R repo-with-hidden serve -p $HGPORT -d --pid-file hg.pid --config server.view=served.hidden |
| 154 |
$ cat hg.pid >> $DAEMON_PIDS |
| 155 |
$ hg init fetching-served-hidden |
| 156 |
$ hg incoming -R fetching-served-hidden http://localhost:$HGPORT --template "node: {node}\\n" |
| 157 |
comparing with http://localhost:$HGPORT/ |
| 158 |
node: 5f354f46e5853535841ec7a128423e991ca4d59b |
| 159 |
node: be215fbb8c5090028b00154c1fe877ad1b376c61 |
| 160 |
node: c33affeb3f6b4e9621d1839d6175ddc07708807c |
| 161 |
node: 5d1575e42c25b7f2db75cd4e0b881b1c35158fae |
| 162 |
$ hg pull -R fetching-served-hidden http://localhost:$HGPORT |
| 163 |
pulling from http://localhost:$HGPORT/ |
| 164 |
requesting all changes |
| 165 |
adding changesets |
| 166 |
adding manifests |
| 167 |
adding file changes |
| 168 |
added 4 changesets with 4 changes to 1 files (+2 heads) |
| 169 |
2 new obsolescence markers |
| 170 |
new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
| 171 |
(2 other changesets obsolete on arrival) |
| 172 |
(run 'hg heads' to see heads) |
| 173 |
$ hg log -R fetching-served-hidden --template "node: {node}\\n" --hidden |
| 174 |
node: 5d1575e42c25b7f2db75cd4e0b881b1c35158fae |
| 175 |
node: c33affeb3f6b4e9621d1839d6175ddc07708807c |
| 176 |
node: be215fbb8c5090028b00154c1fe877ad1b376c61 |
| 177 |
node: 5f354f46e5853535841ec7a128423e991ca4d59b |
| 178 |
$ killdaemons.py |
| 179 |
|
| 180 |
Test --remote-hidden for local peer |
| 181 |
----------------------------------- |
| 182 |
|
| 183 |
$ hg clone --pull repo-with-hidden client |
| 184 |
requesting all changes |
| 185 |
adding changesets |
| 186 |
adding manifests |
| 187 |
adding file changes |
| 188 |
added 2 changesets with 2 changes to 1 files |
| 189 |
2 new obsolescence markers |
| 190 |
new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
| 191 |
updating to branch default |
| 192 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 193 |
$ hg -R client log -G --hidden -v |
| 194 |
@ 1:c33affeb3f6b c_Amend_New [draft] |
| 195 |
| |
| 196 |
o 0:5f354f46e585 c_Public [public] |
| 197 |
|
| 198 |
|
| 199 |
pulling an hidden changeset should fail: |
| 200 |
|
| 201 |
$ hg -R client pull -r be215fbb8c50 |
| 202 |
pulling from $TESTTMP/repo-with-hidden |
| 203 |
abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
| 204 |
[10] |
| 205 |
|
| 206 |
pulling an hidden changeset with --remote-hidden should succeed: |
| 207 |
|
| 208 |
$ hg -R client pull --remote-hidden --traceback -r be215fbb8c50 |
| 209 |
pulling from $TESTTMP/repo-with-hidden |
| 210 |
searching for changes |
| 211 |
adding changesets |
| 212 |
adding manifests |
| 213 |
adding file changes |
| 214 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 215 |
(1 other changesets obsolete on arrival) |
| 216 |
(run 'hg heads' to see heads) |
| 217 |
$ hg -R client log -G --hidden -v |
| 218 |
x 2:be215fbb8c50 c_Amend_Old [draft] |
| 219 |
| |
| 220 |
| @ 1:c33affeb3f6b c_Amend_New [draft] |
| 221 |
|/ |
| 222 |
o 0:5f354f46e585 c_Public [public] |
| 223 |
|
| 224 |
|
| 225 |
Pulling a secret changeset is still forbidden: |
| 226 |
|
| 227 |
secret visible: |
| 228 |
|
| 229 |
$ hg -R client pull --remote-hidden -r 8d28cbe335f3 |
| 230 |
pulling from $TESTTMP/repo-with-hidden |
| 231 |
abort: filtered revision '8d28cbe335f3' (not in 'served.hidden' subset) |
| 232 |
[10] |
| 233 |
|
| 234 |
secret hidden: |
| 235 |
|
| 236 |
$ hg -R client pull --remote-hidden -r 1c6afd79eb66 |
| 237 |
pulling from $TESTTMP/repo-with-hidden |
| 238 |
abort: filtered revision '1c6afd79eb66' (not in 'served.hidden' subset) |
| 239 |
[10] |
| 240 |
|
| 241 |
Test accessing hidden changeset through hgweb |
| 242 |
--------------------------------------------- |
| 243 |
|
| 244 |
$ hg -R repo-with-hidden serve -p $HGPORT -d --pid-file hg.pid --config "experimental.server.allow-hidden-access=*" -E error.log --accesslog access.log |
| 245 |
$ cat hg.pid >> $DAEMON_PIDS |
| 246 |
|
| 247 |
Hidden changeset are hidden by default: |
| 248 |
|
| 249 |
$ get-with-headers.py localhost:$HGPORT 'log?style=raw' | grep revision: |
| 250 |
revision: 2 |
| 251 |
revision: 0 |
| 252 |
|
| 253 |
Hidden changeset are visible when requested: |
| 254 |
|
| 255 |
$ get-with-headers.py localhost:$HGPORT 'log?style=raw&access-hidden=1' | grep revision: |
| 256 |
revision: 3 |
| 257 |
revision: 2 |
| 258 |
revision: 1 |
| 259 |
revision: 0 |
| 260 |
|
| 261 |
Same check on a server that do not allow hidden access: |
| 262 |
``````````````````````````````````````````````````````` |
| 263 |
|
| 264 |
$ hg -R repo-with-hidden serve -p $HGPORT1 -d --pid-file hg2.pid --config "experimental.server.allow-hidden-access=" -E error.log --accesslog access.log |
| 265 |
$ cat hg2.pid >> $DAEMON_PIDS |
| 266 |
|
| 267 |
Hidden changeset are hidden by default: |
| 268 |
|
| 269 |
$ get-with-headers.py localhost:$HGPORT1 'log?style=raw' | grep revision: |
| 270 |
revision: 2 |
| 271 |
revision: 0 |
| 272 |
|
| 273 |
Hidden changeset are still hidden despite being the hidden access request: |
| 274 |
|
| 275 |
$ get-with-headers.py localhost:$HGPORT1 'log?style=raw&access-hidden=1' | grep revision: |
| 276 |
revision: 2 |
| 277 |
revision: 0 |
| 278 |
|
| 279 |
Test --remote-hidden for http peer |
| 280 |
---------------------------------- |
| 281 |
|
| 282 |
$ hg init empty-repo |
| 283 |
$ hg incoming -R empty-repo http://localhost:$HGPORT --template "node: {node}\\n" |
| 284 |
comparing with http://localhost:$HGPORT/ |
| 285 |
node: 5f354f46e5853535841ec7a128423e991ca4d59b |
| 286 |
node: c33affeb3f6b4e9621d1839d6175ddc07708807c |
| 287 |
$ hg incoming --remote-hidden -R empty-repo http://localhost:$HGPORT --template "node: {node}\\n" |
| 288 |
comparing with http://localhost:$HGPORT/ |
| 289 |
node: 5f354f46e5853535841ec7a128423e991ca4d59b |
| 290 |
node: be215fbb8c5090028b00154c1fe877ad1b376c61 |
| 291 |
node: c33affeb3f6b4e9621d1839d6175ddc07708807c |
| 292 |
node: 5d1575e42c25b7f2db75cd4e0b881b1c35158fae |
| 293 |
|
| 294 |
$ hg clone --pull http://localhost:$HGPORT client-http |
| 295 |
requesting all changes |
| 296 |
adding changesets |
| 297 |
adding manifests |
| 298 |
adding file changes |
| 299 |
added 2 changesets with 2 changes to 1 files |
| 300 |
2 new obsolescence markers |
| 301 |
new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
| 302 |
updating to branch default |
| 303 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 304 |
$ hg -R client-http log -G --hidden -v |
| 305 |
@ 1:c33affeb3f6b c_Amend_New [draft] |
| 306 |
| |
| 307 |
o 0:5f354f46e585 c_Public [public] |
| 308 |
|
| 309 |
|
| 310 |
pulling an hidden changeset should fail: |
| 311 |
|
| 312 |
$ hg -R client-http pull -r be215fbb8c50 |
| 313 |
pulling from http://localhost:$HGPORT/ |
| 314 |
abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
| 315 |
[255] |
| 316 |
|
| 317 |
pulling an hidden changeset with --remote-hidden should succeed: |
| 318 |
|
| 319 |
$ hg -R client-http pull --remote-hidden -r be215fbb8c50 |
| 320 |
pulling from http://localhost:$HGPORT/ |
| 321 |
searching for changes |
| 322 |
adding changesets |
| 323 |
adding manifests |
| 324 |
adding file changes |
| 325 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 326 |
(1 other changesets obsolete on arrival) |
| 327 |
(run 'hg heads' to see heads) |
| 328 |
$ hg -R client-http log -G --hidden -v |
| 329 |
x 2:be215fbb8c50 c_Amend_Old [draft] |
| 330 |
| |
| 331 |
| @ 1:c33affeb3f6b c_Amend_New [draft] |
| 332 |
|/ |
| 333 |
o 0:5f354f46e585 c_Public [public] |
| 334 |
|
| 335 |
|
| 336 |
Pulling a secret changeset is still forbidden: |
| 337 |
|
| 338 |
secret visible: |
| 339 |
|
| 340 |
$ hg -R client-http pull --remote-hidden -r 8d28cbe335f3 |
| 341 |
pulling from http://localhost:$HGPORT/ |
| 342 |
abort: filtered revision '8d28cbe335f3' (not in 'served.hidden' subset) |
| 343 |
[255] |
| 344 |
|
| 345 |
secret hidden: |
| 346 |
|
| 347 |
$ hg -R client-http pull --remote-hidden -r 1c6afd79eb66 |
| 348 |
pulling from http://localhost:$HGPORT/ |
| 349 |
abort: filtered revision '1c6afd79eb66' (not in 'served.hidden' subset) |
| 350 |
[255] |
| 351 |
|
| 352 |
Same check on a server that do not allow hidden access: |
| 353 |
``````````````````````````````````````````````````````` |
| 354 |
|
| 355 |
$ hg clone --pull http://localhost:$HGPORT1 client-http2 |
| 356 |
requesting all changes |
| 357 |
adding changesets |
| 358 |
adding manifests |
| 359 |
adding file changes |
| 360 |
added 2 changesets with 2 changes to 1 files |
| 361 |
2 new obsolescence markers |
| 362 |
new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
| 363 |
updating to branch default |
| 364 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 365 |
$ hg -R client-http2 log -G --hidden -v |
| 366 |
@ 1:c33affeb3f6b c_Amend_New [draft] |
| 367 |
| |
| 368 |
o 0:5f354f46e585 c_Public [public] |
| 369 |
|
| 370 |
|
| 371 |
pulling an hidden changeset should fail: |
| 372 |
|
| 373 |
$ hg -R client-http2 pull -r be215fbb8c50 |
| 374 |
pulling from http://localhost:$HGPORT1/ |
| 375 |
abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
| 376 |
[255] |
| 377 |
|
| 378 |
pulling an hidden changeset with --remote-hidden should fail too: |
| 379 |
|
| 380 |
$ hg -R client-http2 pull --remote-hidden -r be215fbb8c50 |
| 381 |
pulling from http://localhost:$HGPORT1/ |
| 382 |
abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
| 383 |
[255] |
| 384 |
|
| 385 |
Test --remote-hidden for ssh peer |
| 386 |
---------------------------------- |
| 387 |
|
| 388 |
$ hg clone --pull ssh://user@dummy/repo-with-hidden client-ssh |
| 389 |
requesting all changes |
| 390 |
adding changesets |
| 391 |
adding manifests |
| 392 |
adding file changes |
| 393 |
added 2 changesets with 2 changes to 1 files |
| 394 |
2 new obsolescence markers |
| 395 |
new changesets 5f354f46e585:c33affeb3f6b (1 drafts) |
| 396 |
updating to branch default |
| 397 |
1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
| 398 |
$ hg -R client-ssh log -G --hidden -v |
| 399 |
@ 1:c33affeb3f6b c_Amend_New [draft] |
| 400 |
| |
| 401 |
o 0:5f354f46e585 c_Public [public] |
| 402 |
|
| 403 |
|
| 404 |
Check on a server that do not allow hidden access: |
| 405 |
`````````````````````````````````````````````````` |
| 406 |
|
| 407 |
pulling an hidden changeset should fail: |
| 408 |
|
| 409 |
$ hg -R client-ssh pull -r be215fbb8c50 |
| 410 |
pulling from ssh://user@dummy/repo-with-hidden |
| 411 |
abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
| 412 |
[255] |
| 413 |
|
| 414 |
pulling an hidden changeset with --remote-hidden should succeed: |
| 415 |
|
| 416 |
$ hg -R client-ssh pull --remote-hidden -r be215fbb8c50 |
| 417 |
pulling from ssh://user@dummy/repo-with-hidden |
| 418 |
remote: ignoring request to access hidden changeset by unauthorized user: * (glob) |
| 419 |
abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
| 420 |
[255] |
| 421 |
$ hg -R client-ssh log -G --hidden -v |
| 422 |
@ 1:c33affeb3f6b c_Amend_New [draft] |
| 423 |
| |
| 424 |
o 0:5f354f46e585 c_Public [public] |
| 425 |
|
| 426 |
|
| 427 |
Check on a server that do allow hidden access: |
| 428 |
`````````````````````````````````````````````` |
| 429 |
|
| 430 |
$ cat << EOF >> repo-with-hidden/.hg/hgrc |
| 431 |
> [experimental] |
| 432 |
> server.allow-hidden-access=* |
| 433 |
> EOF |
| 434 |
|
| 435 |
pulling an hidden changeset should fail: |
| 436 |
|
| 437 |
$ hg -R client-ssh pull -r be215fbb8c50 |
| 438 |
pulling from ssh://user@dummy/repo-with-hidden |
| 439 |
abort: filtered revision 'be215fbb8c50' (not in 'served' subset) |
| 440 |
[255] |
| 441 |
|
| 442 |
pulling an hidden changeset with --remote-hidden should succeed: |
| 443 |
|
| 444 |
$ hg -R client-ssh pull --remote-hidden -r be215fbb8c50 |
| 445 |
pulling from ssh://user@dummy/repo-with-hidden |
| 446 |
searching for changes |
| 447 |
adding changesets |
| 448 |
adding manifests |
| 449 |
adding file changes |
| 450 |
added 1 changesets with 1 changes to 1 files (+1 heads) |
| 451 |
(1 other changesets obsolete on arrival) |
| 452 |
(run 'hg heads' to see heads) |
| 453 |
$ hg -R client-ssh log -G --hidden -v |
| 454 |
x 2:be215fbb8c50 c_Amend_Old [draft] |
| 455 |
| |
| 456 |
| @ 1:c33affeb3f6b c_Amend_New [draft] |
| 457 |
|/ |
| 458 |
o 0:5f354f46e585 c_Public [public] |
| 459 |
|
| 460 |
|
| 461 |
Pulling a secret changeset is still forbidden: |
| 462 |
|
| 463 |
secret visible: |
| 464 |
|
| 465 |
$ hg -R client-ssh pull --remote-hidden -r 8d28cbe335f3 |
| 466 |
pulling from ssh://user@dummy/repo-with-hidden |
| 467 |
abort: filtered revision '8d28cbe335f3' (not in 'served.hidden' subset) |
| 468 |
[255] |
| 469 |
|
| 470 |
secret hidden: |
| 471 |
|
| 472 |
$ hg -R client-ssh pull --remote-hidden -r 1c6afd79eb66 |
| 473 |
pulling from ssh://user@dummy/repo-with-hidden |
| 474 |
abort: filtered revision '1c6afd79eb66' (not in 'served.hidden' subset) |
| 475 |
[255] |
| 476 |
|
| 477 |
============= |
| 478 |
Final cleanup |
| 479 |
============= |
| 480 |
|
| 481 |
$ killdaemons.py |