Mercurial > hg
comparison tests/test-obsolete.t @ 35611:7336ac5e786e
bookmarks: add bookmarks to hidden revs if directaccess config is set
This patch adds support to add bookmarks to hidden revs if
`experimental.directaccessi=True` config is set. A warning is also printed
saying "accessing hidden changeset <revhash>".
Differential Revision: https://phab.mercurial-scm.org/D1813
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 05 Jan 2018 22:28:06 +0530 |
parents | 265cd9e19d26 |
children | 1a09dad8b85a |
comparison
equal
deleted
inserted
replaced
35610:22c42bfbe7ab | 35611:7336ac5e786e |
---|---|
1331 $ hg id | 1331 $ hg id |
1332 13bedc178fce tip | 1332 13bedc178fce tip |
1333 $ echo "hello" > b | 1333 $ echo "hello" > b |
1334 $ hg commit --amend -m "message" | 1334 $ hg commit --amend -m "message" |
1335 $ hg book bookb -r 13bedc178fce --hidden | 1335 $ hg book bookb -r 13bedc178fce --hidden |
1336 bookmarking hidden changeset 13bedc178fce | |
1336 $ hg log -r 13bedc178fce | 1337 $ hg log -r 13bedc178fce |
1337 4:13bedc178fce (draft *obsolete*) [ bookb] add b [rewritten using amend as 5:a9b1f8652753] | 1338 4:13bedc178fce (draft *obsolete*) [ bookb] add b [rewritten using amend as 5:a9b1f8652753] |
1338 $ hg book -d bookb | 1339 $ hg book -d bookb |
1339 $ hg log -r 13bedc178fce | 1340 $ hg log -r 13bedc178fce |
1340 abort: hidden revision '13bedc178fce' was rewritten as: a9b1f8652753! | 1341 abort: hidden revision '13bedc178fce' was rewritten as: a9b1f8652753! |