Debian Codegraph @

tests/test-remotefilelog-blame.t

raw
1 #require no-windows
2
3 $ . "$TESTDIR/remotefilelog-library.sh"
4
5 $ hg init master
6 $ cd master
7 $ cat >> .hg/hgrc <<EOF
8 > [remotefilelog]
9 > server=True
10 > EOF
11 $ echo x > x
12 $ hg commit -qAm x
13 $ echo y >> x
14 $ hg commit -qAm y
15 $ echo z >> x
16 $ hg commit -qAm z
17 $ echo a > a
18 $ hg commit -qAm a
19
20 $ cd ..
21
22 $ hgcloneshallow ssh://user@dummy/master shallow -q
23 2 files fetched over 1 fetches - (2 misses, 0.00% hit ratio) over *s (glob)
24 $ cd shallow
25
26 Test blame
27
28 $ hg blame x
29 0: x
30 1: y
31 2: z
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 $ echo foo >> x
39 $ hg grep --all-files x
40 x:x