Debian Codegraph @

tests/test-remotefilelog-bad-configs.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 $ echo y > y
13 $ echo z > z
14 $ hg commit -qAm xy
15
16 $ cd ..
17
18 $ hgcloneshallow ssh://user@dummy/master shallow -q
19 3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
20 $ cd shallow
21
22 Verify error message when noc achepath specified
23 $ hg up -q null
24 $ cp $HGRCPATH $HGRCPATH.bak
25 $ grep -v cachepath < $HGRCPATH.bak > tmp
26 $ mv tmp $HGRCPATH
27 $ hg up tip
28 abort: could not find config option remotefilelog.cachepath
29 [255]
30 $ mv $HGRCPATH.bak $HGRCPATH
31
32 Verify error message when no fallback specified
33
34 $ hg up -q null
35 $ rm .hg/hgrc
36 $ clearcache
37 $ hg up tip
38 3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
39 abort: no remotefilelog server configured - is your .hg/hgrc trusted?
40 [255]