1320 no changes found |
1320 no changes found |
1321 remote: prepushkey.no-bm-move hook exited with status 1 |
1321 remote: prepushkey.no-bm-move hook exited with status 1 |
1322 abort: push failed on remote |
1322 abort: push failed on remote |
1323 [255] |
1323 [255] |
1324 #endif |
1324 #endif |
|
1325 |
|
1326 -- test for pushing bookmarks pointing to secret changesets |
|
1327 |
|
1328 Set up a "remote" repo |
|
1329 $ hg init issue6159remote |
|
1330 $ cd issue6159remote |
|
1331 $ echo a > a |
|
1332 $ hg add a |
|
1333 $ hg commit -m_ |
|
1334 $ hg bookmark foo |
|
1335 $ cd .. |
|
1336 |
|
1337 Clone a local repo |
|
1338 $ hg clone -q issue6159remote issue6159local |
|
1339 $ cd issue6159local |
|
1340 $ hg up -qr foo |
|
1341 $ echo b > b |
|
1342 |
|
1343 Move the bookmark "foo" to point at a secret changeset |
|
1344 $ hg commit -qAm_ --config phases.new-commit=secret |
|
1345 |
|
1346 Pushing the bookmark "foo" now fails as it contains a secret changeset |
|
1347 #if b2-pushkey |
|
1348 $ hg push -r foo |
|
1349 pushing to $TESTTMP/issue6159remote |
|
1350 searching for changes |
|
1351 no changes found (ignored 1 secret changesets) |
|
1352 abort: updating bookmark foo failed! |
|
1353 [255] |
|
1354 #endif |
|
1355 |
|
1356 #if b2-binary |
|
1357 $ hg push -r foo |
|
1358 pushing to $TESTTMP/issue6159remote |
|
1359 searching for changes |
|
1360 no changes found (ignored 1 secret changesets) |
|
1361 updating bookmark foo |
|
1362 [1] |
|
1363 #endif |
|
1364 |
|
1365 Now the "remote" repo contains a bookmark pointing to a nonexistent revision |
|
1366 $ cd ../issue6159remote |
|
1367 #if b2-pushkey |
|
1368 $ hg bookmark |
|
1369 * foo 0:1599bc8b897a |
|
1370 $ hg log -r 1599bc8b897a |
|
1371 0:1599bc8b897a _ (no-eol) |
|
1372 #endif |
|
1373 |
|
1374 #if b2-binary |
|
1375 $ hg bookmark |
|
1376 no bookmarks set |
|
1377 $ cat .hg/bookmarks |
|
1378 cf489fd8a374cab73c2dc19e899bde6fe3a43f8f foo |
|
1379 $ hg log -r cf489fd8a374 |
|
1380 abort: unknown revision 'cf489fd8a374'! |
|
1381 [255] |
|
1382 #endif |