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

login
register
mail settings
Submitter phabricator
Date April 8, 2019, 10:09 p.m.
Message ID <c113d8a4f0bb6ae9f80f0f8813610164@localhost.localdomain>
Download mbox | patch
Permalink /patch/39543/
State Not Applicable
Headers show

Comments

phabricator - April 8, 2019, 10:09 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb1b216a241cc: remotefilelog: add tests of `hg grep -r &#039;wdir()&#039;` (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6216?vs=14689&id=14699

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

AFFECTED FILES
  tests/test-remotefilelog-blame.t

CHANGE DETAILS




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

Patch

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]