comparison tests/test-remotefilelog-blame.t @ 42094:b1b216a241cc

remotefilelog: add tests of `hg grep -r 'wdir()'` This demonstrates how remotefilelog breaks grepping dirtied working directories. A future change will introduce a fix. Differential Revision: https://phab.mercurial-scm.org/D6216
author Augie Fackler <augie@google.com>
date Mon, 08 Apr 2019 10:56:55 -0400
parents 0800d9e6e216
children 864f9f63d3ed
comparison
equal deleted inserted replaced
42093:edbcf5b239f9 42094:b1b216a241cc
28 $ hg blame x 28 $ hg blame x
29 0: x 29 0: x
30 1: y 30 1: y
31 2: z 31 2: z
32 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob) 32 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
33
34 Test grepping the working directory.
35
36 $ hg grep --all-files x
37 x:x
38 BROKEN: modifications in the wdir tries to fetch from the server.
39 $ echo foo >> x
40 $ hg grep --all-files x
41 remote: abort: working directory revision cannot be specified
42 1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
43 abort: error downloading file contents:
44 'connection closed early'
45 [255]