# HG changeset patch # User Pulkit Goyal # Date 1540293977 -10800 # Node ID d362a41ee5ddd65983be5876eb434b74b0e7a9c0 # Parent 3c0d5016b2beca95c0ff13c8c5e56f39554bc3ef 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 diff -r 3c0d5016b2be -r d362a41ee5dd tests/test-narrow-widen-no-ellipsis.t --- 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