diff tests/test-obsolete.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 4c7ae95e1c71
children 265cd9e19d26
line wrap: on
line diff
--- a/tests/test-obsolete.t	Tue Dec 26 22:54:45 2017 +0530
+++ b/tests/test-obsolete.t	Wed Dec 27 00:14:00 2017 +0530
@@ -62,6 +62,7 @@
   $ hg tip
   -1:000000000000 (public) [tip ] 
   $ hg up --hidden tip --quiet
+  updating to a hidden changeset 97b7c2d76b18
 
 Killing a single changeset with itself should fail
 (simple local safeguard)