2017-02-10 05:02:52 +03:00
|
|
|
|
2016-06-21 01:18:14 +03:00
|
|
|
no-check-code
|
2015-01-09 20:43:14 +03:00
|
|
|
$ . "$TESTDIR/library.sh"
|
|
|
|
|
|
|
|
$ hginit master
|
|
|
|
$ cd master
|
|
|
|
$ cat >> .hg/hgrc <<EOF
|
|
|
|
> [remotefilelog]
|
|
|
|
> server=True
|
|
|
|
> EOF
|
|
|
|
$ echo x > x
|
|
|
|
$ echo y > y
|
|
|
|
$ echo z > z
|
|
|
|
$ hg commit -qAm xy
|
|
|
|
|
|
|
|
$ cd ..
|
|
|
|
|
|
|
|
$ hgcloneshallow ssh://user@dummy/master shallow -q
|
|
|
|
3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
|
|
|
|
$ cd shallow
|
|
|
|
|
2016-06-21 01:18:14 +03:00
|
|
|
Verify error message when no cachepath specified
|
|
|
|
$ hg up -q null
|
|
|
|
$ cp $HGRCPATH $HGRCPATH.bak
|
|
|
|
$ sed -i.bak -n "/cachepath/!p" $HGRCPATH
|
|
|
|
$ hg up tip
|
|
|
|
abort: could not find config option remotefilelog.cachepath
|
|
|
|
[255]
|
|
|
|
$ mv $HGRCPATH.bak $HGRCPATH
|
|
|
|
|
2015-01-09 20:43:14 +03:00
|
|
|
Verify error message when no fallback specified
|
|
|
|
|
|
|
|
$ hg up -q null
|
|
|
|
$ rm .hg/hgrc
|
|
|
|
$ clearcache
|
|
|
|
$ hg up tip
|
|
|
|
3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over *s (glob)
|
|
|
|
abort: no remotefilelog server configured - is your .hg/hgrc trusted?
|
|
|
|
[255]
|