diff tests/test-log.t @ 35518:02fdb8c018aa

update: support updating to hidden cset if directaccess config is set This patch adds support for updating to a hidden changeset without using --hidden if `experimental.directacces=True` is set. The update command will print out a warning when updating to a hidden changeset saying: `updating to a hidden changeset <hash>` The warning is also printed when directaccess is not used and --hidden is passed which I think is good behaviour. Tests are added for the directaccess part and updated output of tests which have case of updating to hidden cset using `--hidden`. Differential Revision: https://phab.mercurial-scm.org/D1762
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 27 Dec 2017 00:14:00 +0530
parents d67bcfc0041f
children b6dbc860570d
line wrap: on
line diff
--- a/tests/test-log.t	Tue Dec 26 22:54:45 2017 +0530
+++ b/tests/test-log.t	Wed Dec 27 00:14:00 2017 +0530
@@ -1824,6 +1824,7 @@
 test that parent prevent a changeset to be hidden
 
   $ hg up 1 -q --hidden
+  updating to a hidden changeset a765632148dc
   $ hg log --template='{rev}:{node}\n'
   1:a765632148dc55d38c35c4f247c618701886cb2f
   0:9f758d63dcde62d547ebfb08e1e7ee96535f2b05