diff tests/test-directaccess.t @ 35522: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 b378a3d840ab
children 31fe397f2bda
line wrap: on
line diff
--- a/tests/test-directaccess.t	Tue Dec 26 22:54:45 2017 +0530
+++ b/tests/test-directaccess.t	Wed Dec 27 00:14:00 2017 +0530
@@ -143,6 +143,15 @@
   $ hg status --change 28ad74
   A c
 
+`hg update`
+
+  $ hg up 28ad74
+  updating to a hidden changeset 28ad74487de9
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
+  $ hg up 3
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+
 Commands with undefined cmdtype should not work right now
 
   $ hg phase -r 28ad74