changeset 40500:d362a41ee5dd

tests: show that adding an already included path still calls narrow_widen() This patch adds tests demonstrating that we still go to the server in non-ellipses widening when we have that path already on the client and there is nothing new to download. The next patch will try to make client side logic smart and not go to the server if we don't need to download anything. Differential Revision: https://phab.mercurial-scm.org/D5182
author Pulkit Goyal <pulkit@yandex-team.ru>
date Tue, 23 Oct 2018 14:26:17 +0300
parents 3c0d5016b2be
children 30a7d3b6b281
files tests/test-narrow-widen-no-ellipsis.t
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-narrow-widen-no-ellipsis.t	Sun Oct 14 17:08:18 2018 +0200
+++ b/tests/test-narrow-widen-no-ellipsis.t	Tue Oct 23 14:26:17 2018 +0300
@@ -140,6 +140,17 @@
   $ hg id -n
   2
 
+Test that extending already included files should not call narrow_widen
+wireprotocol command
+
+  $ hg tracked --addinclude widest/f
+  comparing with ssh://user@dummy/master
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 0 changesets with 0 changes to 0 files
+
 Pull down the newly added upstream revision.
 
   $ hg pull