D6216: remotefilelog: add tests of `hg grep -r 'wdir()'`

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Mon Apr 8 14:59:56 UTC 2019


durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  This demonstrates how remotefilelog breaks grepping dirtied working
  directories. A future change will introduce a fix.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D6216

AFFECTED FILES
  tests/test-remotefilelog-blame.t

CHANGE DETAILS

diff --git a/tests/test-remotefilelog-blame.t b/tests/test-remotefilelog-blame.t
--- a/tests/test-remotefilelog-blame.t
+++ b/tests/test-remotefilelog-blame.t
@@ -30,3 +30,16 @@
   1: y
   2: z
   2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
+
+Test grepping the working directory.
+
+  $ hg grep --all-files x
+  x:x
+BROKEN: modifications in the wdir tries to fetch from the server.
+  $ echo foo >> x
+  $ hg grep --all-files x
+  remote: abort: working directory revision cannot be specified
+  1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
+  abort: error downloading file contents:
+  'connection closed early'
+  [255]



To: durin42, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list